ip link add veth0 type veth peer name veth1

Category: Local Network & Public Hosting

ip link add veth0 type veth peer name veth1

Create a virtual Ethernet pair

A veth pair is a virtual cable with two ends, and this creates veth0 and veth1 where every packet sent into one end emerges from the other. Pairs are the plumbing that connects a network namespace to the host or a bridge. Remove both ends with ip link del veth0.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.