Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help - Static MAC on Docker Container (Not sticky after server reboots!)

Featured Replies

Hi all, using latest unraid w/ docker set to macvlan and I have a static MAC set on the container in the extra parameters via setting

-mac-address 02:42:aa:00:ff:XX

This WORKS, however when I reboot the server itself and the container auto-starts up, it gets a random MAC. If i force-update the conatiner after that it pulls the static MAC I have set again.

Is there a way to make sure this always gets the static MAC even after reboots? I can't figure out why a server reboot is causing the MAC to randomly generate again.

NOTE: This is for VPN purpsoes and routing via UniFi firewall w/ a VPN client on the firweall. I want to ensure that the container always routes all traffic via the VPN and nothing else - if the VPN is down then the traffic should cease.

If there's a better way to go about this I'm all ears...

Solved by CorneliousJD

The last four octets are the IP address, so aa:00:ff:XX is 170.00.255.XX ( this may break if you set by parameters ) ..... I use fix IP for docker, so its MAC address also fixed.

Edited by Vr2Io

  • Author
  • Solution

FYI incase anyone finds this later - the mac address didn't follow the IP and kept changing (i had the docker IP set static and it still changed)

I ended up just using wg0 tunnel built into unraid to connect proton VPN and push the traffic for hte container thru that.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.