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
|
2015-03-25 15:02:38 -06:00
|
|
|
option ifname "<lan_intf>"
|
2018-11-27 22:37:59 -07:00
|
|
|
option type "bridge"
|
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>
|
2015-06-29 23:58:08 -06:00
|
|
|
include /etc/aredn_include/ethmacfixup
|
2013-11-14 23:11:16 -07:00
|
|
|
|
|
|
|
#### WAN configuration
|
2018-12-02 18:52:48 -07:00
|
|
|
config interface wan
|
2015-03-26 02:47:06 -06:00
|
|
|
option ifname "<wan_intf>"
|
2018-12-02 18:52:48 -07:00
|
|
|
include /etc/aredn_include/nanostation-xm
|
2013-11-14 23:11:16 -07:00
|
|
|
option proto <wan_proto>
|
|
|
|
option ipaddr <wan_ip>
|
|
|
|
option netmask <wan_mask>
|
|
|
|
option gateway <wan_gw>
|
|
|
|
|
|
|
|
|
|
|
|
#### WIFI configuration
|
|
|
|
config interface wifi
|
2015-03-25 15:02:38 -06:00
|
|
|
option ifname "<wifi_intf>"
|
2013-11-14 23:11:16 -07:00
|
|
|
option proto <wifi_proto>
|
|
|
|
option ipaddr <wifi_ip>
|
|
|
|
option netmask <wifi_mask>
|
|
|
|
|
2014-04-09 00:19:45 -06:00
|
|
|
#### device to device configuration
|
|
|
|
config interface dtdlink
|
2015-03-26 02:47:06 -06:00
|
|
|
option ifname "<dtdlink_intf>"
|
2018-12-02 18:52:48 -07:00
|
|
|
include /etc/aredn_include/nanostation-xm
|
2014-04-09 00:19:45 -06:00
|
|
|
option proto static
|
|
|
|
option ipaddr <dtdlink_ip>
|
|
|
|
option netmask 255.0.0.0
|
2014-04-18 09:53:54 -06:00
|
|
|
|
|
|
|
config interface wifi_mon
|
|
|
|
option proto none
|
2015-04-05 22:06:39 -06:00
|
|
|
|
|
|
|
include /etc/aredn_include/swconfig
|