#20021: Using untagged and tagged VLANs on the NSM5-XW switch tags everything
-------------------------------------------------+-------------------------
Reporter: rogerpueyo | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos
Component: base system | Calmer (trunk)
Keywords: ubiquiti, nsm5-xw, switch, vlan, | Version: Trunk
port, tagged, untagged |
-------------------------------------------------+-------------------------
Hi there,
I found the following problem when configuring the switch of a Ubiquiti
NanoStation M5 XW. The device has two Ethernet ports using a single
interface (eth0) with a switch. The two Ethernet ports, labeled "Main" and
"Secondary" correspond to the switch's ports 5 and 1, respectively.
I am trying to use the Main-P5 port with VLAN1 untagged and Secondary-P1
with VLAN2 untagged -this works- '''and''' then put VLAN12 tagged on both
of them. This is:
{{{
VLAN1: CPU_tagged P5_untagged
VLAN2: CPU_tagged P1_untagged
VLAN12: CPU_tagged P5_tagged P1_tagged
}}}
So I've set the following configuration in /etc/config/network:
{{{
[...]
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
config switch_vlan
option device 'switch0'
option vlan '12'
option ports '0t 1t 5t'
[...]
}}}
To my surprise, however, tagging VLAN12 on ports P1 and P5 '''forces'''
tagging on these ports for VLAN1 and VLAN2 (which shouldn't). See this
part of the output from 'swconfig dev switch0 show':
{{{
[...]
VLAN 1:
vid: 1
ports: 0t 5t <----WRONG!
VLAN 2:
vid: 2
ports: 0t 1t <----WRONG!
VLAN 12:
vid: 12
ports: 0t 1t 5t <----RIGHT
}}}
If I test the following configuration in /etc/config/network, in which
VLAN12 only affects P1:
{{{
[...]
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
config switch_vlan
option device 'switch0'
option vlan '12'
option ports '0t 1t'
[...]
}}}
I get the following output from 'swconfig dev switch0 show':
{{{
[...]
VLAN 1:
vid: 1
ports: 0t 5 <----RIGHT!
VLAN 2:
vid: 2
ports: 0t 1t <----WRONG!
VLAN 12:
vid: 12
ports: 0t 1t <----RIGHT
}}}
I am attaching the complete output of the 'swconfig' commands, in case
they are useful.
Thank you very much!
--
Ticket URL: <https://dev.openwrt.org/ticket/20021>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets