Rename ethernet interface

Hi Everyone

I would like to rename the ethernet interface into Eth0 instead of enxMACADRESS. We project to use RPI3 and Ubuntu mate as a base for embedded devices of about 100unities. In order to not rewrite all of the script files that need to access ethernet I would like call the interface with a unique name for all devices.

I’ve seen that /etc/udev/rules.d/70-persistent-net.rules can be modified to achieve this. However the Mac address needs to be defined explicitly this the file can not be the same for each devices.

Any idea to solve that?

Regards

Have you tried to add “net.ifnames=0 biosdevname=0” to the end of /boot/cmdline.txt ?

1 Like

Nop I’ll try it right now!!!

unfortunately this does not work ifconfig doest not show the network interface anymore

Sorry this works like a charm I forgot to change the name of the interface in /etc/network/interfaces accordingly