April 11, 20251 yr Hello everyone, My current setup is the following. I have a router which is connect to a switch using sfp+ and unraid is connected using another sfp+ port. In dockers, I use either a custom my-bridge I created, eth0 to have dedicated ip or host network. I have a vm on vhost3 that have it's own ip on the same network as unraid server. This all work great. Now, I have a second nic on my router and my unraid server. I plan to create a vlan on that nic and send it to unraid. I don't need unraid server to have an ip on that network, but I would like to be able to have vms and dockers on that network. Is it possible to have something like host network on that network? Right now, I see in docker even after installing a second nic: - bridge - host - container - none - custom eth0 - custom eth1.10 - custom my-bridge I guess I will have to create the network myself? Something like my-bridge2? But how do I say to docker this network goes out that nic? Thank you
April 13, 20251 yr Unraid needs an IP on the nic in order to route through it, unless perhaps it's assigned to a VM and not used for dockers. Otherwise you can just segment multiple vlans on the sfp+.
April 13, 20251 yr Author The bad understanding I had was that host and my custom bridge where tied to the non vlan ip of the first cars. But I found out that it's listening on every interface. This changed my idea on how I'm going to do all of that.
April 13, 20251 yr Most of my dockers are directly receiving ips on their assigned vlan (macvoan setup). No custom bridge. I've had as many as four physical interfaces (all different vlans) and tried other approaches but cut two for power saving (dial sfp+ is more than enough bandwidth). This has been the most stable as well.
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.