虚拟机克隆系统以后不能上网

因为克隆以后每个系统使用的Mac地址是一样的,导致都不能上网
 
一、解决落网不通的问题:
 1 重新生成Mac地址

 

 

2、在网络配置中添加生成的MAC地址,并修改UUID参数使其唯一
vim /etc/sysconfig/network-scripts/ifcfg-ens35
HWADDR=00:50:56:28:C5:02
 
3、重启网卡
  systemctl restart network
4、如果重启失败,则关闭网络管理
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details
5、停止网络管理器,然后重新启动网网卡
    systemctl stop NetworkManager
    systemctl restart network
禁止开机启动 chkconfig NetworkManager off
 
 
二、固定IP设置:
 
网卡参数:
 
BOOTPROTO=static
NM_CONTROLLED=yes
IPADDR=192.168.112.131
NETMASK=255.255.255.0
GATEWAY=192.168.112.2
DNS1=114.114.114.119
DNS2=114.114.115.119
 
 
 
 

 

 

posted @ 2020-12-17 17:55  码来  阅读(1187)  评论(0编辑  收藏  举报