Skip to content

Instantly share code, notes, and snippets.

@SPYFF
Created August 27, 2017 12:29
Show Gist options
  • Save SPYFF/776da4688469d4f82ebe58e340b2db92 to your computer and use it in GitHub Desktop.
Save SPYFF/776da4688469d4f82ebe58e340b2db92 to your computer and use it in GitHub Desktop.
Netgear R7000 modified /etc/config/network file
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan1'
option ifname 'eth0.2'
option proto 'dhcp'
config interface 'wan2'
option ifname 'eth0.3'
option proto 'dhcp'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 2 5t'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '3 4 5t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment