1、背景:
虚拟机好处是,不需要重装系统,直接拷贝就能使用,但是可能会有坑
2、现象1,不能获取ip,不能ping外网,重启网卡报如下错误
ping 192.168.23.1
PING 192.168.23.1 (192.168.23.1) 56(84) bytes of data.
From 192.168.23.213: icmp_seq=1 Redirect Network(New nexthop: 192.168.23.1)
64 bytes from 192.168.23.1: icmp_seq=1 ttl=255 time=1.57 ms
From 192.168.23.213: icmp_seq=2 Redirect Network(New nexthop: 192.168.23.1)
64 bytes from 192.168.23.1: icmp_seq=2 ttl=255 time=1.60 ms
From 192.168.23.213: icmp_seq=3 Redirect Network(New nexthop: 192.168.23.1)
64 bytes from 192.168.23.1: icmp_seq=3 ttl=255 time=2.02 ms
From 192.168.23.213: icmp_seq=4 Redirect Network(New nexthop: 192.168.23.1)
64 bytes from 192.168.23.1: icmp_seq=4 ttl=255 time=1.61 ms
3、现象2,查看启动网络服务日志:
4、原因,因为虚拟机是拷贝的,MAC地址一样,导致冲突起不来
5、修改方式,在vmware点击编辑虚拟机设置按钮,网络适配器,高级
点击生成,重现生成网卡mac地址