Manipulation de netnamespace

Written by admin on April 29, 2013 Categories: Linux Tags: , ,
root@x64lmwbidab:~# ip netns add toto
root@x64lmwbidab:~# ip netns exec toto ip a s
 5: lo: <LOOPBACK> mtu 16436 qdisc noop state DOWN
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
root@x64lmwbidab:~# ip netns exec toto tunctl -t toto01
 Set 'toto01' persistent and owned by uid 0
root@x64lmwbidab:~# ip netns exec toto ip l s toto01 up
root@x64lmwbidab:~# ip netns exec toto ip a a 192.168.0.1/24 dev toto01
root@x64lmwbidab:~# ip netns exec toto ip a s
 5: lo: <LOOPBACK> mtu 16436 qdisc noop state DOWN
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 7: toto01: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
 link/ether fe:7d:37:af:81:01 brd ff:ff:ff:ff:ff:ff
 inet 192.168.0.1/24 scope global toto01
No Comments on Manipulation de netnamespace

Leave a Reply

Your email address will not be published. Required fields are marked *