[SOLVED] Can I keep the current name when pinning network interfaces?

Taomyn

Active Member
Aug 30, 2023
119
27
33
Luxembourg
I have a host that when I update the BIOS causes the on-board NIC to get assigned a new name - it seems to flip between two names (enp5s0 & enp6s0) but nevertheless it's annoying when it's the management port.

I know I can pin names to the NICs to prevent this, but I was wondering if I can simply keep the same name - I don't mind what the system is calling them, I just don't want them to keep changing e.g. pve-network-interface-pinning generate --interface enp5s0 --target-name enp5s0