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 route resets after reboot

Featured Replies

Hello there,

 

I've got a problem with my default route in unRAID. After every reboot, the second NIC is used for the default route configuration. I have to change it after every reboot back to my first NIC. Is there a way around that?

 

1474372955_2020-10-2615_37_16-root@dringenet-MS_.png.f4d670d273a0f38bd08dbc5c4ae3fd79.png

 

319816160_2020-10-2615_38_04-root@dringenet-MS_.png.5abaaeb97146a6234bef1649745c00cd.png

 

Thanks in advance!

  • Community Expert
37 minutes ago, pappaq said:

I have to change it after every reboot back to my first NIC.

How are you doing that? It must be done on Settings -> Network Settings -> Interface Rules (reboot required)

  • Author

Perhaps I did not express myself properly. I change the default route after each reboot as described above.

 

Gonna check the GUI later, if somebody answers my question regarding my "File not found." GUI problems!

  • Community Expert

Are you doing it in the Interface rules? Doesn't look like it since it requires a reboot.

  • Author

So my interface rules are set as follows: image.thumb.png.0a86447f335ed1b3a797b9872cc153bf.png

 

But after each reboot, unraid sets the default gateway to br1, like this: image.thumb.png.fbb300f3e484dd23bafb37a1f2a07782.png

It should use 192.168.1.210 via br0!

 

I can't delete the default route via GUI, so I do it after every reboot by hand via SSH.

 

What am I doing wrong?

  • Community Expert

I misunderstood your issue, sorry, not a network guy so something I can't help with.

  • Author

I've pinned the issue down to all the dockers with a static IP address and br0 as their network. They can't resolve any address. What am I missing? Do I have to configure the second NIC any different to not intervene with the traffic of br0 or sth like that?

 

Has anyone an idea?

  • Author

I've solved the docker issue for now. I changed the following setting:

image.thumb.png.e6e688a24d40b7390d672dc6c4da58eb.png

There was a second entry for br1  with no gateway etc. I've unchecked the entry and restarted the docker service. The dockers are resolving the addresses correctly now. I have no clue, why a docker with an IP in the 192.168.1.0/24 net would try to communicate via br1 and its not available gateway. It's a mystery to me.

My problem from the first post isn't resolved yet. Maybe someone could help? Thanks a lot in advance!

Edited by pappaq

  • 3 months later...

I have the same problem. I added an additional physical NIC for a lab network. I only used the interface for a short while and do not have anything operating on that network anymore. The cable is disconnected and the interface shutdown. However, every time the server reboots it starts up with the default route assigned to the secondary NIC. I have to manually add the default route to the primary gateway and shutdown the secondary NIC.
 

It happens every reboot.

  • 11 months later...

I have the same exact problem.   My main network is 10.168.10.0/24 which on my unraid box is on the br0 interface.  As well, I have interfaces for non-internet accessible VLans (br2, br2.200).  Whenever I reboot, unraid changes my default route to the 10.168.200.1 IP address on the br2.00 vlan interface. 

 

I can add a default route to the 10.168.10.1 address using the GUI, but I can't remove the default one on  br2.200.  I have to SSH in and run the command

root@Nas:~# route del -net 0.0.0.0 gw 10.168.200.1

 

This happens on every reboot, with no way to have the default I set stick to 10.168.10.1 after a reboot. 

Edited by Xoron

  • 1 month later...

I am having the same issue as well. I've deleted my network config on my flash drive multiple times but it always wants to use my secondary NIC as the primary default route upon reboot. Does anyone have a fix?

Edited by obowan

  • 2 years later...

Is there a solution for that?

I have the same Issue, on every reboot my default route go back to the NIC in the PCI card instead of the integrated.

 

Thanks

  • Community Expert
6 hours ago, lecrote said:

I have the same Issue, on every reboot my default route go back to the NIC in the PCI card instead of the integrated.

Do you have the integrated NIC set as eth0?

Yes. 

I fix the issue by removing the gateway on the second nic. 

When both nic has gateway second nic was alway use

  • Community Expert

You can only use one gateway, or it will cause issues

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.