Adding Alternative Names to USB Ethernet interface

xmftech

New Member
Jan 11, 2025
18
0
1
Hello,

I recently added a USB 3.0 interface to the MinPC on which I have Proxmox and I have been doing a little research on the name assigned to the interface which I have seen that by default is enx + MAC address

After researching I have come to find the file /usr/lib/systemd/network/73-usb-net-by-mac.link which initially contained:

Code:
[Match]
Path=*-usb-*
Property=ID_NET_NAME_MAC=*

[Link]
NamePolicy=mac

And I have modified it to

Code:
[Match]
Path=*-usb-*
Property=ID_NET_NAME_PATH=*

[Link]
NamePolicy=path

With this I have achieved a name more similar to the other existing network interfaces.

But I have not managed to generate an altname in any of the ways I have found, nor with AI suggestions (reviewed since not all the information it provided was correct).

Is there any way to make Proxmox VE 9 detect USB Ethernet interfaces and generate an altname?