2012/11/28 David Shwatrz [off-list ref]:
Hello,
How to I move an interface back to the original namespace ?
I created three namespaces:
ip netns add namespace1
ip netns add namespace2
ip netns add namespace3
And move eth0 to namespace1:
ip link set eth0 netns namespace1
How do I return it back to the original, default network namespace ? (init_net)
# ip link set eth0 netns 1
The 'netns' argument can be either a netns name or a process ID (pid).
Providing a pid, you'll be moving the interface to the netns of the
given process, which is the initial network namespace for pid = 1 (the
init process).
--
Renato Westphal