/etc/conf/network:
#### VLAN configuration
config switch eth0
option vlan0 '0 1 2 3 5*'
option vlan1 '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 static
option ipaddr '192.168.122.99'
option netmask 255.255.255.0
option gateway '192.168.122.1'
option dns 'x.x.x.x'
config "interface" "rental"
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option gateway '192.168.2.1'
option dns 'x.x.x.x'
option ifname 'eth0.1'
option type ''
root@asus500gp:~# ping -I 192.168.2.1 192.168.122.1
PING 192.168.122.1 (192.168.122.1) from 192.168.2.1: 56 data bytes
--- 192.168.122.1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
root@asus500gp:~# ping -I 192.168.2.1 192.168.122.99
PING 192.168.122.99 (192.168.122.99) from 192.168.2.1: 56 data bytes
64 bytes from 192.168.122.99: icmp_seq=0 ttl=64 time=0.6 ms
--- 192.168.122.99 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.6/0.6/0.6 ms
root@asus500gp:~# ping 192.168.122.1
PING 192.168.122.1 (192.168.122.1): 56 data bytes
64 bytes from 192.168.122.1: icmp_seq=0 ttl=64 time=2.1 ms
64 bytes from 192.168.122.1: icmp_seq=1 ttl=64 time=0.7 ms
--- 192.168.122.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.7/1.4/2.1 ms
root@asus500gp:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 br-lan