1、生成一个UUID
1 [root@localhost ~]# uuidgen ens33
2 f79b7d01-2989-4156-82b6-5870959e1e11
2、UUID号写入网络配置文件ifcfg-ens33
1 NAME=ens33
2 DEVICE=ens33
3 ONBOOT=yes
4 UUID=f79b7d01-2989-4156-82b6-5870959e1e11
3、重启网络,验证新获得的UUID号
1 [root@localhost ~]# service network restart
2 Restarting network (via systemctl): [ OK ]
3 systemctl start NetworkManager
4 [root@localhost ~]# nmcli con | sed -n '1,2p'