Page 1 of 2

Bare metal installation issue when changing network interface name to eth0

Posted: Fri Jan 28, 2022 1:11 pm
by Evaldas
Hi Guys,

I'm following the EVEN NG Professional cook book for bare metal installation and having some issues with this step:

Code: Select all

Step 25: IMPORTANT: Edit network interface name
nano /etc/netplan/00-installer-config.yaml
change interface name “ensXXX” to “eth0”
To save edited 00-installer-config.yaml use keys
combo:
[Ctrl]+[o] Letter o (oscar)
Enter
[Ctrl]+[x] Letter x (x-ray) for exit

Step 26: Update interface names with single line command:
sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0
noquiet"/' /etc/default/grub

Step 27: Update GRUB
update-grub
I do as instructed and change the interface name from ens1f0 to eth0 (also tried changing to eth1f0) but then lose network connectivity after reboot.

Code: Select all

# This is the network config written by 'subiquity'
network:
  ethernets:
    eno1:
      dhcp4: true
    eno2:
      dhcp4: true
    eno3:
      dhcp4: true
    eno4:
      dhcp4: true
    eno49:
      dhcp4: true
    eno50:
      dhcp4: true
    eth1f0:
      addresses:
      - 10.0.0.25/24
      gateway4: 10.0.0.1
      nameservers:
        addresses:
        - 8.8.8.8
        - 4.4.4.4
        search: []
    ens1f1:
      dhcp4: true
  version: 2

Re: Bare metal installation issue when changing network interface name

Posted: Fri Jan 28, 2022 3:11 pm
by Evaldas

Code: Select all

Attaching output of 'ip a' after issuing the bellow commands are reboot:

sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0
noquiet"/' /etc/default/grub

update-grub

reboot

Re: Bare metal installation issue when changing network interface name

Posted: Fri Jan 28, 2022 3:13 pm
by Evaldas
This is the edited file from step 25:

Code: Select all

Step 25: IMPORTANT: Edit network interface name
nano /etc/netplan/00-installer-config.yaml
change interface name “ensXXX” to “eth0”
To save edited 00-installer-config.yaml use keys
combo:
[Ctrl]+[o] Letter o (oscar)
Enter
[Ctrl]+[x] Letter x (x-ray) for exit

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

Posted: Fri Jan 28, 2022 6:43 pm
by Uldis (UD)
You have to rename that eno1 as eth0
and put ip under it, or even dhcp would work
not adding eth0 below, your eno interfaces becomes as eth after renaming and grub update

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

Posted: Mon Jan 31, 2022 9:28 am
by Evaldas
You have to rename that eno1 as eth0 - DONE THIS
and put ip under it, or even dhcp would work - DONE THIS

Lost network connectivity after restart.

Any other ideas please?

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

Posted: Mon Jan 31, 2022 9:30 am
by Uldis (UD)
after rename need do grub update, as per eve cookbook

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

Posted: Mon Jan 31, 2022 9:50 am
by Evaldas
Yes, I surely did that:

This: sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 noquiet"/' /etc/default/grub

Then: update-grub

Then: reboot

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

Posted: Mon Jan 31, 2022 10:06 am
by Evaldas
This is the status after change and restart:

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

Posted: Mon Jan 31, 2022 11:54 am
by Evaldas
Managed to get it to this stage but still no network connection...

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

Posted: Mon Jan 31, 2022 3:05 pm
by Evaldas
Just tried the same on Ubuntu 21 instead of 18 - same issue