Document Type | Technical Information
Category | Administration
Applicable Product Versions | 6FS07, 7FS02PS
Document Number | TADTI054
Overview
The Linux network interface manages configuration with files in the ifcfg-[interface name] format (e.g., ip, netmask, gateway, etc.).
Starting from Linux version 9, the management of connection configuration has been changed to use key file format instead of ifcfg.
Accordingly, this document guides how to convert existing profiles in ifcfg format to key file format.
Method
Connections that read ifcfg files can be converted to key file format using the migrate command.
file migrate
#. Existing ifcfg files are read and connections are created [root]# nmcli -f NAME,UUID,TYPE,AUTOCONNECT,DEVICE,STATE,FILENAME connection NAME UUID TYPE AUTOCONNECT DEVICE STATE FILENAME ens160 [interface uuid] ethernet yes ens160 activated /etc/sysconfig/network-scripts/ifcfg-ens160 ens192 [interface uuid] ethernet yes ens192 activated /etc/sysconfig/network-scripts/ifcfg-ens192 #. file migrate [root]# nmcli connection migrate Connection 'ens160' ([interface uuid]) successfully migrated. Connection 'ens192' ([interface uuid]) successfully migrated. #. Verify key file creation [root]# ls /etc/NetworkManager/system-connections/ ens160.nmconnection ens192.nmconnection [root@tac1 ~]# ls /etc/sysconfig/network-scripts/ -> No files found
Check profile
[root]# nmcli -f NAME,UUID,TYPE,AUTOCONNECT,DEVICE,STATE,FILENAME connection NAME UUID TYPE AUTOCONNECT DEVICE STATE FILENAME ens160 ([interface uuid]) ethernet yes ens160 activated /etc/NetworkManager/system-connections/ens160.nmconnection ens192 ([interface uuid]) ethernet yes ens192 activated /etc/NetworkManager/system-connections/ens192.nmconnection
NoteIt is necessary to verify the DB version that supports Linux versions 8/9.