Replies: 1 comment
-
My understanding is that the script is needed as it creates the host bridge (gw) and adds the (host)route for the container. nspawn is then bound to this vlan, and creates its own network interface inside it. (but I am not considering myself to be an expert on this) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When going through the setup of nspawn containers and getting a container running. Option 2A specifies that one can set up a MacVLAN to give the container its own MAC, etc. Now the docs say to download the script, configure it and then execute it, apart from its secondary functions for DNSmasq and forcing DNS to pass through the container, the script sets up a MacVLAN attached to the desired interface. Is this really necessary? The nspawn configuration provided sets
MACVLAN
tobr5
, not thebr5.mac
created. Additionally the systemd nspawn docs say that theMACVLAN=
option simply indicates to nspawn which interface the MACVLAN it creates should be attached to.The docs seem to imply that nspawn creates its own macvlan interface. I'm therefore a little confused, does the script really need to make its own MacVLAN?
Beta Was this translation helpful? Give feedback.
All reactions