summaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/base-files/etc/config/network
blob: 9ba0e6d29ccc64b1aaa586636b0664be2720c173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
	option type	bridge
	option ifname	"eth0 eth1"
	option proto	static
	option ipaddr	192.168.1.1
	option netmask	255.255.255.0
	option nat	1

## 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
#	option payload	bridged # some ISPs need this set to 'routed'


# 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"