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

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

Bare metal installation issue when changing network interface name to eth0

Post by Evaldas » Fri Jan 28, 2022 1:11 pm

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
Last edited by Evaldas on Tue Feb 01, 2022 2:56 pm, edited 2 times in total.

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

Re: Bare metal installation issue when changing network interface name

Post by Evaldas » Fri Jan 28, 2022 3:11 pm

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
You do not have the required permissions to view the files attached to this post.
Last edited by Evaldas on Fri Jan 28, 2022 3:23 pm, edited 1 time in total.

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

Re: Bare metal installation issue when changing network interface name

Post by Evaldas » Fri Jan 28, 2022 3:13 pm

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
You do not have the required permissions to view the files attached to this post.

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) » Fri Jan 28, 2022 6:43 pm

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

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

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

Post by Evaldas » Mon Jan 31, 2022 9:28 am

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?

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) » Mon Jan 31, 2022 9:30 am

after rename need do grub update, as per eve cookbook

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

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

Post by Evaldas » Mon Jan 31, 2022 9:50 am

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

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

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

Post by Evaldas » Mon Jan 31, 2022 10:06 am

This is the status after change and restart:
You do not have the required permissions to view the files attached to this post.

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

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

Post by Evaldas » Mon Jan 31, 2022 11:54 am

Managed to get it to this stage but still no network connection...
You do not have the required permissions to view the files attached to this post.

Evaldas
Posts: 8
Joined: Fri Jan 28, 2022 1:02 pm

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

Post by Evaldas » Mon Jan 31, 2022 3:05 pm

Just tried the same on Ubuntu 21 instead of 18 - same issue

Post Reply