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:
Michael Kerrisk 2017-10-19 19:09:55 +02:00
parent 334299e22f
commit 5d1efadb0b
1 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,15 @@ A particularly interesting use case is to place one end of a
.B veth
pair in one network namespace and the other end in another network namespace,
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
.BR ethtool (8)
can be used to find the peer of a