So I've read a lot of guides on how to shorten a network interface name but no luck, nothing works.
This is the result of my
I've created a file called 10-lan01.link in /etc/systemd/network/ and tried putting these lines in the file
None of them seem to anything to the name of the interface in Proxmox GUI. See screenshot:

This is further confirmed by trying to start any VM with a VLAN tag and getting a name too long error:
What am I doing wrong? How can I get the interface name shorter to be able to tag at least the first two digit VLANs if nothing else? I'm lost here.
Edit: To add - After every save of the file, I have ran the
This is the result of my
udevadm info /sys/class/net/enx00e04c02c8b4
:
Code:
P: /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/net/enx00e04c02c8b4
M: enx00e04c02c8b4
R: 4
J: n2
U: net
I: 2
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/net/enx00e04c02c8b4
E: SUBSYSTEM=net
E: INTERFACE=enx00e04c02c8b4
E: IFINDEX=2
E: USEC_INITIALIZED=1758481
E: ID_NET_DRIVER=r8152
E: ID_BUS=usb
E: ID_MODEL=USB_10_100_1000_LAN
E: ID_MODEL_ENC=USB\x2010\x2f100\x2f1000\x20LAN
E: ID_MODEL_ID=8153
E: ID_SERIAL=Realtek_USB_10_100_1000_LAN_001000001
E: ID_SERIAL_SHORT=001000001
E: ID_VENDOR=Realtek
E: ID_VENDOR_ENC=Realtek
E: ID_VENDOR_ID=0bda
E: ID_REVISION=3100
E: ID_TYPE=generic
E: ID_USB_MODEL=USB_10_100_1000_LAN
E: ID_USB_MODEL_ENC=USB\x2010\x2f100\x2f1000\x20LAN
E: ID_USB_MODEL_ID=8153
E: ID_USB_SERIAL=Realtek_USB_10_100_1000_LAN_001000001
E: ID_USB_SERIAL_SHORT=001000001
E: ID_USB_VENDOR=Realtek
E: ID_USB_VENDOR_ENC=Realtek
E: ID_USB_VENDOR_ID=0bda
E: ID_USB_REVISION=3100
E: ID_USB_TYPE=generic
E: ID_USB_INTERFACES=:ffff00:020600:0a0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=r8152
E: ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Corp.
E: ID_MODEL_FROM_DATABASE=RTL8153 Gigabit Ethernet Adapter
E: ID_NET_NAMING_SCHEME=v257
E: ID_NET_NAME_MAC=enx00e04c02c8b4
E: ID_OUI_FROM_DATABASE=REALTEK SEMICONDUCTOR CORP.
E: ID_NET_NAME_PATH=enp0s20f0u1
E: ID_PATH_WITH_USB_REVISION=pci-0000:00:14.0-usbv3-0:1:1.0
E: ID_PATH=pci-0000:00:14.0-usb-0:1:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_1_1_0
E: ID_NET_LINK_FILE=/usr/lib/systemd/network/73-usb-net-by-mac.link
E: ID_NET_NAME=enx00e04c02c8b4
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enx00e04c02c8b4
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:
I've created a file called 10-lan01.link in /etc/systemd/network/ and tried putting these lines in the file
Code:
[Match]
ID_NET_NAME=enx00e04c02c8b4
[Link]
Name=enxlan01
AlternativeName=lan01
Code:
[Match]
MACAddress=00:E0:4C:02:C8:B4
[Link]
Name=enxlan01
Code:
[Match]
Property=INTERFACE=enx00e04c02c8b4
[Link]
Name=lan01
MACAddress=00:E0:4C:02:C8:B4
None of them seem to anything to the name of the interface in Proxmox GUI. See screenshot:

This is further confirmed by trying to start any VM with a VLAN tag and getting a name too long error:
can't add vlan tag 50 to interface enx00e04c02c8b4 - the interface name enx00e04c02c8b4.50 is too long at /usr/share/perl5/PVE/Network.pm line 178.
What am I doing wrong? How can I get the interface name shorter to be able to tag at least the first two digit VLANs if nothing else? I'm lost here.
Edit: To add - After every save of the file, I have ran the
systemctl restart systemd-udev-trigger
command, then tried again, then rebooted the whole Proxmox server just to be sure, then tried again.
Last edited: