{SOLVED} Docker Mac Address


skois

Recommended Posts

Hello, i have set a Unifi Controller docker and gave it his own ip address, but i also want to make a static assignment on pfsesne.
Do anyone know if dockers change mac address when they are updating or whenever?


Except in the case i delete and reinstall them i guess. 
Is there any way to set a custom mac address?

 

--SOLUTION--

I should do a better web search before, for anyone who might need this..
Edit container and on extra parameters add
"--mac-adress 02:42:xx:xx:xx:xx"

use a mac from a range of 02:42:ac:11:00:00 to 02:42:ac:11:ff:ff as this address are meant for dockers. 
I dont know it if works for macs out of this range

Edited by skois
  • Like 2
  • Thanks 3
Link to comment
  • 2 months later...
  • 2 years later...
On 2/25/2020 at 12:37 AM, skois said:

Hello, i have set a Unifi Controller docker and gave it his own ip address, but i also want to make a static assignment on pfsesne.
Do anyone know if dockers change mac address when they are updating or whenever?


Except in the case i delete and reinstall them i guess. 
Is there any way to set a custom mac address?

 

--SOLUTION--

I should do a better web search before, for anyone who might need this..
Edit container and on extra parameters add
"--mac-adress 02:42:xx:xx:xx:xx"

use a mac from a range of 02:42:ac:11:00:00 to 02:42:ac:11:ff:ff as this address are meant for dockers. 
I dont know it if works for macs out of this range


I am in the same boat as you.  I have managed to get this to work for some of my containers by setting docker on macvlan on my one Unraid server (has a pihole and some other containers that seem to show up).  But on my new Unraid host, I have setup a MySQL, Redis and ElasticSearch container and none of them are showing up in the Unifi Controller at all, even with fixed IP and the extra param for the mac address.

I am at a loss here now.

I have confirmed the docker settings are the same across both Unraid hosts.

Link to comment
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.