ubuntu1804的mac地址冲突

今天遇到VMware上克隆的虚拟机导致mac地址冲突的问题

root@ubuntu-node:~# arp 
Address                  HWtype  HWaddress           Flags Mask            Iface
_gateway                 ether   00:50:56:fe:3d:26   C                     br0
10.0.0.20                ether   22:72:15:67:ec:73   C                     br0
10.0.0.32                ether   22:72:15:67:ec:73   C                     br0
10.0.0.31                ether   22:72:15:67:ec:73   C                     br0
10.0.0.1                 ether   00:50:56:c0:00:08   C                     br0
root@ubuntu-node:~# 

想着去清理一下/etc/udev/rules.d/下的文件,结果发现根本就没有相关文件
最后在ubuntu的官网找到方法,清理一下/etc/machine-id,重启服务器就OK了

root@ubuntu-node:/usr/local/src/harbor# cat /etc/machine-id
92a28fbff61148aebd06f2b0a3423cad
root@ubuntu-node:/usr/local/src/harbor# > /etc/machine-id
root@ubuntu-node:/usr/local/src/harbor# reboot
root@ubuntu-node:~# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
_gateway                 ether   00:50:56:fe:3d:26   C                     br0
10.0.0.1                 ether   00:50:56:c0:00:08   C                     br0
172.20.0.10              ether   02:42:ac:14:00:0a   C                     br-787bf169b8d4
10.0.0.31                ether   92:de:4c:4d:65:e6   C                     br0
10.0.0.30                ether   ba:aa:0b:4e:7f:eb   C                     br0
root@ubuntu-node:~# 

你可能感兴趣的:(ubuntu1804的mac地址冲突)