2
1
I'd like to create a new network namespace on Linux.
http://www.spinics.net/lists/linux-containers/msg10895.html tells me that I can attach a shell to an existing namespace with ID X by running:
$ chnetns X /bin/sh
This works fine if the namespace already exists, but if I try with a non-existent namespace, I get the following:
$ chnetns 100 /bin/sh
setsocketopt: Invalid argument
How can I create the namespace? I'm on Red Hat Linux, V6.1.
Quite an old question but I had need of an introduction to linux network namespaces / virtual networking myself. – gaoithe – 2014-09-26T11:36:00.030