systemd supports network namespaces with PrivateNetwork=yes and JoinsNamespaceOf=. With a little trick, the namespace created by systemd can be made available to ip netns (as shown in systemd/systemd#2741).
Each network namespace gets its own service unit and network configuration is handled by ifupdown instead of a custom script.
systemd supports network namespaces with
PrivateNetwork=yes
andJoinsNamespaceOf=
. With a little trick, the namespace created by systemd can be made available toip netns
(as shown in systemd/systemd#2741).Each network namespace gets its own service unit and network configuration is handled by
ifupdown
instead of a custom script.