diff options
author | Benjamin Thery <benjamin.thery@bull.net> | 2008-06-20 11:07:35 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-23 09:10:47 -0700 |
commit | e2613dc8605e56dbc53890ebbae263f93610bd41 (patch) | |
tree | fd7fba9615c735117bceb4e1068eb44ef18a0559 /man | |
parent | ae76106841d764fc64188e78f5c2a2575fba725e (diff) |
iproute2: add support for IFLA_NET_NS_PID in ip link
Hi Stephen,
I resend you this patch once more. This time I updated the documentation
too (may be that was the reason why you didn't take it before?).
Please tell me if there are other things missing in this patch
It applies on iproute2 git tree.
Regards,
Benjamin
Description:
------------
This patch adds support for the IFLA_NET_NS_PID type. It is used to
move network devices between network namespaces.
The syntax is:
ip link set DEVICE netns PID
PID is the pid of a process in the target network namespace.
(Daniel Lezcano is the original author).
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/man8/ip.8 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/man/man8/ip.8 b/man/man8/ip.8 index da314f39..2097317c 100644 --- a/man/man8/ip.8 +++ b/man/man8/ip.8 @@ -50,7 +50,10 @@ ip \- show / manipulate routing, devices, policy routing and tunnels .IR LLADDR " |" .br .B mtu -.IR MTU " }" +.IR MTU " |" +.br +.B netns +.IR PID " }" .ti -8 .B ip link show @@ -873,6 +876,11 @@ change the link layer broadcast address or the peer address when the interface is .IR "POINTOPOINT" . +.TP +.BI netns " PID" +move the device to the network namespace associated with the process +.IR "PID" . + .PP .B Warning: If multiple parameter changes are requested, |