Guidance on how to change Speed and Duplex of Intel® Ethernet Adapter in Linux* with ethtool command
The Intel® Ethernet Server Adapter X520 Series network card supports 10/1GbE data rate per port.
How do I change the speed of the network card in Linux*/CentOS*?
- Find the name of the network interface card:
- Run ifconfig from the command terminal.
- After determining the device name, run the following command to check the current Speed, Auto-Negotiation, and Duplex mode:
- ethtool devicename
- You can use the ethtool –s command to change the current settings by defining the values for Speed, Duplex, and Autoneg:
- sudo ethtool –s [device_name] speed [1000/10000] duplex [half/full] autoneg [on/off]
For example, to change the value of the Speed and Duplex to the following mode:
- Speed - 1000Mb/s
- Duplex mode - Full
- Auto negotiation - Off
Run the following command:
- sudo ethtool –s [device_name] speed 1000 duplex full autoneg off
ethtool is a Network Interface Card configuration command that allows you to retrieve information and change the Network Interface Card (NIC) settings.
These settings include Speed, Duplex, Auto-Negotiation, and many other parameters.