Thread (4 messages) flat view 4 messages, 3 authors, 2012-11-28

Re: Move an interface to init_ne

From: Renato Westphal <hidden>
Date: 2012-11-28 15:01:42

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help