]> git.ipfire.org Git - thirdparty/man-pages.git/commit
veth.4: Add a more direct example
authorDevin J. Pohly <djpohly@gmail.com>
Mon, 18 May 2020 20:58:28 +0000 (15:58 -0500)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 19 May 2020 19:53:28 +0000 (21:53 +0200)
commit1b0b13fe97e372d5f234ab87de5afaa1df7b80fd
tree0dd67c9219510ebdb3243d25726f773b2b91aeb3
parent3514b9beba14f4bf02eb63dc304212683baeebe9
veth.4: Add a more direct example

iproute2 allows you to specify the netns for either side of a veth
interface at creation time.  Add an example of this to veth(4) so
it doesn't sound like you have to move the interfaces in a
separate step.

Verified with commands:
    # ip netns add alpha
    # ip netns add bravo
    # ip link add foo netns alpha type veth peer bar netns bravo
    # ip -n alpha link show
    # ip -n bravo link show

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man4/veth.4