2011-01-27 21:49:42 +00:00
|
|
|
#### VLAN configuration
|
|
|
|
config switch
|
|
|
|
option eth0 "0 1 2 3"
|
|
|
|
option eth1 "4"
|
|
|
|
|
|
|
|
|
|
|
|
#### Loopback configuration
|
|
|
|
config interface loopback
|
|
|
|
option ifname "lo"
|
|
|
|
option proto static
|
|
|
|
option ipaddr 127.0.0.1
|
|
|
|
option netmask 255.0.0.0
|
|
|
|
|
|
|
|
|
|
|
|
#### LAN configuration
|
|
|
|
config interface lan
|
|
|
|
option type bridge
|
|
|
|
option ifname "eth0"
|
|
|
|
option proto static
|
|
|
|
option ipaddr 192.168.1.1
|
|
|
|
option netmask 255.255.255.0
|
2013-04-22 19:40:16 +00:00
|
|
|
option ip6assign 60
|
2011-01-27 21:49:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#### WAN configuration
|
|
|
|
config interface wan
|
|
|
|
option ifname "eth1"
|
|
|
|
option proto dhcp
|
2013-04-09 08:03:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
#### WAN6 configuration
|
|
|
|
config interface wan6
|
2014-10-08 13:08:05 +00:00
|
|
|
option ifname "eth1"
|
2013-04-09 08:03:08 +00:00
|
|
|
option proto dhcpv6
|
|
|
|
|
|
|
|
|
|
|
|
#### Network global configuration
|
|
|
|
config globals globals
|
|
|
|
option ula_prefix auto
|