怎么在linux 系统下,禁用和启用网卡(up/down), setting IP

启用

ifconfig -a (不加-a参数,只能查启用的网卡)
例如:网卡名 eth0
启用网卡命名 ifconfig eth0 up
禁用网卡命名 ifconfig eth0 down
验证了 suse系统/redhat系统/ubuntu系统/Frdora系统/CentOS系统,均能使用。

Setting IP

https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-cosmic-cuttlefish-linux

service network restart

你可能感兴趣的:(怎么在linux 系统下,禁用和启用网卡(up/down), setting IP)