How to adjust the Nic working mode in Linux

Source: Internet
Author: User
Article Title: how to adjust the Nic working mode in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Currently, NICs are generally in 10/100 M adaptive working mode. when configuring Nic parameters, we seldom consider the working mode, however, on key devices with large traffic volumes such as routers, switches, and proxy servers, we should specify the correct working mode for them to improve communication efficiency. In a Linux environment, we can use the system's built-in tool mii-tool (which is a command specifically used to set the Nic working mode) to configure the Nic working mode. The following describes how to use it.
  
   1. view the Nic working mode and enter the following command:
# Mii-tool-v
Eth0: negotiated 100baseTx-FD, link OK
Product info: Vendor 00: 05: be, model 8 rev 0
Basic status: autonegotiation complete, link OK
Basic mode: autonegotiation enabled.
Capabilities :..............
  
From the above information, we can see that this network card works in 100 M Full Duplex adaptive mode, "basetx-fd" means M Full Duplex.
  
   2. change the Nic working mode and enter the following command:
# Mii-tool-F media [interface]
  
Media optional modes include 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD. Interface indicates the selected Nic, such as eth0 and eth1. the default value is eth0.
  
For example, to set the NIC to work in 10 m half duplex mode, enter the following command:
# Mii-tool-F 10baseT-HD eth0
  
   3. restore the adaptive working mode of the network adapter. enter the following command:
# Mii-tool-r eth0
  
You can use mii-tool-h for more detailed usage.
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.