linux下启动和关闭网卡命令

临时开启网卡:[root@linux ~]# ifup {interface} 

[root@linux ~]# ifdown {interface} 

[root@linux ~]# ifup eth0

或者

ifconfig ethx up

ifconfig ethx down

 


永久开启:

修改:ONBOOT=yes

猜你喜欢

转载自blog.csdn.net/qq_18769269/article/details/80336350