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.

Network br0 not exists after restart

Featured Replies

HEllo i have a problem.

Everytime my unraid server starts, the network interface br0 is missing and therefore the docker container wouldn't start.

 

I have to manually add them everytime - after this everythings works correct.

 

But the problem is if the server starts because of a long power interruption - no containter is started.

 

How to fix this?

  • Community Expert

Are you sure you don't have something wrong in your Network Settings?

 

How are you manually adding them? It shouldn't be necessary to work at the command line for this.

I had the same problem:

Solfed it with this User Script on array start

#!/bin/bash
docker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=br0 br0

With the last Update the Problem went away

Cheers

Gesendet von meinem Redmi Note 8 Pro mit Tapatalk

You should never use a script to create the br0 network.

 

The br0 network is automatically created when the docker service is started.

If docker can not create the network, an error is logged in the syslog.

Post diagnostics so we can check.

  • Author

i didn't change something in network settings 

 

everytime i reboot i have to connect with telnet and execute following script

rm /var/lib/docker/network/files/local-kv.db
/etc/rc.d/rc.docker restart

after this the br0 interface exists

 

Diagnostic File is attached

hal9000-diagnostics-20200218-1924.zip

Your system doesn't get a proper IP address assigned when starting up.

The reason is the interface goes down while inquiring for an IP address.

This prevents docker from assigning br0 as valid network

 

Disable "bonding" in your network configuration and retest.

 

It is also recommended to update to Unraid 6.8.2

  • Author

did both update and disabled bonding, now after reboot all works.

 

 

thanks

  • 2 years later...

@bonienl Raising this one from the dead. What if this machine is running pfSense in a VM. (it's normat that it does not have an IP at startup)
any elegant solution for such cases if running a script to create br0 is not advisable?

20 hours ago, costianuv said:

What if this machine is running pfSense in a VM. (it's normat that it does not have an IP at startup)

Not normal. I run pfSense as a VM, and don't have any of the listed issues.

 

Running your gateway as a VM can cause issues, but not if you have things configured to account for them. In my case, Unraid has a 10GB interface with a fixed IP connected to the main switch, and the pfSense VM has 2 1GB connections passed through, the WAN assigned interface connected to the modem, the LAN assigned interface connected to the same switch as the 10GB. Other than not having DNS and WAN connectivity until the VM is running, Unraid handles it just fine.

Ah. I see. That did the trick! Had DHCP assignment burned into my mind as the only viable way to get an IP. 😅

Thank you!

2 hours ago, costianuv said:

Ah. I see. That did the trick! Had DHCP assignment burned into my mind as the only viable way to get an IP. 😅

Thank you!

It's the best way, preferably with static assignments handed out by the router's DHCP service. That way you only have a single place to update things to manage your IP's. However, when the DHCP service is managed by a VM, you are forced into setting it on the host manually. I still have the assignment in the router's DHCP table, as I keep a standalone PC ready to take over the pfSense duties if the server ever needs more than a few minutes downtime. Keeping 2 pfSense instances synced is easy.

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.