From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: veth(4) draft manual page Date: Wed, 18 Oct 2017 09:49:59 +0200 Message-ID: Reply-To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tomas Pospisek Cc: "Eric W. Biederman" , linux-man , Pavel Emelyanov List-Id: linux-man@vger.kernel.org Hello all, Long ago (http://www.spinics.net/lists/linux-man/msg03193.html), Tom=C3=A1= =C5=A1 started work on a veth.4 page, and Eric through in some comments as well, but the effort to complete the page petered out. I decided to take a shot at picking up what was said so far completing it. Are there any comments on the page below? Cheers, Michael veth(4) Linux Programmer's Manual veth(4) NAME veth - Virtual Ethernet Device DESCRIPTION The veth devices are virtual Ethernet devices. They can act as tunnels between network namespaces to create a bridge to a physi=E2= =80=90 cal network device in another namespace, but can also be used as standalone network devices. veth devices are always created in interconnected pairs. A pair can be created using the command: # ip link add type veth peer name In the above, p1-name and p2-name are the names assigned to the two connected end points. Packets transmitted on one device in the pair are immediately received on the other device. When either devices is down the link state of the pair is down. veth device pairs are useful for combining the network facilities of the kernel together in interesting ways. A particularly inter=E2= =80=90 esting use case is to place one end of a veth pair in one network namespace and the other end in another network namespace, thus allowing communication between network namespaces. ethtool(8) can be used to find the peer of a veth network inter=E2= =80=90 face, using commands something like: # ip link add ve_A type veth peer name ve_B # Create veth pair # ethtool -S ve_A # Discover interface index of peer NIC statistics: peer_ifindex: 16 # ip link | grep '^16:' # Look up interface 16: ve_B@ve_A: mtu 1500 qdisc ... SEE ALSO clone(2), ip(8), ip-link(8), ip-netns(8) --=20 Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html