[FS#669] CPE510: missing link details (via ethtool)

LEDE Bugs lede-bugs at lists.infradead.org
Sun May 14 19:30:38 PDT 2017


The following task has a new comment added:

FS#669 - CPE510: missing link details (via ethtool)
User who did this - Yousong Zhou (yousong)

----------
I guess it's mainly because eth0 is actually only modelled as the "cpu port" of the builtin switch.  The switch has multiple ports and each of them can have different negotiated link speed.

Link details can be fetched with swconfig utility


root at LEDE:~# swconfig
swconfig list
swconfig dev  [port |vlan ] (help|set  |get |load |show)
root at LEDE:~# swconfig list
Found: switch0 - eth0
root at LEDE:~# swconfig dev eth0 show
Global attributes:
        enable_vlan: 1
Port 0:
        pvid: 1
        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
        pvid: 1
        link: port:1 link:down
Port 2:
        pvid: 1
        link: port:2 link:down
Port 3:
        pvid: 1
        link: port:3 link:down
Port 4:
        pvid: 1
        link: port:4 link:down
VLAN 1:
        vid: 1
        ports: 0 1 2 3 4
root at LEDE:~# swconfig dev eth0 port 0 get link
port:0 link:up speed:1000baseT full-duplex txflow rxflow
root at LEDE:~# swconfig dev eth0 port 1 get link
port:1 link:down
root at LEDE:~#

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=669#comment2633



More information about the lede-bugs mailing list