| 1 | # Copyright (C) 2008 OpenWrt.org |
| 2 | |
| 3 | config interface loopback |
| 4 | option ifname lo |
| 5 | option proto static |
| 6 | option ipaddr 127.0.0.1 |
| 7 | option netmask 255.0.0.0 |
| 8 | |
| 9 | config interface lan |
| 10 | option type bridge |
| 11 | option ifname eth1.1 |
| 12 | option proto static |
| 13 | option ipaddr 192.168.1.1 |
| 14 | option netmask 255.255.255.0 |
| 15 | option nat 1 |
| 16 | |
| 17 | config interface wan |
| 18 | option ifname eth0 |
| 19 | option proto dhcp |
| 20 | |
| 21 | config switch eth1 |
| 22 | option enable 1 |
| 23 | option enable_vlan 1 |
| 24 | option reset 1 |
| 25 | |
| 26 | config switch_vlan |
| 27 | option vlan 1 |
| 28 | option device eth1 |
| 29 | option ports "0 1 2 3 5t" |
| 30 | |