Assign a Secondary NIC to Jail? #106
-
Couldn't find a clear answer on this, so wanted to make sure. I'm setting up Jailmaker specifically to use the typical docker/compose/Portainer stack setup for my apps as I migrate to SCALE. My motherboard has two NICs on it, and I would like to be able to use the second NIC for the Docker jail exclusively, including having VLANs within the jail. What would be the best method for doing this - is there a way to just pass the whole thing to the Jail? Can I just pass |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well, they say there's no idiot like an old idiot, and here I am proving it. After I posted I realized all I had searched on was Jailmaker, not systemd-nspawn itself - so I tried that and got the answer. You can bind existing interfaces with So the short version is, yes, you can assign a physical interface to a jail. Sorry for the noise, hopefully it helps someone else out down the road. |
Beta Was this translation helpful? Give feedback.
Well, they say there's no idiot like an old idiot, and here I am proving it. After I posted I realized all I had searched on was Jailmaker, not systemd-nspawn itself - so I tried that and got the answer. You can bind existing interfaces with
--network-interface=<ifname>
.So the short version is, yes, you can assign a physical interface to a jail. Sorry for the noise, hopefully it helps someone else out down the road.