View and set CentOS NIC status

Source: Internet
Author: User
The problem of checking and setting the CentOS NIC status accidentally found that the connection speed of the Lan of a server used for storage in the lab was only 100 MB, however, the lab uses a gigabit switch server as well as a gigabit Nic, and the LAN speed of other servers of the same type for the same purpose reaches gigabit. Therefore,... information CentOS NIC status check and setup problems accidentally found that the connection speed in the Lan of a server used for storage in the laboratory is only 100 MB, however, the lab uses a gigabit switch server as well as a gigabit Nic, and the LAN speed of other servers of the same type has reached a gigabit speed. Therefore, a problem arises: how to view the Nic device of the server, how can I adjust the current connection speed? There are already a lot of network adapters in related documents, so I don't want to worry about it. Here are some articles for your reference: The server network adapter information in the solution process is as follows. here we can see that the network adapter supports Gbit/s, however, the actual connection speed is only MB. as a storage server, this is a big loss. [Plain] [root @ store3 ~] # Ethtool eth0 Settings for eth0: Supported ports: [TP] Supported link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 100 Mb/s Duplex: full Port: Twisted Pair PHYAD: 1 Transceiv Er: internal Auto-negotiation: on MDI-X: Unknown Supports Wake-on: g Link detected: yes here I mainly use ethtool for settings, however, after the setting is complete, the speed does not change [plain] [root @ store3 ~] # Ethtool-s eth0 speed 1000 [root @ store3 ~] # Ethtool eth0 Settings for eth0: Supported ports: [TP] Supported link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 100 Mb/s Duplex: full Port: Twisted Pair PHYAD: 1 Transceiv Er: internal Auto-negotiation: on MDI-X: Unknown Supports Wake-on: g Link detected: yes use the ethtool-s eth0 duplex full autoneg off speed 1000 command to report a Parameter error, after multiple tossing times, you can find that after using ethtool-s eth0 autoeng off, you can set the network speed to 10 or 100 by using the ethtool-s eth0 speed N command, but the Parameter error is reported when you change to 1000. After several attempts, I finally found a problem with the network cable !!! After changing the network speed, it will go up, speechless. Although the final problem lies in the network cable, at least I learned how to view the network card status and simple settings. it is worth record.
Related Article

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.