February 25, 20206 yr 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, 20206 yr by skois
May 13, 20206 yr 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
March 23, 20233 yr 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.
July 5, 20232 yr 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.
October 10, 20241 yr On 3/23/2023 at 9:59 PM, DrMcNasty said: 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. Sorry to kick this old topic. But did you ever find a solution for this? I have the same issue on my unifi controller. No dockers visible.
October 25, 20241 yr On 10/10/2024 at 5:51 PM, lowfi said: Sorry to kick this old topic. But did you ever find a solution for this? I have the same issue on my unifi controller. No dockers visible. Go to "Docker Settings" -> Enable "Advanced View" -> go to "Docker custom network type:" and select "macvlan". After that, my UniFi shows me new MAC-Adresses for my docker containers.
October 25, 20241 yr Community Expert https://docs.unraid.net/unraid-os/release-notes/6.12.0/#call-traces-related-to-macvlan
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.