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.

Default routes and metrics

Featured Replies

Hi All,

 

I'm wanting to change my default route in Unraid, but obviously using cli it will revert after a restart.

I thought that adding a metric would change this but I've tried setting the below metrics and opposing the metrics with no luck.
 

Some background on my interfaces:

eth0: bonding = disabled, bridging = enabled, metric = 1 - bond name = br0

eth1: bonding = disabled, bridging = enabled, metric = 2 - bond name = br1

eth2: bonding = disabled, bridging = enabled, metric = 3 - bond name = br2

 

eth0 is my mobo interface and the others are a pcie dual port card.

All interfaces have a static ip.

 

My questions:

How can I force my default route gateway to br0 rather than br2?

Do metrics actually do anything?

Also, how can I isolate my host web access to a single interface?

 

Any help appreciated 🙂 I've tried everything I can think of.

Screen Shot 2020-02-12 at 5.52.03 PM.png

  • 5 months later...

Did you ever get a solution to this? I have the same question. 

  • 3 weeks later...
On 8/2/2020 at 7:36 AM, jas0r said:

Did you ever get a solution to this? I have the same question. 

Same here.  I have 2 routers plugged into my server and it thinks the wrong one is the default route.  How do we change it?

  • 2 weeks later...

So I just ran into this issue, again.  I have docker set up on 1 network, and the rest of the things in my house set up on another.  And somehow, Unraid decided that using BR2 was best to get to the internet....it didn't work.  

 

In order to fix the issue I changed the metric for BR2 and associated Eth2 to be 5 and set BR0 and Eth1 to be 1.  Now I can reach out to the internet again.

May I know why you have 3 interfaces on the same subnet?

If you have bridging enabled, why not bridge all 3 interfaces together as br0?

  • 1 month later...
  • Author

The reason for 3 interfaces on the same subnet was to minimise latency and have some access control of web, docker, and pihole. Each on a different interface.
I actually gave up on this idea shortly after my post and since 6.8.3, started using custom br0. Will also be looking at a 10gb adapter in the near future.

  • 1 year later...
On 10/5/2020 at 10:51 AM, Maximus88 said:

The reason for 3 interfaces on the same subnet was to minimise latency and have some access control of web, docker, and pihole. Each on a different interface.
I actually gave up on this idea shortly after my post and since 6.8.3, started using custom br0. Will also be looking at a 10gb adapter in the near future.

 

can you show your config and how you are using custom br0? i have a mollex 10gb card and the same issue trying to give different routes

 

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.