[<<][openwrt][>>][..]
Wed Mar 2 00:24:31 EST 2011

VLAN on OpenWRT routers

The linksys WRT54g routers have an ethernet port connected to a switch
that supports vlans.  In order to have vlans actually go to the local
net, tagging needs to be disabled.

root@fred:~# robocfg show
Switch: enabled
Port 0(W):  DOWN enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
Port 1(4):  DOWN enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
Port 2(3): 100FD enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
Port 3(2): 100FD enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
Port 4(1): 100FD enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 5(C): 100FD enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
VLANs: BCM5325/535x enabled mac_check mac_hash
vlan0: 0 1 2 3 5t
vlan1: 4 5t


So, if I want to have vlan 11 tags to appear both on the router's
internal interface (port 5) and the cable connected to the gigabit
switch (port 3), this should do that:

# vconfig add eth0 11
# robocfg vlan 11 ports "3t 5t"

Indeed, that works.


[Reply][About]
[<<][openwrt][>>][..]