Home >System Tutorial >LINUX >What is the command to restart the network card in Linux?
You can restart the network card in the Linux system through the following command: shut down the network card: sudo ifdown
start the network card: sudo ifup <network card name>
Linux command to restart the network card
In Linux system, you can restart the network card through the following command:
<code class="shell">sudo ifdown <网卡名称> && sudo ifup <网卡名称></code>
Among them:
<Network Card Name>
Replace with the name of the network card to be restarted, such as eth0
. Detailed explanation of steps:
ifdown <Network card name>
Command The specified network card will be shut down. ifup <network card name>
The command will restart the specified network card. Example:
The following command will restart the network card eth0
:
<code class="shell">sudo ifdown eth0 && sudo ifup eth0</code>
Note:
sudo
. service networking restart
command to restart all network services, including the network card. The above is the detailed content of What is the command to restart the network card in Linux?. For more information, please follow other related articles on the PHP Chinese website!