Jump to content

VLAN subnet is not available as docker custom networks


Recommended Posts

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
Link to comment

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
Link to comment
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

 

Link to comment
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

 

Link to comment
  • 9 months later...
  • 2 months later...

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...