PVE 9.0 Beta and proxmox-network-interface-pinning

Mar 14, 2024
2
0
1
Texas
I'm testing PVE 9.0 Beta and would like to know if there's a quick way to select the new link name that the interface is mapped to or rename/update an existing link name? Currently, when I run a command like:

Bash:
proxmox-network-interface-pinning generate --interface ens18

The interface will automatically be named nic0, etc, if it's the first interface.

Here's the example of renaming all interfaces, but what if I want to update the "link" name in the future etc?

Bash:
root@vl3-pve1:~# proxmox-network-interface-pinning generate
This will generate name pinning configuration for all interfaces - continue (y/N)?
y
Name for link 'enp0s18' will change to 'nic0'
Name for link 'enp0s19' will change to 'nic1'
Name for link 'enp0s20' will change to 'nic2'
Name for link 'enp0s21' will change to 'nic3'
Name for link 'enp0s22' will change to 'nic4'
Name for link 'ens18' will change to 'nic0'
Name for link 'ens19' will change to 'nic1'
Name for link 'ens20' will change to 'nic2'
Name for link 'ens21' will change to 'nic3'
Name for link 'ens22' will change to 'nic4'
Name for link 'enxbc2411c1a1a1' will change to 'nic0'
Name for link 'enxbc2411c1a1a2' will change to 'nic1'
Name for link 'enxbc2411c1a1a3' will change to 'nic2'
Name for link 'enxbc2411c1a1a4' will change to 'nic3'
Name for link 'enxbc2411c1a1a5' will change to 'nic4'
Generating link files
Successfully generated .link files in '/usr/local/lib/systemd/network/'
Updating /etc/pve/nodes/vl3-pve1/host.fw.new
Updating /etc/network/interfaces.new
Updating /etc/pve/sdn/controllers.cfg
Updating /etc/pve/sdn/fabrics.cfg
Successfully updated Proxmox VE configuration files.

Please reboot to apply the changes to your configuration
 
I'm testing PVE 9.0 Beta and would like to know if there's a quick way to select the new link name that the interface is mapped to or rename/update an existing link name? Currently, when I run a command like:

It currently only implements pinning, but we're working hard on adding the additional features like renaming / unpinning.
 
  • Like
Reactions: SteveITS
You can see in the output the files it edits:

Updating /etc/pve/nodes/vl3-pve1/host.fw.new
Updating /etc/network/interfaces.new
Updating /etc/pve/sdn/controllers.cfg
Updating /etc/pve/sdn/fabrics.cfg

So, to manually revert you can check if any of those files reference the newly generated NIC (e.g, by grep) and replace them manually, then delete the respective generated link file in /usr/local/lib/systemd/network