1、生成一个UUID

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

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

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

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

1 [root@localhost ~]# service network restart
2 Restarting network (via systemctl):  [  OK ]
3 [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

相关文章:

  • 2021-08-12
  • 2021-07-27
  • 2021-06-21
  • 2021-11-30
  • 2021-12-19
猜你喜欢
  • 2021-07-25
  • 2021-10-02
  • 2021-09-20
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案