OCI - How to Change UUID of NetworkManager Connection Profile
in Linux
Applies To:
Oracle Cloud Infrastructure
Oracle Linux
Goal
There is a need to change the UUID of a NetworkManager connection profile.
SOLUTION
It is possible to generate a new UUID by utilizing libuuid
(This is the universally unique ID library)
Example:
# uuidgen
ef2e2961-7adf-4bfa-b8fb-4b39339c1cde
Once a new UUID is generated, replace the old one by modifying the UUID field inside the file for the connection by editing it:
/etc/sysconfig/network-scripts/ifcfg-<connection_name>
Example:
# vim /etc/sysconfig/network-scripts/ifcfg-enp0s5
…
Generated by dracut initrdNAME="enp0s5"
DEVICE="enp0s5"
ONBOOT=yes
NETBOOT=yes
Tagged:
0