2007-04-21 09:37:13 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
|
|
|
|
config interface loopback
|
|
|
|
option ifname lo
|
|
|
|
option proto static
|
|
|
|
option ipaddr 127.0.0.1
|
|
|
|
option netmask 255.0.0.0
|
|
|
|
|
|
|
|
config interface lan
|
2008-08-31 11:33:41 +00:00
|
|
|
option type bridge
|
2012-10-13 17:47:09 +00:00
|
|
|
option ifname "eth0 eth1 eth0.1 eth0.2"
|
2007-04-21 09:37:13 +00:00
|
|
|
option proto static
|
|
|
|
option ipaddr 192.168.1.1
|
|
|
|
option netmask 255.255.255.0
|
2008-08-31 11:33:41 +00:00
|
|
|
option nat 1
|
2013-04-09 08:03:08 +00:00
|
|
|
option ip6assign 64
|
|
|
|
|
|
|
|
config interface wan6
|
|
|
|
option ifname @wan
|
|
|
|
option proto dhcpv6
|
|
|
|
|
|
|
|
config globals globals
|
|
|
|
option ula_prefix auto
|
2007-04-21 09:37:13 +00:00
|
|
|
|
|
|
|
## Example for ATM bridging.
|
|
|
|
## Useful for PPPoE or IP over ATM. Will create 'nas${unit}'
|
|
|
|
#
|
|
|
|
# config atm-bridge
|
|
|
|
# option unit 0
|
|
|
|
# option encaps llc
|
|
|
|
# option vpi 8
|
|
|
|
# option vci 35
|
2008-05-04 14:17:03 +00:00
|
|
|
# option payload bridged # some ISPs need this set to 'routed'
|
2007-04-21 09:37:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
# config interface wan
|
|
|
|
## PPPoE:
|
|
|
|
# option ifname nas0
|
|
|
|
# option proto pppoe
|
|
|
|
|
|
|
|
## PPPoA:
|
|
|
|
# option ifname atm0
|
|
|
|
# option proto pppoa
|
|
|
|
# option encaps llc
|
|
|
|
# option vpi 8
|
|
|
|
# option vci 35
|
|
|
|
|
|
|
|
## Both:
|
|
|
|
# option username "my_username"
|
|
|
|
# option password "my_password"
|