Re: questions about changing NIC name

On Tue, Jun 23, 2020 at 11:07:52PM -0400, Dusty Mabe wrote:

While researching a bug reported against RHEL CoreOS I've decided to look a bit deeper into
how a user would go about changing the name of a NIC on a machine to something custom. In
this investigation I have some questions:

-  It seems as if nm-initrd-generator doesn't have support for the ifname= karg. Is that

Yes, it's intentional; interface renaming is done by the 40-network

- If I specify the nic name and MAC as part of the ip= line the mac specified gets set to
  'cloned-mac-address' rather than 'mac-address'. Is that right?
    - i.e, ip=

It's right. The 9th field of an ip= option is the new MAC address to
assign to the interface, and so cloned-mac-address is the right
property to set. The old network module also uses that field to
specify the new MAC.

- Is there a udev helper that parses NM keyfiles and sets up udev rules like /lib/udev/rename_device
  does for reading legacy network scripts in /etc/sysconfig/network-scripts/ ?

I am not aware of such helper for NM keyfiles.


Attachment: signature.asc
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]