虚拟机配置网络

现状 ping 主机IP DNS 主机网关都通,不能ping其他虚拟机

# 修改网络配置文件
vim /etc/sysconfig/network-scripts/ifcfg-eth0
1   DEVICE=eth0
2   BOOTPROTO=dhcp
3   ONBOOT=yes
4   HWADDR=00:0C:29:7A:B0:F0
# 然后非root用户运行
sudo ifdown eth0
sudo ifup eth0
原文地址:https://www.cnblogs.com/gcixx/p/11145522.html