在RHEL7中永久禁用NIC接口吗?


Answers:


1

尝试

sudo ip link set <NIC_NAME> down

这将关闭NIC,然后将其从ifconfig列表中删除。

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

并注释掉那里的所有行或重命名该文件,然后重新启动网络服务

systemctl restart network

希望能帮助到你

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.