Bare metal installation issue when changing network interface name to eth0

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Uldis (UD)
Posts: 5180
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Bare metal installation issue when changing network interface name to eth0

Post by Uldis (UD) » Wed Feb 02, 2022 8:38 am

There is interfaces order issue, your eth0 interface is eno49


ip addr
to check IP and MAC

write new file

/etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0"

replace xx:xx... by mac

which have IP


lspci
dmesg | grep eth

flytripper
Posts: 2
Joined: Sat Mar 19, 2022 4:37 am

Re: Bare metal installation issue when changing network interface name to eth0

Post by flytripper » Sat Mar 19, 2022 5:43 am

Uldis (UD) wrote:
Wed Feb 02, 2022 8:38 am
There is interfaces order issue, your eth0 interface is eno49


ip addr
to check IP and MAC

write new file

/etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0"

replace xx:xx... by mac

which have IP


lspci
dmesg | grep eth

I am having same issue as OP. Tried this and did not work. Any other ideas? Is it really important that we change the primary network connection to "eth0"??

For example, following the "community cookbook", network is DHCP and works great until step 42. Up to this point, my "primary net int" is "enp0s25". I change it to "eth0" per step 42. After the reboot at end of step 42 - network no longer works.

@Uldis (UD) - are you saying that by creating this new file (70-xxxx.rules) that it will overwrite the /etc/network/interfaces info and I should leave the value set to en0s25 in the "interfaces" file? any help would be appreciated.

flytripper
Posts: 2
Joined: Sat Mar 19, 2022 4:37 am

Re: Bare metal installation issue when changing network interface name to eth0

Post by flytripper » Sat Mar 19, 2022 6:19 am

@ Evaldas

OK, I played around with this and got it working on my server. My server has 2 NICs. For whatever reason, on initial install it used one of the NICs on my box but after step 42 - eth0 was now assigned to my "other" NIC. I moved the network cable to the second NIC and all started working.

btw, that "other" NIC also pulled a new IP (DHCP) - different than the IP that had been assigned to the first NIC. So you may want to "ip add" to see what your new IP is if DHCP.

To summarize - I started with a fresh install (doing none of the things mentioned in this thread) and simply moved my cable to the other NIC after step 42 reboot.

GOOD GRIEF !!!! :)

Post Reply