Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Created July 27, 2014 19:59
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 pamolloy/ec10f278c457810f0108 to your computer and use it in GitHub Desktop.
Save pamolloy/ec10f278c457810f0108 to your computer and use it in GitHub Desktop.
Router #1
config 'switch' 'eth0'
option 'enable' '1'
config 'switch_vlan' 'eth0_0'
option 'device' 'eth0'
option 'vlan' '0'
option 'ports' '1 2 3 5'
config 'switch_vlan' 'eth0_1'
option 'device' 'eth0'
option 'vlan' '1'
option 'ports' '4 5'
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 'stp' '1'
option 'ifname' 'eth0.0'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' 'eth0.1'
option 'proto' 'dhcp'
config 'switch_vlan'
option 'device' 'eth0'
option 'vlan' '2'
option 'ports' '0 5'
config 'interface' 'DMZ'
option 'proto' 'static'
option 'ifname' 'eth0.2'
option 'ipaddr' '192.168.50.1'
option 'netmask' '255.255.255.0'
config 'wifi-device' 'wl0'
option 'type' 'broadcom'
option 'channel' '11'
option 'txpower' '18'
option 'hwmode' '11bg'
config 'wifi-iface'
option 'device' 'wl0'
option 'mode' 'ap'
option 'network' 'lan'
option 'ssid' 'Network'
option 'encryption' 'psk2'
option 'key' 'Password'
config 'wifi-iface'
option 'device' 'wl0'
option 'network' 'lan'
option 'mode' 'wds'
option 'bssid' '00:00:00:00:00:00'
option 'encryption' 'psk2'
option 'key' 'Password'
@pamolloy
Copy link
Author

pamolloy commented Aug 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment