What Do I Do If the IP Address of the Virtual Network Port on CentOS Is Lost?
This section applies only to NPU 1.X.X series versions.
You can check the NPU version from the driver package name. For example, if the driver package name is A300-3000-NPU_Driver-20.0.0-ARM64-Ubuntu18.04.run, the NPU version is 20.0.0.
Symptom
The IP address of the virtual network port is lost due to the known conflicts between the advanced service NetworkManager and the basic service network in CentOS.
Solution
- Disable the advanced service NetworkManager if it is not required.
As the OS prompt, run the systemctl disable NetworkManager command.
- When the advanced service NetworkManager is required, run the nmcli command to configure the network port, generate the ifcfg file, reboot the system, and then run the ifconfig command to configure the network port.
The dedicated nmcli commands are as follows:
nmcli connection add autoconnect no type ethernet con-name nic_name ifname nic_nameip_address;
nmcli con up nic_name