linux下启动和关闭网卡命令

来源:互联网 发布:git ignore linux 编辑:程序博客网 时间:2024/05/22 16:04
临时开启网卡:
[root@linux ~]# ifup {interface} 
[root@linux ~]# ifdown {interface} 
[root@linux ~]# ifup eth0
或者
ifconfig ethx up
ifconfig ethx down

永久开启:
修改:ONBOOT=yes
0 0