Converting Connection Profile Formats From ifcfg to keyfile

Use nmcli to convert the NetworkManager legacy ifcfg profile formats to the preferred NetworkManager keyfile format.

For more information about the keyfile profile format, see the nm-settings-keyfile(5) manual page.

  1. Ensure that the following prerequisites are met:
    • Existing connection profiles in ifcfg format are stored in the /etc/sysconfig/network-scripts/ directory.
    • If the connection profiles contain a DEVICE variable that is set to a custom device name, such as provider or lan, you created a systemd link file or a udev rule for each of the custom device names.
  2. Run the following command:
    nmcli connection migrate
  3. Verify that all the legacy ifcfg connection profiles migrated successfully:
    nmcli -f TYPE,FILENAME,NAME connection