ip netns add ns1
ip netns add ns2
ip netns show
ip link add veth11 type veth peer name veth12
ip link set veth12 netns ns1
ip link set veth11 up
ip netns exec ns1 ip link set veth12 up
ip link add veth21 type veth peer name veth22
ip link set veth22 netns ns2
ip link set veth21 up
ip netns exec ns2 ip link set veth22 up
ovs-vsctl add-port sw1 veth11
ovs-vsctl add-port sw1 veth21
ovs-vsctl show
ip netns exec ns1 ip addr add 1.1.1.1/24 dev veth12
ip netns exec ns1 ifconfig veth12
ip netns exec ns2 ip add add 1.1.1.2/24 dev veth22
ip netns exec ns2 ifconfig veth22
ip netns exec ns1 ping -c 5 1.1.1.2
ip netns exec ns2 ping -c 5 1.1.1.1
tc qdisc add dev br0 root netem delay 500ms
tc qdisc delete dev br0 root netem delay 500ms