want to add network card, want to avoid name change

FSNaval

New Member
Jan 13, 2024
16
0
1
Hi all,

I have a 3-node proxmox cluster and am also in the process of adding a 10gb network card to my nodes.

i want to bind the existing vmbr0 network with the MAC address to each node (so not to loose connectivity when adding the network cards), and if my understanding is correct, i should create a file called vmbr0.link inside the /etc/systemd/network/, paste the following inside:


Code:
[Match]
MACAddress=d8:43:ae:45:ad:7e
Type=ether

[Link]
Name=vmbr0

and then refresh the initramfs.

Above procedure should be done for every node for every mac address.

Is my understanding correct?
 
Hi,
by default the vmbr0 has the mac of the underlying interface. It should be sufficient to change mac of this interface (hwaddress ether <mac-address>) in /etc/network/interfaces and assign the new interface as new bridge port instead of the old one.
As I understand the posted systemd solution: it would rename the physical interface with the given mac to "vmbr0". If this mac isn't found, no renaming takes place.