| 1 | #### VLAN configuration |
| 2 | config switch |
| 3 | option eth0 "0 1 2 3" |
| 4 | option eth1 "4" |
| 5 | |
| 6 | |
| 7 | #### Loopback configuration |
| 8 | config interface loopback |
| 9 | option ifname "lo" |
| 10 | option proto static |
| 11 | option ipaddr 127.0.0.1 |
| 12 | option netmask 255.0.0.0 |
| 13 | |
| 14 | |
| 15 | #### LAN configuration |
| 16 | config interface lan |
| 17 | option type bridge |
| 18 | option ifname "eth0" |
| 19 | option proto static |
| 20 | option ipaddr 192.168.1.1 |
| 21 | option netmask 255.255.255.0 |
| 22 | |
| 23 | |
| 24 | #### WAN configuration |
| 25 | config interface wan |
| 26 | option ifname "eth1" |
| 27 | option proto dhcp |
| 28 | |
Download this file