Proxmox 5 ethernet issues

Sharan H

New Member
Jul 7, 2017
14
3
3
44
Getting my ethernet interfaces renamed on a stock install, please let me know if this is a bug, and how I can fix, thanks. I also cannot edit the "renamex:" interfaces from the proxmox gui.

Jul 7 11:40:37 pve kernel: [ 2.128510] igb 0000:07:00.1 eno1: renamed from eth1
Jul 7 11:40:37 pve kernel: [ 2.147266] igb 0000:07:00.0 rename2: renamed from eth0
Jul 7 11:40:37 pve kernel: [ 2.183106] igb 0000:07:00.2 rename4: renamed from eth2
Jul 7 11:40:37 pve kernel: [ 2.215101] igb 0000:07:00.3 rename5: renamed from eth3
Jul 7 11:51:41 pve kernel: [ 2.124401] igb 0000:07:00.0 eno1: renamed from eth0
Jul 7 11:51:41 pve kernel: [ 2.179189] igb 0000:07:00.1 rename3: renamed from eth1
Jul 7 11:51:41 pve kernel: [ 2.219133] igb 0000:07:00.2 rename4: renamed from eth2
Jul 7 11:51:41 pve kernel: [ 2.263192] igb 0000:07:00.3 rename5: renamed from eth3
Jul 7 11:56:16 pve kernel: [ 2.119868] igb 0000:07:00.1 eno1: renamed from eth1
Jul 7 11:56:16 pve kernel: [ 2.138663] igb 0000:07:00.0 rename2: renamed from eth0
Jul 7 11:56:16 pve kernel: [ 2.166641] igb 0000:07:00.2 rename4: renamed from eth2
Jul 7 11:56:16 pve kernel: [ 2.194729] igb 0000:07:00.3 rename5: renamed from eth3
 
It's not very predictable when everything goes to rename#!

I added the following to /etc/default/grub:

GRUB_CMDLINE_LINUX="net.ifnames=0"​

You need to do an update-grub2, then reboot.

Now you can create a file /etc/udev/rules.d/70-persistent-net.rules:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="ethN"​

Replace the 'xx:xx:xx:xx:xx:xx' with the MAC address of your card, and 'ethN' with your network interface name. Reboot for your changes to take effect.
 
  • Like
Reactions: micro
This is what I did (no other changes required)

root@pve:/etc/udev/rules.d# cat 10-network.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:68", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:69", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:6a", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:6b", NAME="eth3"

I tried the other options to get standard naming back, but nothing worked for me with the exception of above.
 
  • Like
Reactions: lweidig
This is what I did (no other changes required)

root@pve:/etc/udev/rules.d# cat 10-network.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:68", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:69", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:6a", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:25:90:4f:3c:6b", NAME="eth3"

I tried the other options to get standard naming back, but nothing worked for me with the exception of above.

This worked for me as well, but after editing the file it was necessary to run the update-initramfs -u command so that they were recognized.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!