2013-11-14 23:11:16 -07:00
|
|
|
#### 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
|
2013-12-02 13:04:54 -07:00
|
|
|
option ifname "eth0"
|
2013-11-14 23:11:16 -07:00
|
|
|
option proto <lan_proto>
|
|
|
|
option ipaddr <lan_ip>
|
|
|
|
option netmask <lan_mask>
|
|
|
|
option dns "<wan_dns1> <wan_dns2>"
|
|
|
|
option gateway <lan_gw>
|
|
|
|
|
|
|
|
|
|
|
|
#### WAN configuration
|
|
|
|
config interface wan
|
|
|
|
option ifname "eth0.1"
|
|
|
|
option proto <wan_proto>
|
|
|
|
option ipaddr <wan_ip>
|
|
|
|
option netmask <wan_mask>
|
|
|
|
option gateway <wan_gw>
|
|
|
|
|
|
|
|
|
|
|
|
#### WIFI configuration
|
|
|
|
config interface wifi
|
2013-12-02 13:04:54 -07:00
|
|
|
option ifname "wlan0"
|
2013-11-14 23:11:16 -07:00
|
|
|
option proto <wifi_proto>
|
|
|
|
option ipaddr <wifi_ip>
|
|
|
|
option netmask <wifi_mask>
|
|
|
|
|