IFCONFIG Does Not give You Link Status; ETHTOOL Does

For some reason that is a complete mystery to me, RHEL does not give you the link status when you run # ifconfig -a. This makes it incredibly hard to debug link integrity issues! Buried amongst all of Red Hat’s proprietary commands, however, is a utility called ethtool, which does give you the status of your link.

Since ethtool is used for querying settings of an ethernet device and changing them, it does a lot more than just give link status. Amongst other things, you can use it to turn on or off autonegotiation on your network card. Run # /sbin/ethtool -h for full usage.

Here’s how you use it to see if your server has link:

# /sbin/ethtool eth0

You should see something like this:

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Link detected: yes

Discuss This Article


Got something to say?






Post Tags (user submitted): t (560) - ethtool operation 3 not supported (209) - ifconfig link speed (185) - ifconfig speed (154) - ethtool (107) - ifconfig duplex (96) - ethtool phyad (82) - ethtool link detected (61) - ifconfig speed duplex (51) - ethtool link detected = no (48) - linux ifconfig speed (44) - ethtool usage (43) - ethtool solaris (42) - linux ifconfig link speed (41) - ifconfig link (38) - solaris ethtool (37) - ifconfig status (35) - ifconfig link-status (33) - ethtool supported ports (33) - rhel ifconfig (32) - linux link status (29) - ifconfig does not work (28) - f (28) - ethtool link status (27) - ifconfig port speed (27) - PHYAD ethtool (25) - ethtool link (24) - solaris 10 link status (24) - ethtool Operation not supported (23) - ifconfig auto negotiate (22) - ifconfig RHEL (21) - ethtool link speed (20) - ethtool status (20) - eth0 link speed (20) - solaris NIC status (20) - solaris 10 ifconfig (19) - ifconfig 100 full (19) - redhat ifconfig (19) - ethtool ifconfig (18) - ethtool operation 3 (18) - ethtool Link detected: no (18) - link speed ifconfig (17) - ethtool advertised (17) - linux: ifconfig + duplex (16) - linux ifconfig link status (16) - linux eth0 status (16) - RHEL commands (15) - solaris ifconfig speed (15) - ifconfig autonegotiate (15) - ipconfig does not work (15) - redhat ipconfig (15) - ethtool for solaris (15) - Solaris ifconfig duplex (14) - ifconfig speed linux (14) - ifconfig full (14) - ifconfig duplex speed (14) - ifconfig auto (14) - Linux ifconfig full duplex (14) - linux nic link status (14) - ifconfig 100baset (13) - ethtool "Advertised link modes" (13) - ethtool port (13) - ethtool does not work (12) - "link status" linux (12) - ifconfig redhat (12) - ethtool auto-negotiation (12) - ethtool rhel (12) - solaris link speed (11) - ifconfig autonegotiation (11) - ifconfig 1000baseT (11) - ifconfig negotiation (11) - how to use ethtool (11) - ifconfig full-duplex (11) - ifconfig full duplex (11) - ethtool autonegotiate (10) - redhat link speed (10) - linux eth0 link status (10) - RHEL ethtool (10) - ethtool auto (10) - ethtool speed (10) - ipconfig for redhat (10) - ifconfig link status (10) - ifconfig network speed (9) - ethtool redhat (9) - rhel4 ethtool (9) - solaris 10 ethtool (9) - ipconfig duplex (9) - ifconfig autoneg (9) - linux ethernet link status (9) - vmware ethtool operation 3 not supported (9) - ethtool operation 3 not supported vmware (9) - vmware ethtool (9) - ethtool Link detected no (9) - ifconfig eth0 speed (8) - ethernet link status linux (8) - ifconfig auto negotiation (8) - nic status solaris (8) - linux ifconfig 1000BaseT (8) - ifconfig ethtool (8) - ethtool link not detected (8) - ethtool eth0 (8) - linux ifconfig auto (8) - solaris link status (8) - ethtool autoneg (8) - ipconfig redhat (8) - link status (8) - ethtool vmware (8) - all (7) - solaris ifconfig (7) - ethtool rhel4 (7) - linux duplex ifconfig (7) - linux ifconfig network speed (7) - linux eth speed (7) - ethtool Solaris 10 (7) - Linux ifconfig Link (7) - eth0 link status (7) - solaris network link status (7) - ethtool Link detected: yes (7) - link speed (6) - mss (6) - ifconfig duplex linux (6) - redhat link status (6) - ethtool supported ports TP (6) - linux link speed ethtool (6) - linux network link status (6) - supported ports ethtool (6) - RHEL4 ifconfig (6) - redhat ifconfig duplex (6) - ethtool autonegotiation (6) - redhat 5 ifconfig (6) - Link detected: no ethtool (6) - autonegotiation solaris 10 (6) - solaris 10 network link status (6) - ethtool on Solaris (6) - Linux ifconfig status (6) - ethtool port speed (6) - RHEL 5 ifconfig (6) - ethtool vs ifconfig (6) - solaris auto negotiate (5) - ifconfig speed solaris (5) - linux ifconfig autonegotiate (5) - RHEL link speed (5) - linux duplex status (5) - ifconfig linux link speed (5) - ifconfig speed and duplex (5) - link status solaris (5) - ifconfig linux duplex (5) - PHYAD: 1 (5) - solaris ifconfig link speed (5) - ifconfig redhat 4 (5) -