man ip-link: Add notice about local netns devices
Subsystems (2)
PATCH 1/1 man ip-link: Add notice about local netns devices
From: Vadim Kochan <[email protected]>
Added some clarification why 'ip link set netns' can not change network namespace for some kind of devices.
Signed-off-by Vadim Kochan <[email protected]>
--- man/man8/ip-link.8.in | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-)
man/man8/ip-link.8.in +22 -7
@@ -660,14 +660,29 @@ the interface is .IR "POINTOPOINT" . .TP -.BI netns " PID" -move the device to the network namespace associated with the process -.IR "PID". - -.TP -.BI netns " NETNSNAME" +.BI netns " NETNSNAME " \fR| " PID" move the device to the network namespace associated with name -.IR "NETNSNAME". +.IR "NETNSNAME " or +.RI process " PID". + +Some devices are not allowed to change network namespace: loopback, bridge, +ppp, wireless. These are network namespace local devices. In such case +.B ip +tool will return "Invalid argument" error. It is possible to find out if device is local +to a single network namespace by checking +.B netns-local +flag in the output of the +.BR ethtool ":" + +.in +8 +.B ethtool -k +.I DEVICE +.in -8 + +To change network namespace for wireless devices the +.B iw +tool can be used. But it allows to change network namespace only for physical devices and by process +.IR PID . .TP .BI alias " NAME"
Signature · 1 line
2.2.2
Stephen Hemminger
AppliedQuoted 6 lines · On Wed, 25 Feb 2015 15:46:22 +0200 Vadim Kochan <[email protected]> wrote:
From: Vadim Kochan <[email protected]>
Added some clarification why 'ip link set netns' can not change network namespace for some kind of devices.
Signed-off-by Vadim Kochan <[email protected]>
Applied