Temat: WRT32x vlan na DSA

Witam.
Związku, że teraz openwrt przeniosło mój router na DSA, zniknęła możliwość zrobienia vlan na switch.
Może ktoś mi napisać jak dodać teraz do konfigu vlan na LAN1 (dla gości i urządzeń "rzeczy")
Mam coś takiego teraz (po staremu)

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

config globals 'globals'
        option ula_prefix 'fd60:c878:e43e::/48'

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '10.0.0.1'
        option stp '1'
        option igmp_snooping '1'
        option delegate '0'
        list dns '1.1.1.1'
        list dns '1.0.0.1'
        option ifname 'VLAN Wireguard eth0. eth0.1 tap_tap_soft'

config interface 'wan'
        option ifname 'eth1.2'
        option proto 'dhcp'
        option metric '1'

config interface 'wan6'
        option ifname 'eth1.2'
        option proto 'dhcpv6'
        option auto '0'

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

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

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

config wireguard_test

config interface 'Wireguard'
        option proto 'wireguard'
        option listen_port '2223'
        option private_key 'klucz'
        list addresses '172.16.21.4'

config wireguard_Wireguard
        list allowed_ips '172.16.21.4'
        option description 'Android'
        option public_key 'klucz'
        option route_allowed_ips '1'

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

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

config interface 'IOTlan'
        option proto 'static'
        option netmask '255.255.255.0'
        option type 'bridge'
        option ipaddr '10.1.0.1'
        option ifname 'eth0.4 tap_iot'

config interface 'Guest_Wan'
        option proto 'static'
        option type 'bridge'
        option netmask '255.255.255.0'
        list dns '8.8.8.8'
        option ifname 'eth0.5'
        option ipaddr '192.168.10.1'

config interface 'wan1'
        option proto 'ncm'
        option ipv6 'auto'
        option apn 'internet'
        option pdptype 'IP'
        option service 'auto'
        option auto '0'
        option device '/dev/cdc-wdm0'
        option metric '2'

config route
        option target '5.8.8.8'
        option table 'local'
        option gateway '10.1.0.203'
        option interface 'IOTlan'

jak to dodać do DSA?

2

Odp: WRT32x vlan na DSA

No to wpadłeś jak śliwka w kompot. VLANy średnio działają, ale przeczytaj
https://bugs.openwrt.org/index.php?do=d … sk_id=1622
http://lists.infradead.org/pipermail/op … 23774.html

itd.

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

3

Odp: WRT32x vlan na DSA

No dobra poradziłem sobie.
pomocny był ten temat
https://github.com/openwrt/openwrt/pull/2942
trzeba też pamiętać by mieć zainstalowany pakiet "ip-bridge"