No 70-persistent-net.rules on Proxmox 5 ??

Mansaylon

Renowned Member
Feb 13, 2012
45
2
73
Zürich
www.elektrofahrer.ch
Hello

I have the latest Proxmox 5.x installed. There are 8 network ports on the server.
These ports are a bit chaotically distributed.

In /etc/udv/rules.d/ is no 70-persistent-net.rules.
I tried reinstalling udev.
'udevatm trigger did not help either.
Several restarts.

I do not know how to continue. How can I sort the ports?

Bye
Mansaylon
 
Hello

I have the latest Proxmox 5.x installed. There are 8 network ports on the server.
These ports are a bit chaotically distributed.

In /etc/udv/rules.d/ is no 70-persistent-net.rules.
I tried reinstalling udev.
'udevatm trigger did not help either.
Several restarts.

I do not know how to continue. How can I sort the ports?

Bye
Mansaylon

Yep this is expected. In fact I think we lost this back in 4.x but I forget which version.

It should now be using persistant naming. Its based on the nic type and pci slot its located in.

Here is a trick I use to find the names of all nic's in the system.

root@trillprox1:~# ls /sys/class/net
bond0 bond1 bonding_masters eno1 eno2 eno3 eno4 eno49 eno50 ens1f0 ens1f1 ens3f0 ens3f1 lo tap100i0 tap100i1 tun0 vmbr0 vmbr1

All of the "eno*" devices are my onboards. All of the "ens#f#" are cards in pci slots.

So I know ens1f0 is in pci slot 1. ens3f0 is in pci slot 3.

You can download ethtool and use that to make the ports blink to track down things even further.

ethtool -p eno1

Hope this helps!
 
on my test config, i create files in /etc/sytemd/network/

root@prox7:/etc/systemd/network# ls -lah

-rw-r--r-- 1 root root 57 sept. 23 17:02 10-intel.link
-rw-r--r-- 1 root root 60 sept. 23 17:03 10-realtek.link

in the file ( 10-intel.link for example )


[Match]
MACAddress=00:15:17:bc:d3:90

[Link]
Name=intel0



you can modify the match type as you want

and in the / etc/network/interfaces

you use the name of the card

auto lo
iface lo inet loopback

iface realtek0 inet manual

iface intel0 inet manual

auto bond0
iface bond0 inet manual
slaves intel0 realtek0
bond_miimon 100
bond_mode 802.3ad


hope it helps
 

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!