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.

LAN Routing Issue

Featured Replies

Hi - I'm having a very basic routing issue for my LAN/br0. The unraid server can get out to the internet but it can't ping devices in other networks. What are some basic first steps I can take to troubleshoot this, since I've been unsuccessful in trying to solve this? I think it has to do with some config on unraid.

 

Note: I don't see any traffic/denies on the firewall either.

 

image.png.ce005b09cf25c97c634f2ace316f689f.png

 

Edited by surfshack66

  • Author

Hopefully the title isn't misleading. I moved unraid into a new interface called br0.100 and having the same issue. It seems that no matter what network unraid is in, it cannot ping other networks.

  • Author
16 minutes ago, bonienl said:

Unraid uses the untagged interface "br0" as management interface.

 

I'm not sure I follow what the means exactly. Are you saying the "issue" I'm having is expected behavior?

 

image.thumb.png.2407fad7385162e4765cb9a49d329ddc.png

  • Author

@ken-ji

 

I've been reading multiple forums posts, including this

 

In this post, you say:

"With only a single NIC, and no VLAN support on your network, it is impossible for the host unRAID to talk to the containers and vice versa; the macvlan driver specifically prohibits this."

 

My question is how do I get the host unraid to talk to the containers and vice versa IF I have VLAN support on my network?

@surfshack66

Simple.

Configure docker networks on the VLANs you have defined. Do take note that the VLAN subinterfaces preferably should not have an IP address, as it will cause confusion with asymmetric routing on Unraid.

It will look like this:

image.thumb.png.ea4b8d9923807fd61ff5858ca29344ec.png

image.thumb.png.94eaf2c3c7d4b4fbc59d8f8416baec44.png

(Sorry but my only server has 2 network interfaces, but it should be identical)

place the containers on the VLANs, while keeping Unraid on the unbridged main network eth0/br0/bond0.

so when container A (ie 192.168.95.129) in VLAN 3 talks to Unraid (192.168.2.5) it will always talk to the router (192.168.95.1) instead of trying to talk to Unraid directly (which the lack of IP prevents)

 

 

  • Author

@ken-ji If only things were simple.

 

So I have the VLANs and Custom Networks defined per the attached screenshots, but still having this issue.

 

Ignore br0.100 in the custom networks. It's the same network as br0 and I created it for testing.

 

image.thumb.png.148acce787cb01c0e2255b70d39cad5b.pngimage.thumb.png.28ed65ebe95255f3e7b85b9922df4c81.png

 

 

Sorry since you pulled me in the discussion. What exactly is your issue?

Unraid cannot ping the other subnets?

try grabbing the output of traceroute -n <unpingable ip>

 

Also, i'm amazed you were allowed to define br0.100 as I'm fairly sure docker won't let you create networks to the same gateway 

Edited by ken-ji

  • Author

Thanks for joining. I really appreciate it.

 

I pulled you because I read one of your posts from a while back but having an issue despite configuring everything correctly. The issue is unraid cannot ping other subnets and vice versa.

 

image.png.89d4d32b631b7c814fcba81b8f5ac994.png

there's something wrong with your config.

can you show the output of ip route

because from your screen shots it seems the default route is to 192.168.1.1 but br0 has an ip of 192.168.100.100 which is not in the same subnet as your gateway?

  • Author
2 hours ago, ken-ji said:

there's something wrong with your config.

can you show the output of ip route

because from your screen shots it seems the default route is to 192.168.1.1 but br0 has an ip of 192.168.100.100 which is not in the same subnet as your gateway?

Which screenshot shows default route to 192.168.1.1? This is my LAN network. I just recently moved unraid to VL100 as a test to see if the issue persists.

VL100 = 192.168.100.1

 

image.png.0bda82848b4e69fe4c3248ecfc8171bf.png

 

you have two interfaces for the subnet 192.168.100.0/24 - br0 & br0.100

you can see it in the routing table that there are two entries for 192.168.100.0/24 there only be one unless you know what you are doing.

the default metric is 0 which makes br0.100 the default interface to use to talk to the gateway. but going to other subnets the routing table indicates to use br0 to talk to the gateway.

 

I think you have asymmetric routing going on here - packets go out one interface and the response comes back on another.

 

You must delete the ip from br0.100 so its not considered a possible route for packets for the 192.168.100.0/24 subnet

The fact that all your interfaces have routes mean you have IP addresses on all the VLANs, which I mentioned previously tends to be a confusing and messy config, particularly if you are trying to perform VLAN segregation. Additionaly, if the docker networks were autocreated (they will be if the VLAN interfaces have IP addresses), they might need to be deleted when you remove the IP from the interface (Its been a while since I configured this)

 

  • Author

Sorry about that. I said before to ignore br0.100 since I created that as a test. In any case, I cleaned up the test VL100.

 

Unraid is 192.168.1.2 in the LAN 192.168.1.0

 

image.png.44421ce9bbd88f469aab76a72f12475c.png

 

Unraid cannot ping containers in other networks.

 

image.png.508ebe2463bf14637e17337f6e013ff2.png

 

Also, I don't think I have IP addresses on all the VLANs. Is this screenshot what you mean by having IP addresses on the VLANs?

image.thumb.png.353c39a21325643eb1d12deb3b308f43.png

You can reach the gateway?

ping 192.168.1.1

 

Also

ip addr

Because you routing table mentions the various subnets for some reason.

  • Author

I can reach the gateway

image.png.d680f71d47a1ca5e38c85f4659ddfc33.png

 

image.thumb.png.5990a1a95dd1fa60243f4a240712b586.png

 

image.thumb.png.5efd04bc8825814b0c521eb9b28f3bc7.png

 

image.png.4caa5dd41dc9e8973999fd92910c7e84.png

Just curious, but have you restarted Unraid? Because your routing table has entries for the subnets but no IP addresses are assigned. A quick test is to run

ip route del 192.168.80.0/24

ping 192.168.80.15

  • Author

I have this custom script since entries in the routing table don't persist a reboot.

image.png.b0f9421eb2306035846806fcc60d74e5.png

And that is the totally wrong script to be using since you shouldn't be specifying local direct attached subnets specially when the interface does not have an ip address.

When you assign an IP to an interface, the networking stack will automatically define an route to the subnet on that interface. You never define this route manually.

  • Author

I did that based on this recommendation.

 

 

Let's try that test you just mentioned.

image.png.77e603ae7150d8b015e06bbe46729684.png

 

I think you solved it!

 

A quick test from a container in br0.80 subnet

 

image.png.ccb313d6b5d6f9673ca87ce12239425a.png

 

I can't believe that script was the reason I was having issues. Thank you so much for helping. Does everything seem right now if I delete that script?

 

The script is useful for custom routes but you don't have any in this case.

Also. The correct key to stop most Linux commands is Ctrl+c not Ctrl+z.

I had a few until I migrated to real router and left the custom routes there.

Archived

This topic is now archived and is closed to further replies.

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.