查看网卡 UUID值

[root@localhost network-scripts]# nmcli connection show
NAME UUID TYPE DEVICE
ens33 cf228d3f-268a-4551-a90b-f1613aea929d ethernet ens33

查看网卡 MAC,发现原系统和克隆后的系统MAC值不一样

[root@localhost network-scripts]# nmcli device show ens33
GENERAL.DEVICE: ens33
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 00:0C:29:1F:AA:2D
GENERAL.MTU: 1500
GENERAL.STATE: 100 (连接的)
GENERAL.CONNECTION: ens33
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
WIRED-PROPERTIES.CARRIER: 开
IP4.ADDRESS[1]: 192.168.112.129/24
IP4.GATEWAY: 192.168.112.2
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.112.2, mt = 100
IP4.ROUTE[2]: dst = 192.168.112.0/24, nh = 0.0.0.0, mt = 100
IP4.DNS[1]: 192.168.112.2
IP4.DOMAIN[1]: localdomain
IP6.ADDRESS[1]: fe80::20c:29ff:fe1f:aa2d/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256

系统随机生成uuid号

[root@localhost network-scripts]# uuidgen
cf228d3f-268a-4441-a90b-f1623aea929d

更新uuid:

[root@localhost ~]# cd /etc/sysconfig/network-scripts/

[root@localhost network-scripts]# vim ifcfg-ens33

#将文件中的UUID替换成随机生成的UUID号

重启网络服务:

[root@localhost network-scripts]# systemctl restart network

05-24 08:21