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.

Communication errors after updating to 6.10.0-rc2(3) to use ipvlan in docker custom network type instead of macvlan

Featured Replies

Editted: Updated to rc3, problem still exists with IPVLAN

 

Title says it. I had a previous post about crashes. A suggestion was that since I was getting macvlan call traces, that I update to 6.10.0-rc2 and change the docker network type to ipvlan instead (SETTINGS->DOCKER->DOCKER CUSTOM NETWORK TYPE->IPVLAN). This did eliminate the previous errors.

 

However, now I have some new issues.

 

I have communication problems. The shares are still accessible. Examples: Fix common problems indicates that I cannot communicate with GitHub, I cannot download blacklist for apps. I cannot update plugins or dockers as they cannot communicate.

 

Now, the interesting part (for me, but I'm pretty dumb).  If I go to SETTINGS->DOCKER->ENABLE DOCKER and change to NO, then I can communicate fine.  Also, when I switch the ENABLE DOCKER back to YES, I get an amount of time where communication seems fine, can even update the dockers without getting NOT AVAILABLE for a minute or two.  Testing this just now, about 2-3 minutes.

 

Any ideas? It's worth noting I do have a second Unraid installation in the same house, and it's unchanged 6.9.2 and still presumably using the macvlan setting for custom networks. No problems on the other system, so I don't think it's a router/hardware issue.

ipvlan.PNG

orcrist-diagnostics-20220306-1236.zip

Edited by mikesp18

Solved by calvolson

Make sure there is no IP address overlap between the docker containers on each Unraid server.

Each Unraid server must use a unique DHCP address range.

 

  • Author
7 hours ago, bonienl said:

Make sure there is no IP address overlap between the docker containers on each Unraid server.

Each Unraid server must use a unique DHCP address range.

 

I just looked through and spotted no overlaps. They are on physically different hardware, 192.168.86.113 vs 192.168.86.115

Docker uses its own dhcp service, which is configured under Docker settings.

When you use multiple Unraid servers, then each server must have a different dhcp range configured.

 

  • Author

OK, I think I am following.  Forgive me as I'm typically a little out of my depth. I've screenshotted my current settings between the respective installations. I've also included the limited DHCP pool settings that my Google Nest Wifi Router will allow.  I figured that the DHCP pool of the Nest should NOT include the IPs of the DHCP pool of unraid to avoid conflicts, does this sound correct? So now the 6.10.0-rc2 (Orcrist) has 192.168.86.240-247, the 6.9.2 (Grond) has 192.168.86.248-255), and the Nest Wifi pool is 192.168.86.20-239.  I think this all sounds correct.

NestWifiRouterDHCP.thumb.jpg.502815b0f8d05272bbf8852a26b02648.jpg

OrcristDocker.thumb.PNG.04380c6b1cf38dd9ef62987f49776d4b.PNG

GrondDocker.thumb.PNG.5517803a9f6395052260555fb2cd5a58.PNG

 

 

Yeah, this should work, the key is indeed no overlap between the different dhcp servers.

 

  • Author

FWIW, this did not clear up the communications problem. Each time the Docker is enable, about 2 minutes later, I lose communication.  I can ping from the affect server console within the 192.168.86.x network, but I cannot ping outside. Also, I can confirm that I can ping those same IP addresses if the ENABLE DOCKER is set to NO, or if ENABLE DOCKER set to YES and the DOCKER CUSTOM NETWORK TYPE is set to MACVLAN instead of IPVLAN.

ping.thumb.PNG.be7cf29b72b54a7b6d845abb8a09343c.PNG

Edited by mikesp18

  • mikesp18 changed the title to Communication errors after updating to 6.10.0-rc2(3) to use ipvlan in docker custom network type instead of macvlan
  • 4 weeks later...

I am experiencing exactly the same kind of issues after switching from macvlan to ipvlan.

 

I can confirm, that unraid is not able to ping any IPV4 address which is outside of my LAN, but i can ping IPV4 addresses inside of my LAN.

Additionally IPV6 addresses can be reached perfectly from unraid (inside LAN and outside).

From within docker containers i can ping everythin on LAN and WAN and it doesn't matter if the containers using br0 or host networking (bridge).

 

My guess was that my Gateway/router does not like the fact, that ipvlan uses multiple IP addresses with only one single MAC address.

Therefore I replaces my router with a pfsense box, but the issue still persists.

 

@bonienl Are you using any special kind of router, which can deal with one single mac address having multiple IP addresses?

  • 1 month later...

 

1) Docker custom network type: ipvlan, Host access to custom networks: Disabled

In this configuration I don't have any issues

 

 

2) Docker custom network type: ipvlan Host access to custom networks: Enabled

After a couple of minutes I cannot ping 8.8.8.8 from unraid SSH. I think there is something wrong with ipvlan + shim interface configuration

Either/any of yall using pfsense or something by chance?

 

EDIT: with PfSense I had a bunch of issues after switching and my fix was 

Maybe something like this is breaking your setup?

Edited by blaine07

I use UDMP,

- removed all old macvlan static IPs

- In my 192.168.86.0/24 I changed DHCP range to 192.168.86.2 - 192.168.86.172

- moved all ipvlan containers to new address space 192.168.86.173 - 192.168.86.253 (not managed by DHCP)

 

However this made 0 effect, still having connectivity issues =(

  • Solution

The shim interface miss-configuration comment looks to be in the right direction. When I disable "Host access to custom networks" in the docker settings this issue stops for me. Running 6.10.0 rc8

  • 3 weeks later...

I second one

+1 with current 6.10.2 stable, cannot use ipvlan because network connectivity drops after some mins. No issues with macvlan

  • 3 weeks later...

Any workaround? I’m having the same issue where I needed to enable host access to the docker with a static. Im running pihole in docker with a static ip and I want to point my unraid host to it. I’m running the latest 6.10.3. 

  • 3 weeks later...
On 5/12/2022 at 11:48 AM, calvolson said:

The shim interface miss-configuration comment looks to be in the right direction. When I disable "Host access to custom networks" in the docker settings this issue stops for me. Running 6.10.0 rc8

 

I assume this is a very similar issue that I am facing, my network is fine for a week of uptime but when running a CA Appdata backup where all containers are stopped then restarted my network goes kaput and everything goes down, I cannot reach github, I cannot ping out from the server itself, etc. 

 

Just adding my experience to the mix!

  • Community Expert

 

On 5/12/2022 at 11:48 PM, calvolson said:

The shim interface miss-configuration comment looks to be in the right direction. When I disable "Host access to custom networks" in the docker settings this issue stops for me. Running 6.10.0 rc8

 

I wonder if there are issues due to the shim network itself being macvlan as noted in help section, which is already been known to cause crashes for some (certainly has for me since moving to 6.10).


image.png.8e6bd1400150adf1b29b616ca4fec7b9.png

 

  • 2 weeks later...

+1 to this being a problem.

The moment I activate: "Host access to custom networks" my router gets confused about where to attribute my static IP and it causes all sorts of issues. I need this setting for some of my services to work and it causing instability is definitely not great.

On 7/6/2022 at 1:37 AM, tjb_altf4 said:

 

 

I wonder if there are issues due to the shim network itself being macvlan as noted in help section, which is already been known to cause crashes for some (certainly has for me since moving to 6.10).


image.png.8e6bd1400150adf1b29b616ca4fec7b9.png

 

Just to confirm that once I change "Docker custom network type" to "ipvlan" everything works fine when having the "Host access to custom networks" set to "Yes".

On "macvlan" however, everything is off. I currently have the 6.10.3 version (latest at the moment).

 

For now, I shall leave it on ipvlan, maybe I'll test it in macvlan in the next version.

Edited by sergio.calheno

  • 1 month later...

I changed from a UniFi USG to a UDM now and my old macvlan setup with a VLAN ID of 10 for docker networks to give my pihole a static IP while still using macvlan and avoiding crashes has now stopped working for some reason... and this ipvlan issue still exists.

This leaves me in a bad spot now 

 

Has this been properly reported as a bug yet? 

  • 1 month later...

+1  I recently added a NVMe drive and different RAM to my server and all of a sudden I was getting macvlan traces, so by advise of a community member I switched to ipvlan.

 

I'm having the same issue, with ipvlan and "Host access to custom networks: Enabled" my unraid sever and any "bridge" containers can no longer route externally.

 

It Disabling "Host access to custom networks" seems to have "fixed" the issue, but I'm not sure what I'm losing here.  I recall turning it on for a good reaason

Edited by Dephcon

On 9/5/2022 at 9:48 AM, CorneliousJD said:

Has this been properly reported as a bug yet? 

 

 

  • 5 months later...

Looks like there was never a solution to this mess?

macvlan = network works, box crashes every few days (out of no where, has been stable for ages)

 

ipvlan + allow hosts = messed up network connectivity, stable server

 

ip vlan + no allow hosts = working network, stable server but my reverse proxy does not work if a docker is bridged.

On 3/28/2023 at 11:01 AM, macmanluke said:

Looks like there was never a solution to this mess?

macvlan = network works, box crashes every few days (out of no where, has been stable for ages)

 

ipvlan + allow hosts = messed up network connectivity, stable server

 

ip vlan + no allow hosts = working network, stable server but my reverse proxy does not work if a docker is bridged.

 

I can confirm that this is exactly how it is currently working for me. I find this ridiculous, is a fix being worked on in a new version of Unraid? If so how long until this is released? 

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.