I don't see how the problem is with the switch if you can ping to the
device. To my understanding, the switch is unaware of the protocol above
link layer and arp.


On Fri, Sep 20, 2013 at 2:48 PM, [email protected] <[email protected]>wrote:

> Seems to me like the vlan=0 case is broken on the RT5350.
>
> So for testing...
>
> First I removed everything from file/etc... and rebuild
> This configuration got generated, I edited it to change the IP.
>
> 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 'fd5e:5ebe:13ed::/48'
>
> config switch
> option name 'switch0'
> option reset '1'
> option enable_vlan '0'
>
> config interface 'lan'
> option ifname 'eth0'
> option type 'bridge'
> option proto 'static'
> option ipaddr '192.168.1.85'
> option netmask '255.255.255.0'
> option ip6assign '60'
>
> This configuration does not work for http but I can ping to it.
>
> root@OpenWrt:/etc/config# swconfig dev switch0 show
> Global attributes:
> enable_vlan: 0
> alternate_vlan_disable: 0
> bc_storm_protect: 0
> led_frequency: 0
> Port 0:
> disable: 0
> doubletag: 1
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:0 link:down
> Port 1:
> disable: 0
> doubletag: 1
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 693
> tr_bad: 0
> tr_good: 60
> disable: 0
> doubletag: 1
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:2 link:down
> Port 3:
> disable: 0
> doubletag: 1
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:3 link:down
> Port 4:
> disable: 0
> doubletag: 1
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:4 link:down
> Port 5:
> disable: 1
> doubletag: 1
> untag: 1
> led: ???
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:5 link:down
> Port 6:
> disable: 0
> doubletag: 1
> untag: 1
> led: ???
> lan: ???
> recv_bad: ???
> recv_good: ???
> tr_bad: ???
> tr_good: ???
> pvid: 0
> link: port:6 link:up speed:1000baseT full-duplex
> VLAN 0:
> ports: 0 1 2 3 4 5 6
> root@OpenWrt:/etc/config#
>
> Next I restored files/etc/.... which will enable the VLAN
> and everything works as expected
>
> root@OpenWrt:/etc/config# cat 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 'fd59:3f8d:cb3a::/48'
>
> config interface 'lan'
> option ifname 'eth0.1 wlan'
> option type 'bridge'
> option proto 'static'
> option ipaddr '192.168.1.85'
> option netmask '255.255.255.0'
> option ip6assign '60'
>
> config interface 'wan'
> option ifname 'eth0.2'
> option type 'bridge'
> option proto 'static'
> option ipaddr '192.168.1.86'
> option netmask '255.255.255.0'
>
> config interface 'wan6'
> option ifname '@eth0.2'
> option proto 'dhcpv6'
>
> config switch
> option name 'rt305x'
> option reset '1'
> option enable_vlan '1'
>
> config switch_vlan
> option device 'rt305x'
> option vlan '1'
> option ports '1 2 3 4 6t'
>
> config switch_vlan
> option device 'rt305x'
> option vlan '2'
> option ports '0  6t'
>
> root@OpenWrt:/etc/config# swconfig dev switch0 show
> Global attributes:
> enable_vlan: 1
> alternate_vlan_disable: 0
> bc_storm_protect: 0
> led_frequency: 0
> Port 0:
> disable: 0
> doubletag: 0
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 2
> link: port:0 link:down
> Port 1:
> disable: 0
> doubletag: 0
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 463
> tr_bad: 0
> tr_good: 162
> pvid: 1
> link: port:1 link:up speed:100baseT full-duplex
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 1
> link: port:2 link:down
> Port 3:
> disable: 0
> doubletag: 0
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 1
> link: port:3 link:down
> Port 4:
> disable: 0
> doubletag: 0
> untag: 1
> led: 5
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 1
> link: port:4 link:down
> Port 5:
> disable: 1
> doubletag: 0
> untag: 0
> led: ???
> lan: 1
> recv_bad: 0
> recv_good: 0
> tr_bad: 0
> tr_good: 0
> pvid: 0
> link: port:5 link:down
> Port 6:
> disable: 0
> doubletag: 0
> untag: 0
> led: ???
> lan: ???
> recv_bad: ???
> recv_good: ???
> tr_bad: ???
> tr_good: ???
> pvid: 0
> link: port:6 link:up speed:1000baseT full-duplex
> VLAN 1:
> ports: 1 2 3 4 6t
> VLAN 2:
> ports: 0 6t
>
>
>
> --
> Jon Smirl
> [email protected]
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to