Failed to restart the network card of the virtual machine

Problem background:
Due to work requirements, it is necessary to add a network card to the virtual machine originally created in PVE. After adding the network card and entering the virtual machine to configure the IP, restarting the network card will cause an error. The error message is as follows:
insert image description here

Cause of the problem:
Because the UUID of the network card was forgotten to be changed when the IP of the new network card was added in the configuration, which caused an error to be reported after restarting the network card.

Solution:
modify the configuration file:
vi /etc/sysconfig/network-scripts/ifup-eth
comment the 5 lines in the red box
insert image description here

Then restart the network card:
systemctl restart network

Guess you like

Origin blog.csdn.net/weixin_48773672/article/details/123324948