设置Centos7 网卡UUID

查看网卡UUID

nmcli con | sed -n '1,2p'

-------------------------------

NAME  UUID                                  TYPE            DEVICE
eth0  5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03  802-3-ethernet  eth0

检验是否与/etc/sysconfig/network-scripts/ifcfg-eth0里面的UUID值相同

cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep UUID

------------------------------------

UUID="5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03"

你可能感兴趣的:(高手,Linux)