Problem with renaming ens3 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

Post Reply
netgus
Posts: 6
Joined: Tue Mar 21, 2017 6:08 pm

Problem with renaming ens3 to eth0

Post by netgus » Thu Nov 08, 2018 5:35 pm

Hello,

I need to create several Linux with different configurations. To do this, I followed the procedure described in EVE-COOK-BOOOK and on the website.

Everything works except that the last procedure of renaming the network card doesn't work. I followed the procedure in order.

Now I have a linux that displays: ip addr ens:.........
Whereas if I edit the file with nano, the network card is renamed as in the documentation. The only difference is that I used DHCP.

Someone would have a little idea how to solve this.

I work on EVE-NG PRO.

Thank you in advance.

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

Re: Problem with renaming ens3 to eth0

Post by Uldis (UD) » Thu Nov 08, 2018 8:20 pm


netgus
Posts: 6
Joined: Tue Mar 21, 2017 6:08 pm

Re: Problem with renaming ens3 to eth0

Post by netgus » Thu Nov 08, 2018 8:23 pm

I found the problem.

Into yours documentation, It's specified :
sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 noquiet"/' /etc/default/grub
and on the web site:
sed -i 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="console=ttyS0,115200 console=tty0"/' /etc/default/grub
update-grub

I mix both and that works.

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

Re: Problem with renaming ens3 to eth0

Post by Uldis (UD) » Fri Nov 09, 2018 4:15 pm

Try to do p2.9 before 2.8

before to run this GRUB update you must rename manyally ens nic to eth !!!!!!!!!!!!

p 2.9 in this how to

http://www.eve-ng.net/documentation/ins ... re-install

is marked as very important !!!

Post Reply