关闭eth0或者某个网络接口

ifdown eth0 关闭eth0网络接口
ifup eth0 打开eth0网络接口
如果上面的命令无效,请使用下面的
ifconfig eth0 down 关闭eth0接口
ifconfig eth0 up 打开eth0接口

你可能感兴趣的:(网络配置)