Last active
August 17, 2019 10:54
-
-
Save pwarren/1f48a2cc206af43597d4b71e955d52ee to your computer and use it in GitHub Desktop.
openwrt network config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@OpenWrt:/# cat /etc/config/network | |
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config globals 'globals' | |
option ula_prefix 'fdcb:6fce:13c9::/48' | |
config interface 'lan' | |
option type 'bridge' | |
option ifname 'eth0.1' | |
option proto 'static' | |
option ipaddr '172.19.5.1' | |
option netmask '255.255.255.0' | |
option ip6assign '64' | |
config device 'lan_dev' | |
option name 'eth0.1' | |
option macaddr 'f0:9f:c2:0c:99:a5' | |
config interface 'wan' | |
option proto 'pppoe' | |
option username 'XXXX | |
option password 'XXXX' | |
option ipv6 'auto' | |
option ifname 'eth0.100' | |
config device 'wan_dev' | |
option name 'eth0.2' | |
option macaddr 'f0:9f:c2:0c:99:a6' | |
config interface 'wan6' | |
option ifname 'eth0.2' | |
option proto 'dhcpv6' | |
option reqaddress 'try' | |
option reqprefix 'auto' | |
config switch | |
option name 'switch0' | |
option reset '1' | |
option enable_vlan '1' | |
config switch_vlan | |
option device 'switch0' | |
option vlan '1' | |
option ports '1 2 3 4 6t' | |
option vid '1' | |
config switch_vlan | |
option device 'switch0' | |
option vlan '2' | |
option vid '2' | |
option ports '6t' | |
config switch_vlan | |
option device 'switch0' | |
option vlan '3' | |
option ports '0 6t' | |
option vid '100' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment