use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins bash ./runtest.sh /etc/pki/ca-trust/source/anchors /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func --2023-01-29 17:02:32-- https://password.corp.redhat.com/legacy.crt Resolving password.corp.redhat.com (password.corp.redhat.com)... 10.2.111.154 Connecting to password.corp.redhat.com (password.corp.redhat.com)|10.2.111.154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1338 (1.3K) Saving to: ‘legacy.crt.1’ 0K . 100% 12.7M=0s 2023-01-29 17:02:32 (12.7 MB/s) - ‘legacy.crt.1’ saved [1338/1338] --2023-01-29 17:02:32-- https://password.corp.redhat.com/RH-IT-Root-CA.crt Resolving password.corp.redhat.com (password.corp.redhat.com)... 10.2.111.154 Connecting to password.corp.redhat.com (password.corp.redhat.com)|10.2.111.154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1517 (1.5K) Saving to: ‘RH-IT-Root-CA.crt.1’ 0K . 100% 16.6M=0s 2023-01-29 17:02:32 (16.6 MB/s) - ‘RH-IT-Root-CA.crt.1’ saved [1517/1517] /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/common /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: modprobe: FATAL: Module bridge is in use. :: [ 17:02:33 ] :: [ BEGIN ] :: Running 'nl_fib_lookup_install' Last metadata expiration check: 0:37:58 ago on Sun 29 Jan 2023 04:24:36 PM EST. Package libnl3-3.7.0-3.fc38.s390x is already installed. Package libnl3-devel-3.7.0-3.fc38.s390x is already installed. Dependencies resolved. Nothing to do. Complete! /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func/tools /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func /mnt/tests/gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/archive/main/kernel-tests-main.zip/networking/route/route_func :: [ 17:02:36 ] :: [ PASS ] :: Command 'nl_fib_lookup_install' (Expected 0, got 0) :: [ 17:02:36 ] :: [ LOG ] :: test_items:route_prefix_test route_selector_test route_options_test route_addr_test rule_test :: [ 17:02:36 ] :: [ LOG ] :: test_topo:default :: [ 17:02:36 ] :: [ LOG ] :: test_type:netns :: [ 17:02:36 ] :: [ LOG ] :: route_mode:forward :: [ 17:02:36 ] :: [ BEGIN ] :: Running 'default_forward_setup' net.ipv4.conf.all.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.all.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.eth0r0.rp_filter = 0 net.ipv4.conf.eth1r0.rp_filter = 0 net.ipv4.conf.veth0_r.rp_filter = 0 net.ipv4.ip_forward_use_pmtu = 1 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.eth0r0_r.rp_filter = 0 net.ipv4.conf.eth1r0_r.rp_filter = 0 net.ipv4.conf.veth2_r.rp_filter = 0 net.ipv4.ip_forward_use_pmtu = 1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.053 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.162 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.070 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.131 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.119 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4159ms rtt min/avg/max/mdev = 0.053/0.107/0.162/0.040 ms PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.136 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.154 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.104 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.124 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.129 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4187ms rtt min/avg/max/mdev = 0.104/0.129/0.154/0.016 ms :: [ 17:02:44 ] :: [ PASS ] :: Command 'default_forward_setup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 11s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Setup) ** Setup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Prefix netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:02:45 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Selector netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:02:45 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route_Options netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:02:45 ] :: [ LOG ] :: ROUTE_MODE:forward not local, return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Route Addr netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [17:02:45][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:02:46 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:02:48 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:02:48 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:02:48][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.102 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.109 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.133 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.132 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.181 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4091ms rtt min/avg/max/mdev = 0.102/0.131/0.181/0.027 ms :: [ 17:02:52 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:02:52 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 17:02:55 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 17:02:55 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:02:55][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 14 packets captured 14 packets received by filter 0 packets dropped by kernel :: [ 17:02:55 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 17:02:55 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:02:57 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 17:02:48.317130 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 65413, seq 1, length 64 17:02:49.328045 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 65413, seq 2, length 64 17:02:50.329518 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 65413, seq 3, length 64 17:02:51.407359 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 65413, seq 4, length 64 17:02:52.408609 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 65413, seq 5, length 64 :: [ 17:02:57 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [17:02:57][root]# echo 'ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 17:02:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' [17:02:57][root]# echo 'ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:02:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route list' [17:02:57][root]# echo 'ip -4 route list' | ip netns exec route0 bash default via 10.0.0.2 dev eth0r0 10.0.0.0/24 dev eth0r0 proto kernel scope link src 10.0.0.1 10.1.1.0/24 dev eth1r0 proto kernel scope link src 10.1.1.1 192.168.0.0/24 dev veth0_r proto kernel scope link src 192.168.0.254 192.168.1.1 via 10.1.1.2 dev eth1r0 :: [ 17:02:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route list' (Expected 0, got 0) :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1' [17:02:57][root]# echo 'ip -4 route get 192.168.1.1' | ip netns exec route0 bash 192.168.1.1 via 10.1.1.2 dev eth1r0 src 10.1.1.1 uid 0 cache :: [ 17:02:57 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1' (Expected 0, got 0) [17:02:57][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash :: [ 17:02:57 ] :: [ BEGIN ] :: Running 'sleep 2' dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:02:59 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:02:59 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:02:59][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.082 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.115 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.132 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.163 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.110 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4149ms rtt min/avg/max/mdev = 0.082/0.120/0.163/0.026 ms :: [ 17:03:04 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:03:04 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 17:03:07 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 17:03:07 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:03:07][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 17:03:07 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 17:03:07 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:09 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:09 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' 17:02:59.870402 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 35366, seq 1, length 64 17:03:00.927303 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 35366, seq 2, length 64 17:03:01.975151 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 35366, seq 3, length 64 17:03:03.017879 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 35366, seq 4, length 64 17:03:04.019180 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 35366, seq 5, length 64 :: [ 17:03:09 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:03:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [17:03:09][root]# echo 'ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 17:03:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 17:03:09 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' [17:03:09][root]# echo 'ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash RTNETLINK answers: No such process :: [ 17:03:09 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del 192.168.1.1 dev eth1r0 via 10.1.1.2' (Expected 0-255, got 2) [17:03:09][root]# echo 'nohup tcpdump -U -i eth0r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:03:10 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:12 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:12 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:03:12][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.148 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.110 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.141 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.132 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.138 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4113ms rtt min/avg/max/mdev = 0.110/0.133/0.148/0.013 ms :: [ 17:03:16 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:03:16 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 17:03:19 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 17:03:19 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:03:19][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 10 packets captured 10 packets received by filter 0 packets dropped by kernel :: [ 17:03:19 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 17:03:19 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:21 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:21 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 17:03:12.510082 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 24987, seq 1, length 64 17:03:13.567403 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 24987, seq 2, length 64 17:03:14.611551 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 24987, seq 3, length 64 17:03:15.613120 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 24987, seq 4, length 64 17:03:16.623506 f6:79:4c:7d:ce:e0 > 86:ee:4a:68:d2:52, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 24987, seq 5, length 64 :: [ 17:03:21 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:03:21 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [17:03:21][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 17:03:21 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 17:03:21 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' [17:03:21][root]# echo 'ip -6 route add 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:03:21 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :: [ 17:03:21 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route list' [17:03:21][root]# echo 'ip -6 route list' | ip netns exec route0 bash 2000::/64 dev veth0_r proto kernel metric 256 pref medium 2001::1 via 4002::2 dev eth1r0 metric 1024 pref medium 4001::/64 dev eth0r0 proto kernel metric 256 pref medium 4002::/64 dev eth1r0 proto kernel metric 256 pref medium fe80::/64 dev eth0r0 proto kernel metric 256 pref medium fe80::/64 dev eth1r0 proto kernel metric 256 pref medium fe80::/64 dev veth0_r proto kernel metric 256 pref medium default via 4001::2 dev eth0r0 metric 1024 pref medium :: [ 17:03:21 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route list' (Expected 0, got 0) :: [ 17:03:21 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1' [17:03:22][root]# echo 'ip -6 route get 2001::1' | ip netns exec route0 bash 2001::1 from :: via 4002::2 dev eth1r0 src 4002::1 metric 1024 pref medium :: [ 17:03:22 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1' (Expected 0, got 0) [17:03:22][root]# echo 'nohup tcpdump -U -i eth1r0 -p -nnle > route_addr_pcap.log &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:03:23 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:25 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:25 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:03:25][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.096 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.204 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.132 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.114 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.130 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4196ms rtt min/avg/max/mdev = 0.096/0.135/0.204/0.036 ms :: [ 17:03:29 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:03:29 ] :: [ BEGIN ] :: Running 'sleep 3' :: [ 17:03:32 ] :: [ PASS ] :: Command 'sleep 3' (Expected 0, got 0) :: [ 17:03:32 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:03:32][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 9 packets captured 9 packets received by filter 0 packets dropped by kernel :: [ 17:03:32 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0-255, got 0) :: [ 17:03:32 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:34 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:34 ] :: [ BEGIN ] :: Running 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' 17:03:25.131160 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 51552, seq 1, length 64 17:03:26.207424 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 51552, seq 2, length 64 17:03:27.208658 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 51552, seq 3, length 64 17:03:28.307313 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 51552, seq 4, length 64 17:03:29.327351 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 51552, seq 5, length 64 :: [ 17:03:34 ] :: [ PASS ] :: Command 'vrun route0 cat route_addr_pcap.log | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:03:34 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [17:03:34][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 17:03:34 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 17:03:34 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' [17:03:34][root]# echo 'ip -6 route del 2001::1 dev eth1r0 via 4002::2' | ip netns exec route0 bash RTNETLINK answers: No such process :: [ 17:03:34 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del 2001::1 dev eth1r0 via 4002::2' (Expected 0-255, got 2) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 49s :: Assertions: 36 good, 0 bad :: RESULT: PASS (Route Addr netns default forward) ** Route-Addr-netns-default-forward PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Rule Test netns default forward :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 100' (Expected 2,254, got 2) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table -5' (Expected 0-255, got 255) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table local' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup local"' 32765: from all to 192.168.1.1 lookup local :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup local"' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table local' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 table local' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table local' (Expected 0-255, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:35][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table main' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup main"' 32765: from all to 192.168.1.1 lookup main :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup main"' (Expected 0, got 0) :: [ 17:03:35 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:35][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:35 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table main' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 table main' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table main' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup 200"' 32765: from all to 192.168.1.1 lookup 200 :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "32765:.*from all to 192.168.1.1.*lookup 200"' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' 32762: from all to 192.168.1.1 goto 32765 32763: from all to 192.168.1.1 goto 32765 :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from all to 192.168.1.1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 table 200' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 200' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' [17:03:36][root]# echo 'ip -4 rule del to 192.168.1.1 goto 32765' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' [17:03:36][root]# echo 'ip -4 rule add to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' [17:03:36][root]# echo 'ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 | grep eth1r0' 192.168.1.1 via 10.1.1.2 dev eth1r0 table 300 src 10.1.1.1 uid 0 :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep eth1r0' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' 192.168.1.1 via 10.1.1.2 dev eth1r0 table 300 src 10.1.1.1 uid 0 :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 17:03:36 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 17:03:36 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [17:03:36][root]# echo 'nohup tcpdump -U -i eth1r0 -p -w route_second.pcap &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:03:41 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 1' [17:03:41][root]# echo 'ping 192.168.1.1 -c 1' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.055 ms --- 192.168.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.055/0.055/0.055/0.000 ms :: [ 17:03:41 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 1' (Expected 0, got 0) :: [ 17:03:41 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:03:43 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:03:43 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:03:43][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 17:03:43 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:03:49 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 192.168.1.1"' reading from file route_second.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:03:41.903407 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 45730, seq 1, length 64 :: [ 17:03:49 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:03:49 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' [17:03:49][root]# echo 'ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' | ip netns exec route0 bash :: [ 17:03:49 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del table 300 default dev eth1r0 via 10.1.1.2' (Expected 0, got 0) :: [ 17:03:49 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [17:03:49][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 17:03:49 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0, got 0) :: [ 17:03:49 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' [17:03:49][root]# echo 'ip -4 rule del to 192.168.1.1 table 300' | ip netns exec route0 bash :: [ 17:03:49 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 192.168.1.1 table 300' (Expected 0-255, got 0) :: [ 17:03:49 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:03:49][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.071 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.100 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.115 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.118 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.125 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4198ms rtt min/avg/max/mdev = 0.071/0.105/0.125/0.019 ms :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' 0: from all lookup local :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "0:.*from all.*lookup local"' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' 32766: from all lookup main :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32766:.*from all.*lookup main"' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 100' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 goto 100' | ip netns exec route0 bash Error: Backward goto not supported. :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 100' (Expected 2,254, got 2) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table -5' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table -5' (Expected 0-255, got 255) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [17:03:53][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table -5' [17:03:53][root]# echo 'ip -6 rule del to 2001::1 table -5' | ip netns exec route0 bash Error: argument "-5" is wrong: invalid table ID :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table -5' (Expected 0-255, got 255) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table local' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 table local' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table local' (Expected 0-255, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup local"' 32765: from all to 2001::1 lookup local :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup local"' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:53][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [17:03:53][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table local' [17:03:53][root]# echo 'ip -6 rule del to 2001::1 table local' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table local' (Expected 0-255, got 0) :: [ 17:03:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:53][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:53 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table main' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 table main' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table main' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup main"' 32765: from all to 2001::1 lookup main :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup main"' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table main' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 table main' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table main' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 200' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 table 200' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 200' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup 200"' 32765: from all to 2001::1 lookup 200 :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "32765:.*from all to 2001::1.*lookup 200"' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' 32762: from all to 2001::1 goto 32765 32763: from all to 2001::1 goto 32765 :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from all to 2001::1.*goto 32765"' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 200' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 table 200' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 200' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 goto 32765' [17:03:54][root]# echo 'ip -6 rule del to 2001::1 goto 32765' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 goto 32765' (Expected 0-255, got 0) :: [ 17:03:54 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [17:03:54][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 17:03:54 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0, got 0) :: [ 17:03:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add to 2001::1 table 300' [17:03:55][root]# echo 'ip -6 rule add to 2001::1 table 300' | ip netns exec route0 bash :: [ 17:03:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add to 2001::1 table 300' (Expected 0-255, got 0) :: [ 17:03:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' [17:03:55][root]# echo 'ip -6 route add table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 17:03:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 17:03:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 | grep eth1r0' 2001::1 from :: via 4002::2 dev eth1r0 table 300 src 4002::1 metric 1024 pref medium :: [ 17:03:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep eth1r0' (Expected 0, got 0) :: [ 17:03:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' 2001::1 from :: via 4002::2 dev eth1r0 table 300 src 4002::1 metric 1024 pref medium :: [ 17:03:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth1r0 | sed -n '3,$'p | grep eth1r0' (Expected 0, got 0) :: [ 17:03:55 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' :: [ 17:03:55 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 oif eth0r0 | sed -n '3,$'p | grep eth1r0' (Expected 1, got 1) [17:03:55][root]# echo 'nohup tcpdump -U -i eth1r0 -p -w route_second.pcap &' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:04:00 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 1' [17:04:00][root]# echo 'ping6 2001::1 -c 1' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.079 ms --- 2001::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.079/0.079/0.079/0.000 ms :: [ 17:04:00 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 1' (Expected 0, got 0) :: [ 17:04:00 ] :: [ BEGIN ] :: Running 'sleep 2' :: [ 17:04:02 ] :: [ PASS ] :: Command 'sleep 2' (Expected 0, got 0) :: [ 17:04:02 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:04:02][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 1 packet captured 1 packet received by filter 0 packets dropped by kernel :: [ 17:04:02 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:04:07 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 2001::1"' reading from file route_second.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:04:00.389892 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 13229, seq 1, length 64 :: [ 17:04:07 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r route_second.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:04:07 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' [17:04:07][root]# echo 'ip -6 route del table 300 default dev eth1r0 via 4002::2' | ip netns exec route0 bash :: [ 17:04:07 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del table 300 default dev eth1r0 via 4002::2' (Expected 0, got 0) :: [ 17:04:07 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [17:04:07][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 17:04:07 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0, got 0) :: [ 17:04:07 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 2001::1 table 300' [17:04:07][root]# echo 'ip -6 rule del to 2001::1 table 300' | ip netns exec route0 bash :: [ 17:04:07 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 2001::1 table 300' (Expected 0-255, got 0) :: [ 17:04:07 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:04:07][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.101 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.138 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.130 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.268 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.175 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4135ms rtt min/avg/max/mdev = 0.101/0.162/0.268/0.057 ms :: [ 17:04:11 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:04:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [17:04:11][root]# echo 'ip -4 rule del to 172.145.11.1 table unspec' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:04:11 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 2,254, got 2) :: [ 17:04:11 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' [17:04:12][root]# echo 'ip -4 rule add to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' 32765: from all to 172.145.11.1 lookup 1 :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' [17:04:12][root]# echo 'ip -4 rule del to 172.145.11.1 table unspec' | ip netns exec route0 bash :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del to 172.145.11.1 table unspec' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep 172.145.11.1' :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep 172.145.11.1' (Expected 1, got 1) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' [17:04:12][root]# echo 'ip -6 rule del to 4543:1111::1 table unspec' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del to 4543:1111::1 table unspec' (Expected 2,254, got 2) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route get 192.168.1.1 | grep 10.0.0.2' 192.168.1.1 via 10.0.0.2 dev eth0r0 src 10.0.0.1 uid 0 :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route get 192.168.1.1 | grep 10.0.0.2' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [17:04:12][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' [17:04:12][root]# echo 'ip -4 rule add from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' 32764: from 192.168.0.1 lookup 11 32765: from 192.168.0.1 lookup 11 :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 0, got 0) :: [ 17:04:12 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [17:04:12][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:04:12 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:04:12][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:04:14 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:04:14][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.071 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.129 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.149 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.127 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.151 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4141ms rtt min/avg/max/mdev = 0.071/0.125/0.151/0.028 ms :: [ 17:04:18 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:04:20 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:04:21][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 17:04:21 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:04:14.827575 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 16588, seq 1, length 64 17:04:15.887405 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 16588, seq 2, length 64 17:04:16.927456 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 16588, seq 3, length 64 17:04:17.967466 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 16588, seq 4, length 64 17:04:18.968662 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 16588, seq 5, length 64 :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [17:04:26][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0, got 0) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [17:04:26][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 0) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "from 192.168.0.1.*lookup 11"' (Expected 1, got 1) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' [17:04:26][root]# echo 'ip -4 rule del from 192.168.0.1 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del from 192.168.0.1 table 11' (Expected 0-255, got 2) :: [ 17:04:26 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [17:04:26][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:04:26 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:04:26][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:04:28 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:04:28][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.142 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.103 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.084 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.113 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.102 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4129ms rtt min/avg/max/mdev = 0.084/0.108/0.142/0.019 ms :: [ 17:04:32 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:04:34 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:04:34][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:04:34 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:04:39 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:04:39 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 17:04:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [17:04:39][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 17:04:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 17:04:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' [17:04:39][root]# echo 'ip -4 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:04:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:04:39 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [17:04:39][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:04:39 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:04:39][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:04:41 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:04:41][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.055 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.127 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.139 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.107 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.110 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4131ms rtt min/avg/max/mdev = 0.055/0.107/0.139/0.028 ms :: [ 17:04:46 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:04:48 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:04:48][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 17:04:48 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:04:53 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:04:41.916536 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 42563, seq 1, length 64 17:04:42.927423 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 42563, seq 2, length 64 17:04:43.928861 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 42563, seq 3, length 64 17:04:45.007312 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 42563, seq 4, length 64 17:04:46.047303 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 42563, seq 5, length 64 :: [ 17:04:53 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:04:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [17:04:53][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 17:04:53 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 17:04:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [17:04:53][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:04:53 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:04:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' [17:04:53][root]# echo 'ip -4 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:04:53 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:04:53 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [17:04:53][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:04:53 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:04:53][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:04:55 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:04:55][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.158 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.111 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.107 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.115 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.099 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4153ms rtt min/avg/max/mdev = 0.099/0.118/0.158/0.020 ms :: [ 17:04:59 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:05:01 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:05:01][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:05:01 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [17:05:06][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' [17:05:06][root]# echo 'ip -4 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [17:05:06][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [17:05:06][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' [17:05:06][root]# echo 'ip -4 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [17:05:06][root]# echo 'ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule list | grep "100:.*not from 192.168.1.1 to 192.168.0.1.*lookup 11"' 100: not from 192.168.1.1 to 192.168.0.1 lookup 11 :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule list | grep "100:.*not from 192.168.1.1 to 192.168.0.1.*lookup 11"' (Expected 0, got 0) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [17:05:06][root]# echo 'ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:05:06 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule add not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:05:06 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' [17:05:06][root]# echo 'ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:05:07 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route add default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:05:07][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:05:09 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:05:09][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.067 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.112 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.123 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.126 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.197 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4109ms rtt min/avg/max/mdev = 0.067/0.125/0.197/0.041 ms :: [ 17:05:13 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:05:15 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:05:15][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 7 packets captured 7 packets received by filter 0 packets dropped by kernel :: [ 17:05:15 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:05:20 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:05:09.058515 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 52158, seq 1, length 64 17:05:10.127715 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 52158, seq 2, length 64 17:05:11.129352 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 52158, seq 3, length 64 17:05:12.132909 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 52158, seq 4, length 64 17:05:13.167539 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv4 (0x0800), length 98: 192.168.0.1 > 192.168.1.1: ICMP echo request, id 52158, seq 5, length 64 :: [ 17:05:20 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 0, got 0) :: [ 17:05:20 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [17:05:20][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash :: [ 17:05:20 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0, got 0) :: [ 17:05:20 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [17:05:20][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:05:20 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:05:20 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' [17:05:20][root]# echo 'ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:05:20 ] :: [ PASS ] :: Command 'vrun route0 ip -4 rule del not from 192.168.1.1 to 192.168.0.1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:05:20 ] :: [ BEGIN ] :: Running 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' [17:05:20][root]# echo 'ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' | ip netns exec route0 bash :: [ 17:05:20 ] :: [ PASS ] :: Command 'vrun route0 ip -4 route del default dev eth1r0 via 10.1.1.2 table 11' (Expected 0, got 0) [17:05:20][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:05:22 ] :: [ BEGIN ] :: Running 'vrun client ping 192.168.1.1 -c 5' [17:05:22][root]# echo 'ping 192.168.1.1 -c 5' | ip netns exec client bash PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=62 time=0.055 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=62 time=0.111 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=62 time=0.111 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=62 time=0.125 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=62 time=0.119 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4171ms rtt min/avg/max/mdev = 0.055/0.104/0.125/0.025 ms :: [ 17:05:26 ] :: [ PASS ] :: Command 'vrun client ping 192.168.1.1 -c 5' (Expected 0, got 0) :: [ 17:05:28 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:05:28][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:05:28 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:05:33 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:05:33 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 192.168.1.1"' (Expected 1, got 1) :: [ 17:05:33 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route get 2001::1 | grep 4001::2' 2001::1 from :: via 4001::2 dev eth0r0 src 4001::1 metric 1024 pref medium :: [ 17:05:33 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route get 2001::1 | grep 4001::2' (Expected 0, got 0) :: [ 17:05:33 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [17:05:33][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 17:05:33 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0, got 0) :: [ 17:05:33 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add from 2000::1 table 11' [17:05:33][root]# echo 'ip -6 rule add from 2000::1 table 11' | ip netns exec route0 bash :: [ 17:05:34 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add from 2000::1 table 11' (Expected 0-255, got 0) :: [ 17:05:34 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' 32764: from 2000::1 lookup 11 32765: from 2000::1 lookup 11 :: [ 17:05:34 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 17:05:34 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [17:05:34][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:05:34 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:05:34][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:05:36 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:05:36][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.101 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.136 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.132 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.129 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.129 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4181ms rtt min/avg/max/mdev = 0.101/0.125/0.136/0.012 ms :: [ 17:05:40 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:05:42 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:05:42][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 17:05:42 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:05:36.186833 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 30287, seq 1, length 64 17:05:37.247413 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 30287, seq 2, length 64 17:05:38.297308 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 30287, seq 3, length 64 17:05:39.327316 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 30287, seq 4, length 64 17:05:40.367386 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 30287, seq 5, length 64 :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [17:05:47][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0, got 0) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [17:05:47][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 0) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "from 2000::1.*lookup 11"' (Expected 1, got 1) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del from 2000::1 table 11' [17:05:47][root]# echo 'ip -6 rule del from 2000::1 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del from 2000::1 table 11' (Expected 0-255, got 2) :: [ 17:05:47 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [17:05:47][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:05:47 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:05:47][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:05:49 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:05:49][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.079 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.106 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.128 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.116 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.113 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4112ms rtt min/avg/max/mdev = 0.079/0.108/0.128/0.016 ms :: [ 17:05:53 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:05:55 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:05:55][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:05:55 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:06:00 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:06:01 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 17:06:01 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [17:06:01][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 17:06:01 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 17:06:01 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' [17:06:01][root]# echo 'ip -6 rule add iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:06:01 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:06:01 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [17:06:01][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:06:01 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:06:01][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:06:03 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:06:03][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.076 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.144 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.140 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.118 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.185 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4182ms rtt min/avg/max/mdev = 0.076/0.132/0.185/0.035 ms :: [ 17:06:07 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:06:09 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:06:09][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 17:06:09 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:06:14 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:06:03.545861 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 48357, seq 1, length 64 17:06:04.607441 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 48357, seq 2, length 64 17:06:05.647721 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 48357, seq 3, length 64 17:06:06.648761 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 48357, seq 4, length 64 17:06:07.728176 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 48357, seq 5, length 64 :: [ 17:06:14 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:06:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [17:06:14][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash :: [ 17:06:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0, got 0) :: [ 17:06:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [17:06:14][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:06:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:06:14 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' [17:06:14][root]# echo 'ip -6 rule del iif veth0_r table 11 pref 100' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:06:14 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del iif veth0_r table 11 pref 100' (Expected 0-255, got 2) :: [ 17:06:15 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [17:06:15][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:06:15 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:06:15][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:06:17 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:06:17][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.060 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.136 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.134 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.112 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.142 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4172ms rtt min/avg/max/mdev = 0.060/0.116/0.142/0.030 ms :: [ 17:06:21 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:06:23 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:06:23][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:06:23 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [17:06:28][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' [17:06:28][root]# echo 'ip -6 rule add not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [17:06:28][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [17:06:28][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' [17:06:28][root]# echo 'ip -6 rule del not iif eth0r0 iif eth1r0 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not iif eth0r0 iif eth1r0 table 11' (Expected 0-255, got 2) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [17:06:28][root]# echo 'ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule list | grep "100:.*not from 2001::1 to 2000::1.*lookup 11"' 100: not from 2001::1 to 2000::1 lookup 11 :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule list | grep "100:.*not from 2001::1 to 2000::1.*lookup 11"' (Expected 0, got 0) :: [ 17:06:28 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' [17:06:28][root]# echo 'ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: File exists :: [ 17:06:28 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule add not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:06:29 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' [17:06:29][root]# echo 'ip -6 route add default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:06:29 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route add default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:06:29][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:06:31 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:06:31][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.075 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.150 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.169 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.126 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.134 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4170ms rtt min/avg/max/mdev = 0.075/0.130/0.169/0.031 ms :: [ 17:06:35 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:06:37 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:06:37][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 5 packets captured 5 packets received by filter 0 packets dropped by kernel :: [ 17:06:37 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:06:42 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump 17:06:31.077735 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 50713, seq 1, length 64 17:06:32.132230 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 50713, seq 2, length 64 17:06:33.170658 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 50713, seq 3, length 64 17:06:34.212112 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 50713, seq 4, length 64 17:06:35.247372 82:3c:ad:8c:96:ae > f2:f7:3c:58:a8:09, ethertype IPv6 (0x86dd), length 118: 2000::1 > 2001::1: ICMP6, echo request, id 50713, seq 5, length 64 :: [ 17:06:42 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 0, got 0) :: [ 17:06:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [17:06:42][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash :: [ 17:06:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0, got 0) :: [ 17:06:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [17:06:42][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:06:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:06:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' [17:06:42][root]# echo 'ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' | ip netns exec route0 bash RTNETLINK answers: No such file or directory :: [ 17:06:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 rule del not from 2001::1 to 2000::1 pref 100 table 11' (Expected 0-255, got 2) :: [ 17:06:42 ] :: [ BEGIN ] :: Running 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' [17:06:42][root]# echo 'ip -6 route del default dev eth1r0 via 4002::2 table 11' | ip netns exec route0 bash :: [ 17:06:42 ] :: [ PASS ] :: Command 'vrun route0 ip -6 route del default dev eth1r0 via 4002::2 table 11' (Expected 0, got 0) [17:06:42][root]# echo 'tcpdump -U -i eth1r0 -w if2.pcap' | ip netns exec route0 bash dropped privs to tcpdump tcpdump: listening on eth1r0, link-type EN10MB (Ethernet), snapshot length 262144 bytes :: [ 17:06:44 ] :: [ BEGIN ] :: Running 'vrun client ping6 2001::1 -c 5' [17:06:44][root]# echo 'ping6 2001::1 -c 5' | ip netns exec client bash PING 2001::1(2001::1) 56 data bytes 64 bytes from 2001::1: icmp_seq=1 ttl=62 time=0.061 ms 64 bytes from 2001::1: icmp_seq=2 ttl=62 time=0.257 ms 64 bytes from 2001::1: icmp_seq=3 ttl=62 time=0.118 ms 64 bytes from 2001::1: icmp_seq=4 ttl=62 time=0.132 ms 64 bytes from 2001::1: icmp_seq=5 ttl=62 time=0.128 ms --- 2001::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4115ms rtt min/avg/max/mdev = 0.061/0.139/0.257/0.064 ms :: [ 17:06:48 ] :: [ PASS ] :: Command 'vrun client ping6 2001::1 -c 5' (Expected 0, got 0) :: [ 17:06:50 ] :: [ BEGIN ] :: Running 'vrun route0 pkill tcpdump' [17:06:50][root]# echo 'pkill tcpdump' | ip netns exec route0 bash 0 packets captured 0 packets received by filter 0 packets dropped by kernel :: [ 17:06:50 ] :: [ PASS ] :: Command 'vrun route0 pkill tcpdump' (Expected 0, got 0) :: [ 17:06:55 ] :: [ BEGIN ] :: Running 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' reading from file if2.pcap, link-type EN10MB (Ethernet), snapshot length 262144 dropped privs to tcpdump :: [ 17:06:56 ] :: [ PASS ] :: Command 'vrun route0 tcpdump -r if2.pcap -nnle | grep "> 2001::1"' (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 201s :: Assertions: 202 good, 0 bad :: RESULT: PASS (Rule Test netns default forward) ** Rule-Test-netns-default-forward PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:06:56 ] :: [ BEGIN ] :: Running 'default_forward_cleanup' modprobe: FATAL: Module bridge is in use. :: [ 17:06:56 ] :: [ PASS ] :: Command 'default_forward_cleanup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Cleanup) ** Cleanup PASS Score:0 Uploading resultoutputfile.log .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: networking/route/route_func :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:06:57 ] :: [ LOG ] :: Phases fingerprint: 3TFH3dbq :: [ 17:06:57 ] :: [ LOG ] :: Asserts fingerprint: KsBVtXcw Uploading journal.xml .done :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 263s :: Phases: 4 good, 0 bad :: OVERALL RESULT: PASS (networking/route/route_func)