Generate UUID for Network Interface for CentOS

UUIDs (Universal Unique Identifier) for network interface card can be generated quite easily using the command “uuidgen”. For example

% uuidgen eth0
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

You can go to /etc/sysconfig/network-sscripts/ifcfg-eth0

.....
.....
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
.....
.....