ipq40xx : Configure (CPU)eth0 as tagged port fails
Username: iShoot
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1652
Router type : Asus RT-AC58U
Version : OpenWrt SNAPSHOT, r7478-16035a7d
Target : ipq40xx
VLAN’s on the switch work fine with tagged and untagged physical Ethernet ports, but when (CPU)eth0 is configured as tagged port then communication between CPU(eth0) and devices attached to the switch fails.
Working config :
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 'fd80:cae7:38f3::/48'
config interface 'lan' option type 'bridge' option proto 'static' option ipaddr '192.168.1.4' option netmask '255.255.255.0' option gateway '192.168.1.1' option dns '192.168.1.1' option ip6assign '60' option ifname 'eth0'
config device 'lan_dev' option name 'eth0' option macaddr 'b0:6e:bf:a9:79:08'
config interface 'wan' option ifname 'eth1' option proto 'static' option netmask '255.255.255.0' option ipaddr '172.16.1.1'
config device 'wan_dev' option name 'eth1' option macaddr 'b0:6e:bf:a9:79:0c'
config interface 'wan6' option ifname 'eth1' option proto 'none'
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 1t 2 4'
config interface 'VPN' option proto 'none' option ifname 'tun0'
config switch_vlan option device 'switch0' option vlan '2' option vid '3' option ports '1t 3'
NOT working config :
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 'fd80:cae7:38f3::/48'
config interface 'lan' option type 'bridge' option proto 'static' option ipaddr '192.168.1.4' option netmask '255.255.255.0' option gateway '192.168.1.1' option dns '192.168.1.1' option ip6assign '60' option ifname 'eth0.1'
config device 'lan_dev' option name 'eth0' option macaddr 'b0:6e:bf:a9:79:08'
config interface 'wan' option ifname 'eth1' option proto 'static' option netmask '255.255.255.0' option ipaddr '172.16.1.1'
config device 'wan_dev' option name 'eth1' option macaddr 'b0:6e:bf:a9:79:0c'
config interface 'wan6' option ifname 'eth1' option proto 'none'
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 '0t 1t 2 4'
config interface 'VPN' option proto 'none' option ifname 'tun0'
config switch_vlan option device 'switch0' option vlan '2' option vid '3' option ports '1t 3'