</pre>
====ネットワークを作成して接続====
----
*2つのNetwork Namespaceを作成
<pre>
$ sudo ip netns exec ns1 ip link set ns1-veth0 up
$ sudo ip netns exec ns2 ip link set ns2-veth0 up
</pre>
*疎通
<pre>
$ sudo ip netns exec ns1 ping 192.0.2.2 -c 3
PING 192.0.2.2 (192.0.2.2) 56(84) bytes of data.
64 bytes from 192.0.2.2: icmp_seq=1 ttl=64 time=0.334 ms
64 bytes from 192.0.2.2: icmp_seq=2 ttl=64 time=0.101 ms
64 bytes from 192.0.2.2: icmp_seq=3 ttl=64 time=0.091 ms
--- 192.0.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2051ms
rtt min/avg/max/mdev = 0.091/0.175/0.334/0.112 ms
</pre>