Score:0

Network interface naming

tc flag

Hello I would like to know how the kernel is naming the network interfaces. I have a automated installation for Rhel with predefined network interface names for the dedicated hardware. I would like to know if I change one NIC card if this names are going to change.

I found this: The kernel detects device hardware locations in terms of PCI bus number, slot number, and device number. That will not change unless you unplug it and move it to a different expansion slot. The new names are based on these physical parameters, and so they do not change from one boot session to the next.

but I am not sure what they mean with device number. Is this NIC's Mac address stored in the ROM? If yes than it will probably change the names of the network interfaces

djdomi avatar
za flag
i belive, you can identify always the same device with /sys/class/net which should link to /sys/devices/virtual/net it is possible to force the old naming (eth) instead the bus (en) ones - but your question is to generic to be more specific
vidarlo avatar
ar flag
Have you read [the manual](https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html)?
Score:2
ro flag

PCI devices are enumerated by bus, device number and function (BDF). The device number is controlled by the IDSEL signal.

For PCI cards the IDSEL is determined by the slot they are plugged in.

Therefore slot number and device number are synonymous for Predictable Interface Naming.

See https://en.wikipedia.org/wiki/PCI_configuration_space#Bus_enumeration

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.