[OpenWrt-Devel] MV88E6060 switch

Nerijus Baliūnas nerijus at users.sourceforge.net
Fri Jul 21 12:47:56 EDT 2017


2017-07-21 01:41, Sergey Ryazanov rašė:
> You   should   disable   CONFIG_NET_DSA_MV88E6060   and   select  only
> CONFIG_MVSWITCH_PHY=y  option.  This  two different drivers, the first
> one is mainstream Linux driver, and the second one is OpenWRT specific
> driver, which is mach more simple and small.
> 
>>> This driver uses VLAN tags to determine which port the frame should be
>>> sent from. Try to create couple of VLAN sub-interfaces on eth0 with ID
>>> 1 and 2 and work with them.
>> 
>> I'll try.
> 
> Yes,  use  the  latest version of LEDE, please, to avoid facing with
> long-forgotten bugs.

Tried the latest LEDE. Now I see in the boot log:
[    6.507617] NPE-B: firmware's license can be found in 
/usr/share/doc/LICENSE.IPL
[    6.515168] NPE-B: firmware functionality 0x2, revision 0x2:1
[    6.523171] eth0: link up, speed 0 Mb/s, full duplex

and now I see RX and TX packets on eth0 (they were 0 before).

How do I configure vlan? Here I changed eth0 to eth0.1:

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'
         option ip6assign '60'

And just copy/pasted from another router:

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

config switch_vlan
         option device 'rt305x'
         option vlan '1'
         option ports '0 1 2 3 5 6t'

config switch_vlan
         option device 'rt305x'
         option vlan '2'
         option ports '4 6t'

But still RX and TX packets are on eth0, not eth0.1:
# ifconfig  -a
br-lan    Link encap:Ethernet  HWaddr 00:18:39:21:0D:AE
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           inet6 addr: fd63:bf56:4b8::1/60 Scope:Global
           UP BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:18:39:21:0D:AE
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:1 errors:0 dropped:0 overruns:0 frame:0
           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:241 (241.0 B)  TX bytes:1551 (1.5 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:18:39:21:0D:AE
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:18:39:21:0D:AF
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback

Thanks,
Nerijus
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list