NIC restart command

service network restart is to restart all network cards.
For example the following example:

>ifconfig eth0 up|down
>service network restart|start|stop

1. The former specifies the corresponding network card and the latter is all network cards
. 2. The former option has startup and shutdown options and the latter has the restart option.
That is: if the former has a restart effect, it needs ifconfig eth0 down && ifconfig eth0 up[remote operation needs to pay attention]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325573020&siteId=291194637