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.

VLAN subnet is not available as docker custom networks

Featured Replies

I enabled VLAN in network configuration, but the vlan custom network in docker is not present.

 

I configured the 254 vlan on my router, and seems to works.

If I ping 192.168.254.1 from a client in my network it's reply, but If I try to ping it from my unraid terminal, it is not reachable.

 

Anyone can help me? Thanks

 

 

 

1014600872_Screenshot2023-04-13at14_11_09.thumb.png.2bea250bef02cc7a1739302751dfdf51.png

 

1215682141_Screenshot2023-04-13at14_12_44.thumb.png.81e06be0316619ded036ebb9b75d8429.png

 

1110659266_Screenshot2023-04-13at14_12_32.thumb.png.299338240736a790609e71843ab7a4dc.png

 

 

No problem on VMs:

 

530647531_Screenshot2023-04-13at14_46_46.thumb.png.ecebac0bf896f6ee7f55a0e7211cfa59.png

 

 

Edited by Surfparadise

Make sure you also have the vlan enabled on the settings > docker page.
First define vlan in settings > network settings

Then go to settings > docker
Stop the docker service
add the vlan

start the docker service


Now you should see it when you're adding containers.

Might have to make sure to click the little "advanced" tab in the top right, don't remember if you need to be in advanced or not.

Edited by samsausages

  • Author
2 minutes ago, samsausages said:

Make sure you also have the vlan enabled on the settings > docker page.
First define vlan in settings > network settings

Then go to settings > docker
Stop the docker service
add the vlan

start the docker service


Now you should see it when you're adding containers.

 

Seems to be ok:

 

2136277678_Screenshot2023-04-13at14_48_59.thumb.png.04127e01013ccc6f024c4a1fa7a49d85.png

 

Only differences from mine, I define my gateway.  I have "preserve user defined networks" set to yes.

Also, use ipvlan, and do not use macvlan.  macvlan is considered buggy right now and new versions default to ipvlan.

  • Author
Just now, samsausages said:

Only differences from mine, I define my gateway.  I have "preserve user defined networks" set to yes.

Also, use ipvlan, and do not use macvlan.  macvlan is considered buggy right now and new versions default to ipvlan.

 

I found this in the unraid logs:

 

Apr 13 14:05:34 Unraid root: Error response from daemon: failed to allocate secondary ip address (server:192.168.254.0): Address already in use

 

My Network settings for my vlans look like this:
image.png.388782563adef4e6645db4b269958452.png

FYI, I don't have any routes defined in my routing table for my vlans.
image.thumb.png.8c4a6973b08c5d7ab29fae4e95796768.png

 

I manually define IP addresses for each container I put on my vlans, I don't use DHCP.

  • Author
46 minutes ago, samsausages said:

My Network settings for my vlans look like this:
image.png.388782563adef4e6645db4b269958452.png

FYI, I don't have any routes defined in my routing table for my vlans.
image.thumb.png.8c4a6973b08c5d7ab29fae4e95796768.png

 

I manually define IP addresses for each container I put on my vlans, I don't use DHCP.

 

Fixed!:

 

1560956706_Screenshot2023-04-13at15_56_53.thumb.png.4f0c5b7fda05a09793314075920c8041.png

 

 

1788391255_Screenshot2023-04-13at15_57_04.thumb.png.c412ccff73cd04a19d578e0164c3142c.png

 

1164820044_Screenshot2023-04-13at15_57_15.png.1e6a1b99923bbc281c2e594745b27a98.png

 

awesome!

  • 9 months later...

 

Hello, I had the same problem. I solved it this way:

Unraid IP 192.168.1.20/16, GW 192.168.0.1 metric 1

VLAN IP 10.0.0.20/24, GW 10.0.0.1 metric 2

  • 2 months later...

I am having this same problem where the VLANs are not showing up. The following VLANs do not show up in the list for the individual docker container. 

 

image.thumb.png.831f38098f2c5c428f1d43964028b5a3.png

Got it to work by setting the IPv4 Address Assignment for VLANs under Settings page to be None

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.