码迷,mamicode.com
首页 > 系统相关 > 详细

Linux Centos7 网络设置UUID号的修改方法

时间:2019-12-06 11:41:33      阅读:804      评论:0      收藏:0      [点我收藏+]

标签:inux   target   idc   方法   www   res   ifcfg   href   centos7   

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

Linux Centos7 网络设置UUID号的修改方法

标签:inux   target   idc   方法   www   res   ifcfg   href   centos7   

原文地址:https://www.cnblogs.com/116970u/p/11993932.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!