Script started on Wed 19 Oct 2011 04:59:36 PM EDT root@sphinx:/home/cg2v# perl testns.pl Parent: Start container Parent: Container started pid 2605 Child: starting Child: container starting 34: vethr: mtu 1500 qdisc noop state DOWN qlen 1000 35: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: running ip link set vethr netns 2605 35: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: Moved vethr, parent pinging child PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. Child: setting ip addresses 34: vethr: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:ff:aa:ff:9b:69 brd ff:ff:ff:ff:ff:ff 36: lo: mtu 16436 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Child: pinging parent and running conntrack conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.040 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms From 10.99.99.1 icmp_seq=1 Destination Host Unreachable From 10.99.99.1 icmp_seq=2 Destination Host Unreachable From 10.99.99.1 icmp_seq=3 Destination Host Unreachable 64 bytes from 10.99.99.2: icmp_req=4 ttl=64 time=19.9 ms icmp 1 29 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2615 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2615 mark=0 use=1 icmp 1 29 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2632 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2632 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 2 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.016 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.016/0.016/0.016/0.000 ms 64 bytes from 10.99.99.2: icmp_req=5 ttl=64 time=0.017 ms --- 10.99.99.2 ping statistics --- 5 packets transmitted, 2 received, +3 errors, 60% packet loss, time 4007ms rtt min/avg/max/mdev = 0.017/9.989/19.962/9.973 ms, pipe 3 Parent: Moved vethr, ping done icmp 1 28 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2615 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2615 mark=0 use=1 icmp 1 29 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2634 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2634 mark=0 use=1 icmp 1 28 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2632 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2632 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 3 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.016 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.016/0.016/0.016/0.000 ms icmp 1 28 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2636 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2636 mark=0 use=1 icmp 1 27 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2615 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2615 mark=0 use=1 icmp 1 27 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2634 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2634 mark=0 use=1 icmp 1 26 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2632 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2632 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 4 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.017 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.017/0.017/0.017/0.000 ms RTNETLINK answers: File exists RTNETLINK answers: File exists Parent: Start container Parent: Container started pid 2643 Child: starting Child: container starting 35: vethl: mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: running ip link set vethr netns 2643 Cannot find device "vethr" WARNING!: ip link netns failed Parent: Moved vethr, parent pinging child PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. Child: setting ip addresses Cannot find device "vethr" 37: lo: mtu 16436 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Cannot find device "vethr" Child: pinging parent and running conntrack conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable --- 10.99.99.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4004ms Parent: Moved vethr, ping done conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable Parent: Start container Parent: Container started pid 2716 Child: starting Child: container starting 38: vethr: mtu 1500 qdisc noop state DOWN qlen 1000 39: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: running ip link set vethr netns 2716 39: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: Moved vethr, parent pinging child PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. Child: setting ip addresses 38: vethr: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether c6:ae:c6:1e:e7:4a brd ff:ff:ff:ff:ff:ff 40: lo: mtu 16436 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Child: pinging parent and running conntrack conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.037 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.037/0.037/0.037/0.000 ms From 10.99.99.1 icmp_seq=1 Destination Host Unreachable From 10.99.99.1 icmp_seq=2 Destination Host Unreachable From 10.99.99.1 icmp_seq=3 Destination Host Unreachable 64 bytes from 10.99.99.2: icmp_req=4 ttl=64 time=9.96 ms icmp 1 29 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2741 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2741 mark=0 use=1 icmp 1 29 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2724 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2724 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 2 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.015 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.015/0.015/0.015/0.000 ms 64 bytes from 10.99.99.2: icmp_req=5 ttl=64 time=0.017 ms --- 10.99.99.2 ping statistics --- 5 packets transmitted, 2 received, +3 errors, 60% packet loss, time 4007ms rtt min/avg/max/mdev = 0.017/4.991/9.966/4.975 ms, pipe 3 Parent: Moved vethr, ping done icmp 1 29 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2743 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2743 mark=0 use=1 icmp 1 28 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2741 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2741 mark=0 use=1 icmp 1 28 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2724 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2724 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 3 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.015 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.015/0.015/0.015/0.000 ms icmp 1 29 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2745 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2745 mark=0 use=1 icmp 1 28 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2743 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2743 mark=0 use=1 icmp 1 27 src=10.99.99.2 dst=10.99.99.2 type=8 code=0 id=2741 src=10.99.99.2 dst=10.99.99.2 type=0 code=0 id=2741 mark=0 use=1 icmp 1 27 src=10.99.99.1 dst=10.99.99.2 type=8 code=0 id=2724 src=10.99.99.2 dst=10.99.99.1 type=0 code=0 id=2724 mark=0 use=1 conntrack v0.9.14 (conntrack-tools): 4 flow entries have been shown. PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. 64 bytes from 10.99.99.2: icmp_req=1 ttl=64 time=0.014 ms --- 10.99.99.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.014/0.014/0.014/0.000 ms RTNETLINK answers: File exists RTNETLINK answers: File exists Parent: Start container Parent: Container started pid 2752 Child: starting Child: container starting 39: vethl: mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: running ip link set vethr netns 2752 Cannot find device "vethr" WARNING!: ip link netns failed Parent: Moved vethr, parent pinging child PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. Child: setting ip addresses Cannot find device "vethr" 41: lo: mtu 16436 qdisc noop state DOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Cannot find device "vethr" Child: pinging parent and running conntrack conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable --- 10.99.99.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4004ms Parent: Moved vethr, ping done conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown. connect: Network is unreachable Parent: Start container Parent: Container started pid 2826 Child: starting Child: container starting 42: vethr: mtu 1500 qdisc noop state DOWN qlen 1000 43: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: running ip link set vethr netns 2826 43: vethl: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 inet 10.99.99.1/24 scope global vethl Parent: Moved vethr, parent pinging child PING 10.99.99.2 (10.99.99.2) 56(84) bytes of data. ^C --- 10.99.99.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1005ms Parent: Moved vethr, ping done ^C Script done on Wed 19 Oct 2011 05:00:45 PM EDT