Can a device name be changed by udev?

Can a device name be changed by udev?

The name of a device node cannot be changed by udev, only additional symlinks can be created. So never use eth*, wlan* etc. names for udev rules. Thanks for contributing an answer to Unix & Linux Stack Exchange! Please be sure to answer the question.

Why did udev name my Network Interface gb0 eth1?

For some obscure reason, udev chose to name Gb0 eth1 and Gb1 eth0 . This is definitly not a good find for me and just gives confusion. So I modified the configuration in /etc/udev/rules.d/70-persistent-net.rules:

Why do I need to remove the MAC address from udev?

So, removing it allows the correct name to be assigned to the correct device regardless of what UDEV has called it in the meantime. We need consistency between ifcfg file and net.rules for the mac address.

Why do I need to remove ifcfg file in udev?

So, removing it allows the correct name to be assigned to the correct device regardless of what UDEV has called it in the meantime. We need consistency between ifcfg file and net.rules for the mac address. I was able to resolve this by simply deleting /etc/udev/rules.d/70-persistent-net.rules and rebooting.

Can you configure a network interface using udev?

You can do pretty much everything you’d want with a network interface using udev, but it’s jarring if you are used to the legacy configuration methods and it seems rather odd to be configuring IP addressing in a hardware device configuration file, thus systemd- networkd was born.

Can a MAC address be changed in udev?

Of course, with embedded interfaces on physical servers it’s not a problem because the MAC will never change. The match is used by udev to identify an interface to be configured, just to reiterate, it’s specified in this file: It’s taken me an age to find an alternative but the PCI bus identifier seems rather more reliable than a MAC address.