Motherboard replacement and MAC address

Erk

Renowned Member
Dec 11, 2009
166
6
83
When I replace a motherboard in a Proxmox server with an identical model, it wont come back online after power up. Seems that Proxmox detects the changed ethernet MAC address and maps them to unconfigured ethX device. eg. if I have eth0 and eth1 working properly, then change the motherboard, the onboard ethernet devices become remaped to eth2 and eth3 which are not configured.

How can I fix this at the console command line?
 
Hi,
edit /etc/udev/rules.d/70-persistent-net.rules and remove the old eth0-entry and change the ethX to eth0.

Change /etc/network/interfaces too (if you use ethX there), reboot and all should work.

Udo