1、生成一个UUID

 [root@localhost ~]# uuidgen ens33
223bdb47-2fed-4773-b984-5f5733e61904

2、UUID号写入网络配置文件ifcfg-ens33

 NAME=ens33
DEVICE=ens33
ONBOOT=yes
UUID=223bdb47-2fed-4773-b984-5f5733e61904

3、重启网络,验证新获得的UUID号

 [root@localhost ~]# service network restart
Restarting network (via systemctl): [ OK ]
[root@localhost ~]# nmcli con | sed -n '1,2p'

参考:https://blog.csdn.net/qq_30242987/article/details/98054168

https://www.linuxidc.com/Linux/2017-11/148382.htm

05-21 20:12