skois Posted February 25, 2020 Share Posted February 25, 2020 (edited) 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 February 25, 2020 by skois 2 3 Quote Link to comment
DanielPetrica Posted May 13, 2020 Share Posted May 13, 2020 Hi thanks for posting the solution. This helped me make sure by modem doesn't change the asigned ip of my docker container. Also please note thate there is a typo in your example. It should be --mac-address not mac-adress 1 1 Quote Link to comment
DrMcNasty Posted March 23, 2023 Share Posted March 23, 2023 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. Quote Link to comment
Veah Posted July 5, 2023 Share Posted July 5, 2023 A little late, but I found if I open console on the Docker container in question, I can type IFCONFIG and it will list a bunch of info, including the assigned MAC address. 1 Quote Link to comment
Recommended Posts
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.