How to:linux to check if the network card is plugged in by command

Source: Internet
Author: User

The main tools for Ethtool to check, the main focus on the field of "Link detected", note the following output, where em4 is physically not plugged in the network cable, and EM1 is plugged in:

# Ethtool Em4settings forem4:supported ports: [TP] supported link Modes:10baset/half 10baset/Full 100baseT/half 100baset/Full 1000baseT/half 1000baset/Full supported pause frame use:no Supports Auto-negotiation:yes advertised link modes:10baset/half 10baset/Full 100baseT/half 100baset/Full 1000baseT/half 1000baset/Full advertised pause frame use:symmetric advertised Auto-Negotiation:yes Speed:unknown!Duplex:unknown! (255) port:twisted Pair Phyad:2transceiver:internal Auto-Negotiation:on MDI-X:unknown Supports Wake-on:g Wake-on:d Current message level:0x000000ff(255) DRV probe link timer ifdown ifup rx_err tx_err link detected:no # Ethtool Em1settings forem1:supported ports: [TP] supported link Modes:10baset/half 10baset/Full 100baseT/half 100baset/Full 1000baseT/half 1000baset/Full supported pause frame use:no Supports Auto-negotiation:yes advertised link modes:10baset/half 10baset/Full 100baseT/half 100baset/Full 1000baseT/half 1000baset/Full advertised pause frame use:symmetric advertised Auto-negotiation:yes link Partner advertised link Modes:100baset/Full 1000baseT/Full Link partner advertised pause frame Use:transmit-Only Link partner advertised Auto-Negotiation:yes SPEED:1000MB/s Duplex:full port:twisted Pair Phyad:1transceiver:internal Auto-Negotiation:on MDI-x:on Supports Wake-on:g Wake-on:d Current message level:0x000000ff(255) DRV probe link timer ifdown ifup rx_err tx_err link detected:yes 

How to:linux to check if the network card is plugged in by command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.