sudo ip link set veth-host up sudo ip netns exec mynamespace ip link set veth-ns up
sudo ip link add veth-host type veth peer name veth-ns virtual network adapter
sudo ip link set veth-ns netns mynamespace sudo ip link set veth-host up sudo ip
Virtual network adapters operate by abstracting networking functions from the underlying hardware. Instead of a physical cable plugged into a port, the virtual adapter connects to a . virtual network adapter