How to change the network card speed in Centos7?

To change the network card speed in CentOS7, you can follow these steps:

  1. Open the terminal and log in to the system.
  2. Use the following command to view the available network card information in the system:
ifconfig
  1. Please specify the name of the network card you want to modify, such as eth0.
  2. Use the following command to change the network card speed, where the speed is modified to 1000Mbps:
ethtool -s eth0 speed 1000
  1. To verify if the rate has been successfully modified, you can use the following command to check the current speed of the network card:
ethtool eth0
  1. To make the modified rate permanently effective, you can edit the network card configuration file. Open the configuration file of the network card, such as eth0.
vi /etc/sysconfig/network-scripts/ifcfg-eth0

Add the following content to the configuration file:

ETHTOOL_OPTS="speed 1000"

Save the configuration file and exit.

  1. Restart the network service to apply the changes.
systemctl restart network

After completing the above steps, the network card speed will be successfully changed.

bannerAds