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 (184) - ifconfig link speed (175) - ifconfig speed (143) - ifconfig duplex (87) - ethtool phyad (73) - ethtool (63) - ethtool link detected (53) - ethtool link detected = no (48) - ifconfig speed duplex (42) - linux ifconfig speed (40) - ethtool solaris (40) - ethtool usage (39) - linux ifconfig link speed (35) - ifconfig status (35) - ifconfig link (34) - ifconfig link-status (33) - ethtool supported ports (31) - solaris ethtool (31) - f (28) - rhel ifconfig (27) - linux link status (26) - ifconfig port speed (26) - ifconfig does not work (25) - ethtool link status (24) - solaris 10 link status (24) - ethtool link (23) - ifconfig auto negotiate (20) - ifconfig RHEL (20) - eth0 link speed (20) - PHYAD ethtool (20) - solaris NIC status (19) - ifconfig 100 full (18) - ethtool ifconfig (18) - ethtool link speed (17) - linux: ifconfig + duplex (16) - linux ifconfig link status (16) - ethtool status (16) - link speed ifconfig (16) - ethtool advertised (16) - redhat ifconfig (16) - ethtool operation 3 (16) - ethtool Operation not supported (16) - RHEL commands (15) - solaris ifconfig speed (14) - solaris 10 ifconfig (14) - ifconfig full (14) - ifconfig autonegotiate (14) - ifconfig auto (14) - ipconfig does not work (14) - linux eth0 status (14) - ethtool for solaris (14) - ifconfig speed linux (13) - ifconfig 100baset (13) - ethtool "Advertised link modes" (13) - ethtool port (13) - Solaris ifconfig duplex (12) - ethtool does not work (12) - "link status" linux (12) - ifconfig duplex speed (12) - ethtool auto-negotiation (12) - ethtool rhel (12) - solaris link speed (11) - ifconfig autonegotiation (11) - ifconfig redhat (11) - ifconfig negotiation (11) - ethtool autonegotiate (10) - redhat link speed (10) - linux eth0 link status (10) - ifconfig 1000baseT (10) - ethtool auto (10) - linux nic link status (10) - how to use ethtool (10) - ifconfig full-duplex (10) - ethtool redhat (9) - rhel4 ethtool (9) - solaris 10 ethtool (9) - RHEL ethtool (9) - redhat ipconfig (9) - ifconfig autoneg (9) - ipconfig for redhat (9) - ifconfig eth0 speed (8) - ifconfig auto negotiation (8) - nic status solaris (8) - ifconfig ethtool (8) - ethtool link not detected (8) - ethtool eth0 (8) - linux ifconfig auto (8) - ethtool speed (8) - linux ethernet link status (8) - ethtool autoneg (8) - vmware ethtool operation 3 not supported (8) - ethtool operation 3 not supported vmware (8) - link status (8) - vmware ethtool (8) - ifconfig link status (8) - all (7) - ethtool rhel4 (7) - linux duplex ifconfig (7) - ifconfig network speed (7) - linux ifconfig 1000BaseT (7) - Linux ifconfig full duplex (7) - ipconfig duplex (7) - eth0 link status (7) - solaris link status (7) - solaris network link status (7) - ethtool Link detected: yes (7) - ethtool vmware (7) - ethtool Link detected: no (7) - ifconfig full duplex (7) - link speed (6) - solaris ifconfig (6) - mss (6) - ifconfig duplex linux (6) - linux link speed ethtool (6) - ethernet link status linux (6) - linux network link status (6) - linux ifconfig network speed (6) - supported ports ethtool (6) - linux eth speed (6) - RHEL4 ifconfig (6) - redhat ifconfig duplex (6) - ethtool autonegotiation (6) - ethtool Solaris 10 (6) - Linux ifconfig Link (6) - redhat 5 ifconfig (6) - Link detected: no ethtool (6) - autonegotiation solaris 10 (6) - Linux ifconfig status (6) - ethtool vs ifconfig (6) - ipconfig redhat (6) - solaris auto negotiate (5) - linux ifconfig autonegotiate (5) - redhat link status (5) - linux duplex status (5) - ifconfig linux link speed (5) - ethtool supported ports TP (5) - ifconfig speed and duplex (5) - link status solaris (5) - PHYAD: 1 (5) - solaris ifconfig link speed (5) - ifconfig redhat 4 (5) - solaris ifconfig status (5) - solaris 8 ethtool (5) - ethtool in solaris (5) - link speed "solaris 10" (5) - linux ifconfig 100 (5) - solaris nic link status (5) - solaris 10 network link status (5) - linux ifconfig auto-negotiate (5) -