root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr 1C:AF:F7:49:77:14
inet addr:192.168.128.1 Bcast:192.168.128.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7940 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:379783 (370.8 KiB) TX bytes:6780 (6.6 KiB)
eth2 Link encap:Ethernet HWaddr 1C:AF:F7:49:77:14
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7852 errors:0 dropped:0 overruns:0 frame:0
TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:506390 (494.5 KiB) TX bytes:62713 (61.2 KiB)
Interrupt:3
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:116 (116.0 B) TX bytes:116 (116.0 B)
ra0 Link encap:Ethernet HWaddr 1C:AF:F7:49:77:16
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191 errors:0 dropped:0 overruns:0 frame:0
TX packets:7913 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22728 (22.1 KiB) TX bytes:733276 (716.0 KiB)
Interrupt:4
vlan1 Link encap:Ethernet HWaddr 1C:AF:F7:49:77:14
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7852 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:396462 (387.1 KiB) TX bytes:23243 (22.6 KiB)
vlan2 Link encap:Ethernet HWaddr 1C:AF:F7:49:77:15
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:38376 (37.4 KiB)
root@DD-WRT:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.1caff7497714 no vlan1
ra0
root@DD-WRT:~# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan1 | 1 | eth2
vlan2 | 2 | eth2
Что понятно: vlan1+ra0 - LAN, vlan2 - WAN. Непонятно: как происходит разделение сегментов WAN и LAN если vlan1 и vlan2 на одном физическом интерфейсе eth2?