Mac address prefix

Apr 29, 2021
27
3
8
46
Hi.
I have one cluster (3-node) and 3 single proxmox servers running alongside (for various reasons).

I figured I'd set mac address prefixes so I won't have any problems with identical mac addresses for different VM:s.

The cluster runs 8.1.3 and the standalone hosts are 7.4.17, 8.0.3 and 7.4.3.

I go to the options under datacenter, and try to change prefix to BC:24:11:1 (from default BC:24:11) on any of the servers or clusters, but it won't let me click "OK" after adding the last 1. Just a red box around the input field. I tried adding 10 and 10: aswell, but the same problem.

On one of the standalone hosts i tried to edit the datacenter.cfg file to:
keyboard: sv
next-id: lower=300
mac_prefix: BC:24:11:2

But when I added a NIC to a VM, it came up with a random mac address anyways.

Am I doing something wrong? The documentation says " For example, add a separate extra hexadecimal to the Proxmox OUI for each cluster, like BC:24:11:0 for the first, BC:24:11:1 for the second, and so on."
 
I don't even see that the first three hex groups are generated as "BC:24:11" (as defined in Datacenter, Options, MAC address prefix) in my VM's or CT's - I just get completely random mac address.
Strange behavior?

EDIT: Just tried creating new VM and it did get the "BC:24:11" prefix! Really strange why now its working. I know that restoring from backup will use the complete original MAC, but most of my VM's & LXC's were created originally with Proxmox in the past (on a different machine running PVE). Strange?
 
Last edited:
Same problem here, I need to define a 5-octet prefix but it accepts prefixes up to 3 octets only, can't set more from the UI and setting it in datacenter.cfg just falls back to the default 3-octet value. :(
 
Same problem I also have to use a 5-octet prefix in an environment. Is there any solution/workaround?
 

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!