jackalwb 2019-12-06
1、生成一个UUID
1 [ ~]# uuidgen ens33 2 223bdb47-2fed-4773-b984-5f5733e61904
2、UUID号写入网络配置文件ifcfg-ens33
NAME=ens33 DEVICE=ens33 ONBOOT=yes UUID=223bdb47-2fed-4773-b984-5f5733e61904
3、重启网络,验证新获得的UUID号
1 [ ~]# service network restart 2 Restarting network (via systemctl): [ OK ] 3 [ ~]# nmcli con | sed -n ‘1,2p‘
参考:https://blog.csdn.net/qq_30242987/article/details/98054168