Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1279 - VRX200 / BT Home Hub 5A does not correctly configure more than 2 switch VLANs #7972

Closed
openwrt-bot opened this issue Jan 16, 2018 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

u1f35c:

Device: BT Home Hub 5A (xRX200 rev 1.2)
Version: LEDE 17.01.4
Kernel: 4.4.92 / swconfig: 11

I have configured up 3 VLANs using Luci. These are correctly added to /etc/config/network and "uci show | grep switch" shows the entries I'd expect. However only 2 VLANs are correctly configured. The 3rd can be brought up with a manual invocation of "swconfig". I've tried the same thing on an DGN3500 (VR9 platform), also with LEDE 17.01.4, and it works there, leading me to suspect this is a kernel issue with the VRX200 driver.

The switch config in /etc/config/network looks like:

config switch option name 'switch0' option reset '1' option enable_vlan '1'

config switch_vlan
option device 'switch0'
option vlan '1'
option vid '3'
option ports '0 4 5t 6t'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '2 6t'
option vid '4'

config switch_vlan
option device 'switch0'
option vlan '3'
option ports '1 5t 6t'
option vid '5'

Running "swconfig dev switch0 load network" leads to the following switch config:

VLAN 1: vid: 3 enable: 1 ports: 0 4 5t 6t VLAN 2: vid: 4 enable: 1 ports: 2 6t

No other VLAN stanza are shown but 'swconfig dev switch0 vlan 3 show' shows that while no ports have been added VLAN ID 5 has been correctly configured:

VLAN 3: vid: 5 enable: 1 ports:

Manually executing "swconfig dev switch0 vlan 3 set ports '1 5t 6t'" brings up the VLAN as expected:

VLAN 3: vid: 5 enable: 1 ports: 1 5t 6t

uci shows the correct details (uci show | grep switch):

network.@switch[0]=switch network.@switch[0].name='switch0' network.@switch[0].reset='1' network.@switch[0].enable_vlan='1' network.@switch_vlan[0]=switch_vlan network.@switch_vlan[0].device='switch0' network.@switch_vlan[0].vlan='1' network.@switch_vlan[0].vid='3' network.@switch_vlan[0].ports='0 4 5t 6t' network.@switch_vlan[1]=switch_vlan network.@switch_vlan[1].device='switch0' network.@switch_vlan[1].vlan='2' network.@switch_vlan[1].ports='2 6t' network.@switch_vlan[1].vid='4' network.@switch_vlan[2]=switch_vlan network.@switch_vlan[2].device='switch0' network.@switch_vlan[2].vlan='3' network.@switch_vlan[2].ports='1 5t 6t' network.@switch_vlan[2].vid='5'
@openwrt-bot
Copy link
Author

mkresin:

Obviously something down the road from /e/c/network to the applied xrx200 switch config doesn't like a difference in "option vid" and option vlan".

The following creates at least the correct switch config (not tested if the correct tags are used):

config switch_vlan option device 'switch0' option vlan '3' option ports '0 4 5t 6t'

config switch_vlan
option device 'switch0'
option vlan '4'
option ports '2 6t'

config switch_vlan
option device 'switch0'
option vlan '5'
option ports '1 5t 6t'

Or with vid option

config switch_vlan option device 'switch0' option vlan '3' option vid '3' option ports '0 4 5t 6t'

config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
option ports '2 6t'

config switch_vlan
option device 'switch0'
option vlan '5'
option vid '5'
option ports '1 5t 6t'

Since it works fine for your DGN3500 (which is AR9 btw.), it doesn't look like it's something in our scrips/binaries which are applying the switch config.

On the other hand, since it works fine using the swconfig command, it neither looks like a xrx200 switch driver issue.

Really hard to say what's the issue here. Maybe it's LuCI which is to blame.

@openwrt-bot
Copy link
Author

rrt:

Maybe see if it due to lede producing non working swconfig syntax like FS#1341 - vlan configuration fails, trying the workaround.

@openwrt-bot
Copy link
Author

u1f35c:

Sorry for the delay in following up to this; I didn't notice there had been comments. I've confirmed the issue is still present in 18.06.2.

Mathias seems to be on to something; if I set the vlan + vid values to be the same it works as I expect with all 3 VLAN configs being applied.

Also to clarify the issue, this is with a text config file generated by LuCI + applied using "swconfig load", so if the config file format is incorrect I guess the blame lies with LuCI but I would have expected swconfig to complain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant