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

Inconsistency in VLAN handling #4

Open
Fail-Safe opened this issue Apr 26, 2023 · 0 comments
Open

Inconsistency in VLAN handling #4

Fail-Safe opened this issue Apr 26, 2023 · 0 comments

Comments

@Fail-Safe
Copy link

Fail-Safe commented Apr 26, 2023

I have three VLANs in my network, one of which is untagged (1) and the other two of which are tagged (9 & 99) on the physical device wan.

Snippets from /etc/config/network:

config device
	option name 'br-lan'
	option type 'bridge'
	option stp '1'
	option igmp_snooping '1'
	option ipv6 '0'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'
	list ports 'wan'

config bridge-vlan
	option device 'br-lan'
	option vlan '1'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'
	list ports 'wan:u*'

config bridge-vlan
	option device 'br-lan'
	option vlan '9'
	list ports 'wan:t'

config bridge-vlan
	option device 'br-lan'
	option vlan '99'
	list ports 'wan:t'

Upon device reboot, bridger reports the following VLAN-related output:

# cat /tmp/bridger_log | grep -E '(Add|Update|Remove) vlan'
device_vlan_add(285) Add vlan 1 to device br-lan
device_vlan_add(285) Add vlan 1 to device br-lan
device_vlan_add(285) Add vlan 9 to device br-lan
device_vlan_add(285) Add vlan 99 to device br-lan
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan1
device_vlan_add(277) Update vlan 1 on device lan1
device_vlan_add(277) Update vlan untaggged pvid 1 on device lan1
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan2
device_vlan_add(277) Update vlan 1 on device lan2
device_vlan_add(277) Update vlan untaggged pvid 1 on device lan2
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan3
device_vlan_add(277) Update vlan 1 on device lan3
device_vlan_add(277) Update vlan untaggged pvid 1 on device lan3
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan4
device_vlan_add(277) Update vlan 1 on device lan4
device_vlan_add(277) Update vlan untaggged pvid 1 on device lan4
device_vlan_add(285) Add vlan untaggged pvid 1 to device wan
device_vlan_add(277) Update vlan 1 on device wan
device_vlan_add(277) Update vlan untaggged pvid 1 on device wan
device_vlan_add(285) Add vlan 9 to device wan
device_vlan_add(285) Add vlan 99 to device wan
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl0-ap0
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl0-ap1
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl0-ap2
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl0-ap3
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl1-ap0
device_vlan_add(277) Update vlan 1 on device wl0-ap0
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl0-ap0
device_vlan_add(277) Update vlan 1 on device wl0-ap1
device_vlan_add(285) Add vlan untaggged pvid 99 to device wl0-ap1
device_vlan_add(277) Update vlan 1 on device wl0-ap2
device_vlan_add(277) Update vlan untaggged pvid 1 on device wl0-ap2
device_vlan_add(277) Update vlan 1 on device wl0-ap3
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl0-ap3
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl1-ap1
device_vlan_add(277) Update vlan 1 on device wl1-ap0
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl1-ap0
device_vlan_add(277) Update vlan 1 on device wl1-ap1
device_vlan_add(277) Update vlan untaggged pvid 1 on device wl1-ap1
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl1-ap2
device_vlan_add(277) Update vlan 1 on device wl1-ap2
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl1-ap2

However, if bridger is restarted, whether manually or automatically (via respawn), this is the resulting VLAN-related output:

# cat /tmp/bridger_log | grep -E '(Add|Update|Remove) vlan'
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan1
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan2
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan3
device_vlan_add(285) Add vlan untaggged pvid 1 to device lan4
device_vlan_add(285) Add vlan 99 to device wan
device_vlan_add(285) Add vlan 99 to device br-lan
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl0-ap0
device_vlan_add(285) Add vlan untaggged pvid 99 to device wl0-ap1
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl0-ap2
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl1-ap0
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl0-ap3
device_vlan_add(285) Add vlan untaggged pvid 1 to device wl1-ap1
device_vlan_add(285) Add vlan untaggged pvid 9 to device wl1-ap2

In the case of a service restart, why does bridger not give indication that VLANS 1 & 9 are added to devices wan, br-lan, and wl*-ap*?

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

No branches or pull requests

1 participant