Remove the kernel’s networking interface rules file so that it can be regenerated
# rm -f /etc/udev/rules.d/70-persistent-net.rules
Restart the VM
# reboot
UPDATE your interface configuration file
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules).
Remove the UUID entry
Save and exit the file
Restart the networking service
# service network restart
Modify hostname
# vi /etc/sysconfig/network
# vi /etc/hosts
change the value of "localhost.localdomain"
# rm -f /etc/udev/rules.d/70-persistent-net.rules
Restart the VM
# reboot
UPDATE your interface configuration file
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules).
Remove the UUID entry
Save and exit the file
Restart the networking service
# service network restart
Modify hostname
# vi /etc/sysconfig/network
# vi /etc/hosts
change the value of "localhost.localdomain"
本文提供了一步一步的指南,详细介绍了如何移除Linux内核的网络接口规则文件,重启虚拟机,更新接口配置文件,修改主机名和hosts文件,以解决特定的网络配置问题。
2011

被折叠的 条评论
为什么被折叠?



