Static MAC for vmbr

MaxGashkov

Member
Mar 12, 2017
4
0
6
39
I'm setting up Proxmox for routed bridging configuration as described here:
https://pve.proxmox.com/wiki/Network_Configuration#_routed_configuration

All is fine and well until I decide to reboot or shutdown one of the containers on the bridge. This leads to temporary network interruption for all other containers on this bridge and this should not happen.

Upon investigation it seems that for some reason Proxmox visual network setup tools neither set fixed MAC address for the bridge, nor have any ability to do so. This leads to vmbr device changing MAC each time list of virtual eth devices for containers change, which happens when one of them restarts.

When I've set up random static MAC via /etc/network/interfaces's bridge_hw statement this problem immediately went away.

This seems to be a common pitfall. Is there any particular reason Proxmox does not set up static MACs for bridges by default?
 
Yes, that kernel include the patch to avoid that. Anybody else able to reproduce the described behaviour?
 
I am running Linux proxmox 5.3.10-1-pve #1 SMP PVE 5.3.10-1 (Thu, 14 Nov 2019 10:43:13 +0100) x86_64

I am running promox on top of VMware withing a Windows platform. The bridge of proxmox is still changing mac address each time it boots. Thus requires flushing the ARP tables form the Windows in order to reach the proxmox web server. The continuously changing mac-address of the bridge in the proxmox is causing this problem. Is there in this kernel already a possibility to set the mac address to a fixed value?
 

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!