linux如何临时性关闭指定的网卡

2026年09月18日 22:30
有2个网友回答
网友(1):

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

网友(2):

ifdown
ifup