In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Use the ifconfig command to view the Nic information
Ifconfig is a command used to display or configure network devices (network interface cards) in linux. Its full name is network interfaces configuring in English. Ifconfig sets the status of the network device or displays the current settings.
Example:
2. Use ethtool to view the network card
Ethtool is a command used to query and set network card parameters under Linux.
Summary of usage:
Ethtool ethx / / query the basic settings of ethx network port, where x is the number of the corresponding network card, such as eth0, eth2, etc.
Ethtool-h / / displays command help for ethtool (help)
Ethtool-I ethX / / query the relevant information of ethX network port
Ethtool-d ethX / / query ethX network port registration information
Ethtool-r ethX / / resets the ethX port to adaptive mode
Ethtool-S ethX / / query the statistics of sending and receiving packets on ethX network port
Ethtool-s ethX [speed 10 | 100 | 1000] [duplex half | full] [autoneg on | off] / / set the network port rate to 100pm and 1000m, set half / full duplex, and set whether the network port is self-negotiated.
Example:
[root@CentOS76 ~] # ethtool ens192Settings for ens192: Supported ports: [TP] Supported link modes: 1000baseT/Full 10000baseT/Full Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver : internal Auto-negotiation: off MDI-X: Unknown Supports Wake-on: uag Wake-on: d Link detected: yes [root@CentOS76 ~] #
These are the details of how linux views the network card information. Please pay attention to other related articles for more information.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.