How do I configure static vmbr0 mac address

mzhaqs

New Member
Apr 4, 2023
8
0
1
I have 2 pimoxes running on 2 raspberry pi 4s. I have disney circle on my router for parental control which tracks devices using MAC addresses. Whenever I restart or recreate my vms, vmbr0 keeps getting new MAC addresses which is a pain with the circle software. I can see each vm has a tap<vmid> along with eth0 and the tap device and vmbr0 have the same MAC addresses. I tried bridge_hw with no luck. Adding hwaddress changes eth0 MAC address as well. How do I give vmbr0 a static MAC address?
 
So first off, Pimox is third-party software, we don't officially support ARM. Hence, if there is a bug in Pimox, I'm not sure if I can help you.

However, generally it should be possible to set the MAC address in the hardware tab of your VM. Just double-click the interface and enter the desired MAC address.
 
  • Like
Reactions: mzhaqs
stery, thank you so much for the reply, appreciate it. It’s not the vm MAC address, it’s the bridge vmbr0 that’s having a random MAC address each time I recreate the vm or restart the Proxmox host. If I can assign a static MAC address for vmbr0 then I can config my router not to parental control it. Thanks in advance.
 
Ah ok, did you try hwaddress instead of bridge_hw? AFAICT, bridge_hw was used by ifupdown, whereas hwaddress is used by ifupdown2.
 
Yes I did without any luck. I noticed when I create a vm, it’s automatically creating a tap<vmid>i0 device and both vmbr0 and this tap device gets the same MAC address. This is what confusing the router since every reboot or recreate of the vm giving this tap device and the vmbr a random new MAC address. I wonder if it’s possible to give this tap device a static Mac address.
 

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!