How to Detect Which NIC Interface is cabled/connected?

How to Detect Which NIC Interface is cabled/connected?

Product Line:  VERDE


if you are looking for which eth# has a cable plugged in try:  sudo ethtool eth0 | grep Link

Given the aforementioned, if my eth0 NIC interface is being used, the following will result:


[root@localhost ~]# sudo ethtool eth0 | grep Link
       Link partner advertised link modes:  10baseT/Half 10baseT/Full
       Link partner advertised pause frame use: Symmetric Receive-only
       Link partner advertised auto-negotiation: Yes
       Link detected: yes



NOTE:
The only problem with the above ethtool output is that it will not detect connected cable if your network interface is down. Consider a following example:
# ethtool eth0 | grep Link
       Link detected: yes
# ifconfig eth0 down
# ethtool eth0 | grep Link
       Link detected: no
# ifconfig eth0 up
# ethtool eth0 | grep Link
       Link detected: yes


[8:07]
So, recommend to add ifconfig eth0 up before ethtool

    • Related Articles

    • Required NIC Interface Naming Convention

      Product Line:  VERDE Specific to VERDE (rpm's), the Network Interface must be named the same across all VERDE servers. Installing with VERDE rpm's, CENTOS 7.x takes liberties and renames the NIC.  Here are instructions on how to configure the name ...
    • VERDE VDI Network Terms - Networking with Dual-NICs

      Product Line:  VERDE Preface:      The information contained within this document refers to the networking aspects of the VERDE VDI software solution being installed via a set of RPMs (program modules) on top of CentOS7.  The following networking ...
    • Verde VDI Network Terms and Descriptions - NIC Teaming

      Product Line:  VERDE Introduction:      The information contained within this document refers to the networking aspects of the VERDE VDI software solution being installed via a set of RPMs (program modules) on top of CentOS7.  The following ...
    • Verde VDI Network Terms and Descriptions - NIC Bonding

      Product Line:  VERDE Introduction:      The information contained within this document refers to the networking aspects of the VERDE VDI software solution being installed via a set of RPMs (program modules) on top of CentOS7.  The following ...
    • Install VERDE (rpm) on Centos 7 with NIC Teaming

      Product Line:  VERDE NIC Teaming is a very nice networking feature that lets us use more than one adapter in a paired mode (team) for better speed and more redundancy.  Here are instructions for TEAMING two NICs while installing Centos7 with VERDE. ...