Menu

#36 mii-tool: automatically enumerate all interfaces by default (like ifconfig)

BETA-1.65-UPSTREAM
open
nobody
None
5
2021-01-04
2017-06-13
Daniele
No

When launched without arguments, mii-tool scans for 8 interfaces (from eth0 to eth7).
This does not make much sense in today linux interface naming convention.
It would be much better to list all interfaces of Ethernet type, perhaps excluding common virtual interfaces (those starting with virbr, vmnet, docker) or excluding directly all bridges (as in brctl show).
For example:
ifconfig -a|grep Ethernet|egrep -v 'virbr|vmnet|docker'

Discussion

  • Daniele

    Daniele - 2017-06-13

    I forgot: it should exclude also wireless interfaces, like those listed by "iwconfig".
    I am quite sure that somewhere in /sys or /proc there is a way to list all network interfaces with a "true" ethernet type...

     
  • Mike Frysinger

    Mike Frysinger - 2021-01-04
    • summary: Wrong default interface names lookup in mii-tool --> mii-tool: automatically enumerate all interfaces by default (like ifconfig)
     

Log in to post a comment.