[lxc-users] Determining a container's MAC address
Dietmar Maurer
dietmar at proxmox.com
Sun Sep 6 19:13:08 UTC 2015
> > I'm currently using a "quite high" prefix and a tail that is derived from
> > the assigned IP. The same "formula" is used to setup a auxiliary DHCP server
> > because use DHCP for the container network setup.
> >
> > HWADDR=`IP=${IP#*.}; printf "00:50:C2:%02X:%02X:%02X" ${IP//./ }` #
> > a.b.c.d -> 00:50:C2:bb:cc:dd (hex)
> I was not aware of this behavior. Although I don't believe we've noticed
> any suspicious behavior in our network traffic, I can easily change our
> automation logic to use a high prefix for the containers that we create.
We use a kernel patch to avoid that behavior:
https://git.proxmox.com/?p=pve-kernel.git;a=blob;f=bridge-patch.diff;h=648042e08fa4337ccb5329e05a157fa3e445c56e;hb=HEAD
More information about the lxc-users
mailing list