# /etc/config/network
# OpenWRT network config for boxes acting as a bridge
#### VLAN configuration
# Set up the switch with just a single vlan
# All the local port will see traffic from ALL switch ports
config switch eth0
option vlan0 "0 1 2 3 4 5*"
#### 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
option type bridge
option ifname "eth0.0"
option proto dhcp
# or...
# option proto static
# option ipaddr 192.168.1.1
# option netmask 255.255.255.0