Linux Centos7 网络设置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'

你可能感兴趣的:(Linux)