<p dir="ltr">systemd does not assign names to the namespaces – this is mostly an 'ip' thing, though it has been requested for systemd earlier.</p>
<p dir="ltr">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.)</p>
<p dir="ltr"># nsenter --net --target $PID</p>
<p dir="ltr">You can also make it show up in 'ip netns' with the following:</p>
<p dir="ltr"># touch /run/netns/foobar<br>
# mount --bind /proc/$PID/ns/net /run/netns/foobar</p>
<p dir="ltr">(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.)</p>
<p dir="ltr">-- <br>
Mantas Mikulėnas</p>