moved metal to VM - how do I reset NIC entirely

AndyInNYC

New Member
May 26, 2024
6
0
1
I have a PBX (phone system) that has been running on an old Dell computer. the interface was enp0s25 or something like that rather than eth0.
As a PBX, the machine is running as few things as possible; it is a Centos 7 based install and doesn't have a GUI.
I've used Clonezilla to bring the machine across into a VM.

I've tried deleting /etc/udev/rules.d/70* and files in /var/lib/dhclient.

I can get the 'new' NIC up with sudo dhclient -v, but that's post boot.

What's the best way to tell the VM to 'forget' the NIC settings it had and use the new eth0 as default?


Andrew
 
Thanks for your reply.

I found the file which had the old reference and changed the reference from enp0s25 to eth0. This seems to have worked.

But now I have an ifcfg-enp0s25 with eth0 references.

Is there a cleaner way to fix this? (It does seem to be working, so 'yay'!)

Andrew