I am using OpenWRT 18.06 RC1 in my Turris Omnia and trying replicate my old swconfig configuration.
This is my old swconfig configuration:
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config interface 'dmz'
option type 'bridge'
option ifname 'eth1.2'
option proto 'static'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 4t 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4t 5t'
This is my new DSA configuration:
config interface 'lan'
option type 'bridge'
option ifname 'lan0 lan1 lan2 lan3 lan4.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config interface 'dmz'
option type 'bridge'
option ifname 'lan4.2'
option proto 'static'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
From router, I have ping with the other device on both vlan:
# ping -c 3 192.168.1.5
PING 192.168.1.5 (192.168.1.5): 56 data bytes
64 bytes from 192.168.1.5: seq=0 ttl=64 time=0.434 ms
64 bytes from 192.168.1.5: seq=1 ttl=64 time=0.335 ms
64 bytes from 192.168.1.5: seq=2 ttl=64 time=0.333 ms
--- 192.168.1.5 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.333/0.367/0.434 ms
# ping -c 3 192.168.3.5
PING 192.168.2.5 (192.168.3.5): 56 data bytes
64 bytes from 192.168.3.5: seq=0 ttl=64 time=0.455 ms
64 bytes from 192.168.3.5: seq=1 ttl=64 time=0.341 ms
64 bytes from 192.168.3.5: seq=2 ttl=64 time=0.337 ms
--- 192.168.3.5 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.337/0.377/0.455 ms
But from other device connected to lan0 port I can't do ping, the firewall rules are same as the old configuration and I have reviewed. I think the trouble is with vlan tagging - untagging.
How can I tag, untag a vlan using DSA?