mirror of https://github.com/mkerrisk/man-pages
veth.4: SHow command used to move a veth device into another network namespace
Reported-by: Tomas Pospisek <tpo@sourcepole.ch> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
334299e22f
commit
5d1efadb0b
|
@ -61,6 +61,15 @@ A particularly interesting use case is to place one end of a
|
||||||
.B veth
|
.B veth
|
||||||
pair in one network namespace and the other end in another network namespace,
|
pair in one network namespace and the other end in another network namespace,
|
||||||
thus allowing communication between network namespaces.
|
thus allowing communication between network namespaces.
|
||||||
|
To do this, one first creates the
|
||||||
|
.B veth
|
||||||
|
device as above and then moves one side of the pair to the other namespace:
|
||||||
|
.PP
|
||||||
|
.in +4n
|
||||||
|
.EX
|
||||||
|
# ip link set <p2-name> netns <p2-namespace>
|
||||||
|
.EE
|
||||||
|
.in
|
||||||
.PP
|
.PP
|
||||||
.BR ethtool (8)
|
.BR ethtool (8)
|
||||||
can be used to find the peer of a
|
can be used to find the peer of a
|
||||||
|
|
Loading…
Reference in New Issue