Temat: Failed to initialize vlan filtering on this port

Cześć,

Wczoraj wypiąłem port lan1 i lan2 z br-lan i przypisałem do sieci IoT.
Po kablu wszystko spoko, ale klienci wifi sieci gościnnej wpiętej w ten sam interfejs nie dostawali IP.
Gdzieś wyczytałem, że trzeba zrobić bridge na eth i wlan i teraz mam 2 bridge.

O ile sieć IoT działa normalnie, to "główna sieć" z br-lan po kalbu już nie.
Porty lan3 i lan4 przechodzą od razu w disabled.

Oto config i logi:

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd39:98f2:66da::/48'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.9.254'
        option delegate '0'

config device
        option name 'wan'
        option macaddr '26:f5:a2:9d:e3:62'
        option ipv6 '0'

config interface 'wan'
        option device 'wan'
        option proto 'static'
        option ipaddr '10.10.10.253'
        option netmask '255.255.255.0'
        option gateway '10.10.10.254'
        list dns '1.1.1.1'

config interface 'IoT'
        option proto 'static'
        option ipaddr '192.168.99.254'
        option netmask '255.255.255.0'
        option delegate '0'
        option device 'br-iot'

config device
        option name 'lan1'
        option ipv6 '0'

config device
        option name 'eth0'
        option ipv6 '0'

config device
        option name 'lan2'
        option ipv6 '0'

config device
        option name 'wlan0'
        option ipv6 '0'

config device
        option name 'wlan0-1'
        option ipv6 '0'

config device
        option name 'wlan1'
        option ipv6 '0'

config device
        option type 'bridge'
        option name 'br-iot'
        list ports 'lan1'
        list ports 'lan2'
        option ipv6 '0'






Thu Jan  6 11:10:49 2022 kern.info kernel: [  180.275132] br-lan: port 2(lan4) entered blocking state
Thu Jan  6 11:10:49 2022 kern.info kernel: [  180.280379] br-lan: port 2(lan4) entered disabled state
Thu Jan  6 11:10:49 2022 kern.err kernel: [  180.287306] mv88e6085 f1072004.mdio-mii:00: p0: hw VLAN 1 already used by port 2 in br-iot
Thu Jan  6 11:10:49 2022 kern.err kernel: [  180.334886] mv88e6085 f1072004.mdio-mii:00 lan4: failed to initialize vlan filtering on this port

2 (edytowany przez mar_w 2022-01-06 12:39:05)

Odp: Failed to initialize vlan filtering on this port

W lan wskazałeś device br-lan a gdzie określiłeś co ten br-lan ma pod sobą?
Widzimy tylko br-iot
Ten nowy system DSA i jego konfiguracja niejednego doprowadzi do .....

Xiaomi AX3000T @ Netgear R6220
* DVBT2 - T230C *

3

Odp: Failed to initialize vlan filtering on this port

Sorki, nie wiem gdzie się w powyższym wpisie podział config br-lan.

Już tak namieszałem, że musiał pójść factory reset.
Teraz jadę z palca od nowa i obecnie to lan1 robi się DOWN, bo:

Thu Jan  6 12:56:33 2022 kern.info kernel: [  188.505931] br-iot: port 3(lan1) entered blocking state
Thu Jan  6 12:56:33 2022 kern.info kernel: [  188.511182] br-iot: port 3(lan1) entered disabled state
Thu Jan  6 12:56:33 2022 kern.err kernel: [  188.518116] mv88e6085 f1072004.mdio-mii:00: p3: hw VLAN 1 already used by port 0 in br-lan
Thu Jan  6 12:56:33 2022 kern.err kernel: [  188.565445] mv88e6085 f1072004.mdio-mii:00 lan1: failed to initialize vlan filtering on this port

NOWY CONFIG:

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdcd:d3b7:9a24::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.9.254'

config device
        option name 'wan'
        option macaddr '26:f5:a2:9d:e3:62'

config interface 'wan'
        option device 'wan'
        option proto 'static'
        option ipaddr '10.10.10.253'
        option netmask '255.255.255.0'
        option gateway '10.10.10.254'
        list dns '1.1.1.1'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

config interface 'iot'
        option proto 'static'
        option ipaddr '192.168.99.254'
        option netmask '255.255.255.0'
        option type 'bridge'
        option device 'br-iot'

config device
        option type 'bridge'
        option name 'br-iot'
        list ports 'lan1'

4

Odp: Failed to initialize vlan filtering on this port

option type 'bridge' w iot jest zbędne. Bridge właśnie określą się w config device

Na jakim routerze to robisz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Failed to initialize vlan filtering on this port

Edit: to linksys? Bug jest zgłoszony: https://bugs.openwrt.org/index.php?do=d … sk_id=4171

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Failed to initialize vlan filtering on this port

Cezary,
A co myślisz o sposobie nr. 3 ?
Wszystkie porty w jednym bridge ale podzielone na vlany bez tagowania. Tak było w starym podziale switcha.

https://openwrt.org/docs/guide-user/net … sing_vlans

Co innego gdy są niezależne fizyczne porty np. karta sieciowa HP365T. Wtedy sposób nr 2 działa jakby lepiej smile

Xiaomi AX3000T @ Netgear R6220
* DVBT2 - T230C *

7

Odp: Failed to initialize vlan filtering on this port

Sprawdź czy to na linksyscie Ci zadziała.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: Failed to initialize vlan filtering on this port

Cezary napisał/a:

Edit: to linksys? Bug jest zgłoszony: https://bugs.openwrt.org/index.php?do=d … sk_id=4171

O tototo! smile
Linksys WRT1900ACS

Dobra, czekam na załatanie buga, a na razie najwyżej oddzielne interfejsy iot-wlan i iot-eth i dwie sieci.
Nie muszą ze sobą gadać.

Dzięki!