But fact is the interface name before is “enp101s0f0”, now become “ens6f0” with an altname “enp101s0f0”.
And maybe my driver/userspace program is just a little stupied that they did not recognize the alname “enp101s0f0”, making my hard coded scripts not able to work anymore.
So my question is is here any document describing how or why interface’s name changed from “enp101s0f0” to “ens6f0”. Or how can I change the naming rules to make it stay the same way as CentOS 7.9?
Yes, changing the name is a good choice: udev rules or systemd link files can both achieve that.
But I’m still curious about is here any option, like a switch. Just by turning it on or off, an old style naming rule will just be applied: It is finished automatically. Thus I don’t have to write any rules, making live easier.
For example, If it is because device become an hot-pluggable device in rockylinux 9 so that device gets a new name. Maybe turn off hotplug support can be an cheaper option compared with writting namening rules. Maybe from kernel option, maybe from a pcie config file, or maybe editing BIOS setting.
Really good! Thank you for your patient response! The second method is really the thing I want:
Don’t need to get every MAC from every mis-named machine.
I will try it soon!