Hi all,
My TL-WDR4300 (Atheros AR9344) running "Barrier Breaker 14.07-rc3" needs
to use VLANs: 10, 20 and a native VLAN (frames not tagged).
The think is, I can't configure my "switch0" in order to NOT send the tag
1 that it uses as an internal VLAN ID.
So, the frames of the native VLAN ended up being transmitted with a VLAN
tag 1.
The following is my "/etc/config/network":
root@OpenWrt:/# cat /etc/config/network
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 'fd2d:27c1:c9f6::/48'
config interface 'management'
option ifname 'eth0.1'
option force_link '1'
option proto 'static'
option ipaddr '192.168.120.1'
option netmask '255.255.248.0'
config interface 'lan1'
option ifname 'eth0.10'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.128.1'
option netmask '255.255.248.0'
option ip6assign '60'
config interface 'lan2'
option ifname 'eth0.20'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.136.1'
option netmask '255.255.248.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 2 3 4 5' <--- (Look here: I don't want the tag
being transmitted)
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
config switch_vlan
option device 'switch0'
option vlan '10'
option ports '0t 2t 3t 4t 5t'
config switch_vlan
option device 'switch0'
option vlan '20'
option ports '0t 2t 3t 4t 5t'
config switch_port
option port '2'
option pvid '1'
config switch_port
option port '3'
option pvid '1'
config switch_port
option port '4'
option pvid '1'
config switch_port
option port '5'
option pvid '1'
And the following is the "swconfig dev switch0 vlan $port show" output:
root@OpenWrt:/# swconfig dev switch0 vlan 1 show
VLAN 1:
vid: 1
ports: 0t 2t 3t 4t 5t <--- (Look here: It's not reflecting what I
have configured in /etc/config/network)
root@OpenWrt:/# swconfig dev switch0 vlan 2 show
VLAN 2:
vid: 2
ports: 0t 1
root@OpenWrt:/# swconfig dev switch0 vlan 10 show
VLAN 10:
vid: 10
ports: 0t 2t 3t 4t 5t
root@OpenWrt:/# swconfig dev switch0 vlan 20 show
VLAN 20:
vid: 20
ports: 0t 2t 3t 4t 5t
Well, the VLAN 1 should have ports like "0t 2 3 4 5" and NOT like "0t 2t
3t 4t 5t".
So, any help would be appreciated.
Thanks in advance ...
--
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users