How to check the UUID of the network card in Linux

1. First, let's check which package provides nmcli.

2. It can be seen from the above results that nmcli, then we install the NetworkManager package

3. Start the NetworkManager service

4. View the UUID of the network card

5. Check whether it is the same as the UUID value in /etc/sysconfig/network-scripts/ifcfg-eth0 (Note: The check is only valid when the ifcfg-eth0 file can view the UUID normally)

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326615683&siteId=291194637