Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created October 12, 2020 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobalob/03c6e481d8b969f259e46054c387f6b4 to your computer and use it in GitHub Desktop.
Save bobalob/03c6e481d8b969f259e46054c387f6b4 to your computer and use it in GitHub Desktop.
original /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 'auto'
option default_ps '0'
config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option force_link '0'
option igmp_snooping '1'
option ipv6 '0'
list ifname 'vlan_eth0'
list ifname 'vlan_eth1'
list ifname 'vlan_eth2'
list ifname 'vlan_eth3'
option ip6assign '0'
option ipaddr '192.168.2.251'
option gateway '192.168.2.254'
option dns '192.168.2.254'
list pppoerelay ''
config device 'eth0'
option mtu '1500'
option name 'eth0'
config device 'eth1'
option mtu '1500'
option name 'eth1'
config device 'eth2'
option mtu '1500'
option name 'eth2'
config device 'eth3'
option mtu '1500'
option name 'eth3'
config device 'vlan_eth0'
option type '8021q'
option ifname 'eth0'
option name 'vlan_eth0'
option mtu '1500'
option vid '1'
config device 'vlan_eth1'
option type '8021q'
option ifname 'eth1'
option name 'vlan_eth1'
option mtu '1500'
option vid '1'
config device 'vlan_eth2'
option type '8021q'
option ifname 'eth2'
option name 'vlan_eth2'
option mtu '1500'
option vid '1'
config device 'vlan_eth3'
option type '8021q'
option ifname 'eth3'
option name 'vlan_eth3'
option mtu '1500'
option vid '1'
config switch 'bcmsw_int'
option reset '1'
option type 'bcmsw'
option qosimppauseenable '0'
option jumbo '1'
option unit '0'
option enable_vlan '0'
config switch 'bcmsw_ext'
option reset '1'
option type 'bcmsw'
option qosimppauseenable '0'
option unit '1'
option enable_vlan '1'
option jumbo '1'
config switch_vlan 'lan_switch'
option device 'bcmsw_ext'
option vlan '1'
option ports '1* 2* 3* 4* 8t'
config switch_vlan 'lan_switch_LAN2'
option device 'bcmsw_ext'
option vlan '2'
option ports '3t 4t 8t'
config switch_vlan 'lan_switch_DMZ'
option device 'bcmsw_ext'
option vlan '15'
option ports '3t 4t 8t'
config switch_vlan 'lan_switch_WAN'
option device 'bcmsw_ext'
option vlan '9'
option ports '3t 4t 8t'
config interface 'wan'
option proto 'pppoe'
option ifname 'vlan_wan'
option auto '0'
option reqopts '1 3 6 15 33 42 51 121 249'
option vendorid 'Technicolor'
option authfail '0'
option mtu '1500'
option ipv6 '0'
option release '1'
option iface6rd '0'
option password 'password'
config interface 'vdsl_check'
option proto 'pppoe'
option ifname 'ptm0'
option keepalive '5,10'
option auto '0'
option reqopts '1 3 6 15 33 42 51 121 249'
option vendorid 'Technicolor'
option graceful_restart '1'
option authfail '0'
option mtu '1500'
option ipv6 '0'
option release '1'
option iface6rd '0'
config interface 'bt_iptv'
option ifname 'vlan_wan'
option auto '1'
option proto 'static'
option ipaddr '169.254.10.1'
option netmask '255.255.255.255'
config device 'eth4'
option mtu '1500'
option name 'eth4'
config device 'ptm0'
option mtu '1508'
option name 'ptm0'
config device 'vlan_wan'
option type '8021q'
option ifname 'ptm0'
option mtu '1508'
option name 'vlan_wan'
option vid '101'
config interface 'wwan'
option auto '1'
option metric '10'
option proto 'mobiled'
option session_id '0'
option profile '1'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
option reqopts '12 21 22 23 24 25 31 56 64 67 82 83'
option noslaaconly '1'
option iface_464xlat '0'
config interface 'guest'
option proto 'static'
option type 'bridge'
option ipv6 '0'
option ip6hint '1'
option netmask '255.255.255.128'
option ipaddr '192.168.168.126'
list ifname 'wl0_1'
list ifname 'wl1_1'
option force_link '0'
config config 'config'
option wan_mode 'pppoe'
config interface 'ipoe'
option proto 'dhcp'
option metric '1'
option reqopts '1 3 6 43 51 58 59'
option release '1'
option neighreachabletime '1200000'
option neighgcstaletime '2400'
option ipv6 '1'
config device 'waneth4'
option enabled '1'
option type '8021q'
option name 'waneth4'
option vid '835'
config device 'wanptm0'
option enabled '1'
option type '8021q'
option name 'wanptm0'
option vid '835'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment