ron7000 wrote: ↑2022/09/13 15:32:36
* The
/etc/sysconfig/network-scripts/ifcfg-em1 to
em4 files are not present after boot; I did not delete them I assume they are created every time on boot? Can any insight be given on this?
As said, if there is no connection for device, then NM creates one on every boot. If you modify such connection, then it is stored as file.
Up to EL8 NM did store most connections as
/etc/sysconfig/network-scripts/ifcfg-* in format compatible with the legacy initscripts (ifup, ifdown). In EL9 format and location is different.
However, connections defined by installer (for original NICs) should still be there as files.
ron7000 wrote: ↑2022/09/13 15:32:36
* doing an
ifconfig shows em1 to em4 with MAC addresses, but how do I know if those are correct and not of the old NIC?
* doing a
nmcli d show displays the same MAC from what was shown via ifconfig for
GENERAL.HWADDR for em1..em4
The
ifconfig is old tool. The
ip was introduced two decades ago as better alternative. All three (ifconfig, ip, nmcli) do show MACs of devices that do exist. They don't show what is not there.
ron7000 wrote: ↑2022/09/13 15:32:36
* doing a
nmcli s shows nothing, em1..em4 does not display.
* doing a
nmcli s em1 or any of them results in
no such connection profile
Devil is in detail. Some abbreviation is allowed in the parameters:
Code: Select all
nmcli c s
nmcli con show
nmcli connection show
Those mean the same. Plain
nmcli s does not.
If the four NICs do get config from DHCP, then it is up to the DHCP servers (on the other end of cables) to dictate what config they give. If you want predictable IP address, then config the DHCP server to hand up specific address for a MAC.
ron7000 wrote: ↑2022/09/13 18:09:11
With the
predictable network interface name crap that did away with
eth syntax convention, what and how does
DEVICE= get populated with the syntax
ens11f0 in the above file?
Frankly, the names are more crap than MAC addresses, and the "old names" are even more so; totally unpredictable.
Do not look at the
ifcfg-* files. When NM creates connection, it assigns random UUID to it (in hopes that the UUID is unique within the machine) and shows the UUID too (if you need for further connections, like bridge-ports).
Read
man nmcli-examples
nmcli con add type Ethernet ifname em1
creates connection (and a file too) and writes "DEVICE=em1" into it. For NM that means:
connection.interface-name em1
When NetworkManager.service starts on boot it will find the file and use config it in for whichever device happens to have name "em1".
(I prefer to clear the connection.interface-name and set the 802-3-ethernet.mac-address to bind by MAC, not by name.)
What names the devices? Something earlier in the boot. I live happily without knowing those gory details.
Although, Red Hat explains them in
https://access.redhat.com/documentation ... ice_naming
Plug cable into only one NIC port. Run
ip li (short for
ip link show). You should see which port has "link up", unlike all the others. Now you know one {name, MAC, physical port} triplet.
With lspci it is good to use '-nn', as in
lspci -nn
That shows the usual stuff and Device ID. That ID is quite unabiguous to the exact model of device; drivers list IDs that they support.