Desativar a interface NIC permanentemente no RHEL7?

Desativar a interface NIC permanentemente no RHEL7?

Como desabilitar permanentemente a interface NIC no RHEL7? O comando:

ifconfig -a

não deve mostrar uma interface após a desativação.

Responder1

tentar

sudo ip link set <NIC_NAME> down

isso derrubará a NIC e, em seguida, removê-la da listagem ifconfig.

vim /etc/sysconfig/network-scripts/ifcfg-<NIC_NAME>

e comente todas as linhas ou renomeie o arquivo e reinicie os serviços de rede

systemctl restart network

espero que ajude

informação relacionada