1. 列出启用网络设备的所有信息:
ifconfig
2. 将网络设备设置为启用或者不启用
不启用设备eth0
ifconfig eth0 down
启用设备eth0: Will bring eth0 up if it is currently down.
ifup eth0
停止设备eth0:Will bring eth0 down if it is currently up.
ifdown eth0
时间: 2024-12-21 07:09:33
1. 列出启用网络设备的所有信息:
ifconfig
2. 将网络设备设置为启用或者不启用
不启用设备eth0
ifconfig eth0 down
启用设备eth0: Will bring eth0 up if it is currently down.
ifup eth0
停止设备eth0:Will bring eth0 down if it is currently up.
ifdown eth0