[systemd-devel] working with PrivateNetwork=yes
Mantas Mikulėnas
grawity at gmail.com
Sun Aug 9 04:38:28 PDT 2015
systemd does not assign names to the namespaces – this is mostly an 'ip'
thing, though it has been requested for systemd earlier.
If you know a PID which is in that namespace (e.g. from 'systemctl show'),
you can use 'nsenter --net' to switch into that namespace.)
# nsenter --net --target $PID
You can also make it show up in 'ip netns' with the following:
# touch /run/netns/foobar
# mount --bind /proc/$PID/ns/net /run/netns/foobar
(However, if all involved services are stopped and then restarted, systemd
will not try to reuse the same netns (it doesn't care about the names), it
will just create a new one, and you'll have to re-do the above.)
--
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150809/38887cdd/attachment.html>
More information about the systemd-devel
mailing list