selftests/net/fcnal-test.sh: ipv6_ping test failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

  I test ipv6_ping by "./fcnal-test.sh -v -t ipv6_ping".
  There are two tests failed.

   TEST: ping out, VRF bind - ns-B IPv6 LLA                                      [FAIL]
   TEST: ping out, VRF bind - multicast IP                                       [FAIL]

   While in fcnal-test.sh the expected command result is 2, the result is 1, so the test failed.
   ipv6_ping_vrf()
   {
    ......
        for a in ${NSB_LINKIP6}%${VRF} ${MCAST}%${VRF}
        do
                log_start
                show_hint "Fails since VRF device does not support linklocal or multicast"
                run_cmd ${ping6} -c1 -w1 ${a}
                log_test_addr ${a} $? 2 "ping out, VRF bind"
        done

    The ipv6_ping test output is attached.
    Did I set something wrong result that these tests failed?

best regards,
./fcnal-test.sh -v -t ipv6_ping

###########################################################################
IPv6 ping
###########################################################################


#################################################################
No VRF


Configuring network namespaces

SYSCTL: net.ipv4.raw_l3mdev_accept=0

COMMAND: ip netns exec ns-A sysctl -q -w net.ipv4.raw_l3mdev_accept=0

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:1::2
PING 2001:db8:1::2(2001:db8:1::2) 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.504 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.504/0.504/0.504/0.000 ms

TEST: ping out - ns-B IPv6                                                    [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
PING 2001:db8:2::2(2001:db8:2::2) 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.108 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.108/0.108/0.108/0.000 ms

TEST: ping out - ns-B loopback IPv6                                           [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 fe80::d8e5:9cff:fea8:7db7%eth1
PING fe80::d8e5:9cff:fea8:7db7%eth1(fe80::d8e5:9cff:fea8:7db7%eth1) 56 data bytes
64 bytes from fe80::d8e5:9cff:fea8:7db7%eth1: icmp_seq=1 ttl=64 time=0.332 ms

--- fe80::d8e5:9cff:fea8:7db7%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.332/0.332/0.332/0.000 ms

TEST: ping out - ns-B IPv6 LLA                                                [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 ff02::1%eth1
PING ff02::1%eth1(ff02::1%eth1) 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.182 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.182/0.182/0.182/0.000 ms

TEST: ping out - multicast IP                                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:1::2
PING 2001:db8:1::2(2001:db8:1::2) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.096 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.096/0.096/0.096/0.000 ms

TEST: ping out, device bind - ns-B IPv6                                       [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I 2001:db8:2::1 2001:db8:1::2
PING 2001:db8:1::2(2001:db8:1::2) from 2001:db8:2::1 : 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.095 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.095/0.095/0.095/0.000 ms

TEST: ping out, loopback address bind - ns-B IPv6                             [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
PING 2001:db8:2::2(2001:db8:2::2) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.087 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.087/0.087/0.087/0.000 ms

TEST: ping out, device bind - ns-B loopback IPv6                              [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I 2001:db8:2::1 2001:db8:2::2
PING 2001:db8:2::2(2001:db8:2::2) from 2001:db8:2::1 : 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.094 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.094/0.094/0.094/0.000 ms

TEST: ping out, loopback address bind - ns-B loopback IPv6                    [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.079 ms

--- 2001:db8:1::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

TEST: ping in - ns-A IPv6                                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes
64 bytes from 2001:db8:2::1: icmp_seq=1 ttl=64 time=0.069 ms

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.069/0.069/0.069/0.000 ms

TEST: ping in - ns-A loopback IPv6                                            [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 fe80::7c6d:1fff:fe59:cef2%eth1
PING fe80::7c6d:1fff:fe59:cef2%eth1(fe80::7c6d:1fff:fe59:cef2%eth1) 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.081 ms

--- fe80::7c6d:1fff:fe59:cef2%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.081/0.081/0.081/0.000 ms

TEST: ping in - ns-A IPv6 LLA                                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 ff02::1%eth1
PING ff02::1%eth1(ff02::1%eth1) 56 data bytes
64 bytes from fe80::d8e5:9cff:fea8:7db7%eth1: icmp_seq=1 ttl=64 time=0.085 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.085/0.085/0.085/0.000 ms

TEST: ping in - multicast IP                                                  [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.091 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.091/0.091/0.091/0.000 ms

TEST: ping local, no bind - ns-A IPv6                                         [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes
64 bytes from 2001:db8:2::1: icmp_seq=1 ttl=64 time=0.071 ms

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.071/0.071/0.071/0.000 ms

TEST: ping local, no bind - ns-A loopback IPv6                                [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 ::1
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.067 ms

--- ::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.067/0.067/0.067/0.000 ms

TEST: ping local, no bind - IPv6 loopback                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 fe80::7c6d:1fff:fe59:cef2%eth1
PING fe80::7c6d:1fff:fe59:cef2%eth1(fe80::7c6d:1fff:fe59:cef2%eth1) 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.076 ms

--- fe80::7c6d:1fff:fe59:cef2%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.076/0.076/0.076/0.000 ms

TEST: ping local, no bind - ns-A IPv6 LLA                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 ff02::1%eth1
PING ff02::1%eth1(ff02::1%eth1) 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.082 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.082/0.082/0.082/0.000 ms

TEST: ping local, no bind - multicast IP                                      [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.069 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.069/0.069/0.069/0.000 ms

TEST: ping local, device bind - ns-A IPv6                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 fe80::7c6d:1fff:fe59:cef2%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING fe80::7c6d:1fff:fe59:cef2%eth1(fe80::7c6d:1fff:fe59:cef2%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.069 ms

--- fe80::7c6d:1fff:fe59:cef2%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.069/0.069/0.069/0.000 ms

TEST: ping local, device bind - ns-A IPv6 LLA                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 ff02::1%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING ff02::1%eth1(ff02::1%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::7c6d:1fff:fe59:cef2%eth1: icmp_seq=1 ttl=64 time=0.079 ms

--- ff02::1%eth1 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

TEST: ping local, device bind - multicast IP                                  [ OK ]

#######################################################
HINT: Fails since address on loopback is out of device scope

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::1
connect: Network is unreachable

TEST: ping local, device bind - ns-A loopback IPv6                            [ OK ]

#######################################################
HINT: Fails since address on loopback is out of device scope

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 ::1
connect: Network is unreachable

TEST: ping local, device bind - IPv6 loopback                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip -6 rule add pref 32765 from all lookup local
COMMAND: ip netns exec ns-A ip -6 rule del pref 0 from all lookup local
COMMAND: ip netns exec ns-A ip -6 rule add pref 50 to 2001:db8:2::2 prohibit
COMMAND: ip netns exec ns-A ip -6 rule add pref 51 from 2001:db8:1::2 prohibit
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
connect: Permission denied

TEST: ping out, blocked by rule - ns-B loopback IPv6                          [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
connect: Permission denied

TEST: ping out, device bind, blocked by rule - ns-B loopback IPv6             [ OK ]

#######################################################
HINT: Response lost due to ip rule

COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes
From 2001:db8:2::1: icmp_seq=1 Destination unreachable: Administratively prohibited

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

TEST: ping in, blocked by rule - ns-A loopback IPv6                           [ OK ]
COMMAND: ip netns exec ns-A ip -6 rule add pref 0 from all lookup local
COMMAND: ip netns exec ns-A ip -6 rule del pref 32765 from all lookup local
COMMAND: ip netns exec ns-A ip -6 rule del pref 50 to 2001:db8:2::2 prohibit
COMMAND: ip netns exec ns-A ip -6 rule del pref 51 from 2001:db8:1::2 prohibit

#######################################################
COMMAND: ip netns exec ns-A ip -6 route del 2001:db8:2::2
COMMAND: ip netns exec ns-A ip -6 route add unreachable 2001:db8:2::2 metric 10
COMMAND: ip netns exec ns-A ip -6 route add unreachable 2001:db8:1::2 metric 10
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
connect: No route to host

TEST: ping out, blocked by route - ns-B loopback IPv6                         [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
connect: Network is unreachable

TEST: ping out, device bind, blocked by route - ns-B loopback IPv6            [ OK ]

#######################################################
HINT: Response lost due to ip route

COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

TEST: ping in, blocked by route - ns-A loopback IPv6                          [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip -6 ro del unreachable 2001:db8:2::2
COMMAND: ip netns exec ns-A ip -6 ro del unreachable 2001:db8:1::2
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
connect: No route to host

TEST: ping out, unreachable route - ns-B loopback IPv6                        [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
connect: Network is unreachable

TEST: ping out, device bind, unreachable route - ns-B loopback IPv6           [ OK ]

#################################################################
With VRF


Configuring network namespaces

SYSCTL: net.ipv4.raw_l3mdev_accept=1

COMMAND: ip netns exec ns-A sysctl -q -w net.ipv4.raw_l3mdev_accept=1

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I red 2001:db8:1::2
ping6: Warning: source address might be selected on device other than red.
PING 2001:db8:1::2(2001:db8:1::2) from 2001:db8:1::1 red: 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.358 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.358/0.358/0.358/0.000 ms

TEST: ping out, VRF bind - ns-B IPv6                                          [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I red 2001:db8:2::2
ping6: Warning: source address might be selected on device other than red.
PING 2001:db8:2::2(2001:db8:2::2) from 2001:db8:1::1 red: 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.090 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.090/0.090/0.090/0.000 ms

TEST: ping out, VRF bind - ns-B loopback IPv6                                 [ OK ]

#######################################################
HINT: Fails since VRF device does not support linklocal or multicast

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 fe80::7c4c:bcff:fe66:a63a%red
ping: sendmsg: Network is unreachable
PING fe80::7c4c:bcff:fe66:a63a%red(fe80::7c4c:bcff:fe66:a63a%red) 56 data bytes

--- fe80::7c4c:bcff:fe66:a63a%red ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

TEST: ping out, VRF bind - ns-B IPv6 LLA                                      [FAIL]

#######################################################
HINT: Fails since VRF device does not support linklocal or multicast

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 ff02::1%red
ping: sendmsg: Network is unreachable
PING ff02::1%red(ff02::1%red) 56 data bytes

--- ff02::1%red ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

TEST: ping out, VRF bind - multicast IP                                       [FAIL]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:1::2
PING 2001:db8:1::2(2001:db8:1::2) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.090 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.090/0.090/0.090/0.000 ms

TEST: ping out, device bind - ns-B IPv6                                       [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
PING 2001:db8:2::2(2001:db8:2::2) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.075 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.075/0.075/0.075/0.000 ms

TEST: ping out, device bind - ns-B loopback IPv6                              [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 fe80::7c4c:bcff:fe66:a63a%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING fe80::7c4c:bcff:fe66:a63a%eth1(fe80::7c4c:bcff:fe66:a63a%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::7c4c:bcff:fe66:a63a%red: icmp_seq=1 ttl=64 time=0.095 ms

--- fe80::7c4c:bcff:fe66:a63a%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.095/0.095/0.095/0.000 ms

TEST: ping out, device bind - ns-B IPv6 LLA                                   [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 ff02::1%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING ff02::1%eth1(ff02::1%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::48e0:2fff:fe7f:84dc%eth1: icmp_seq=1 ttl=64 time=0.112 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.112/0.112/0.112/0.000 ms

TEST: ping out, device bind - multicast IP                                    [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip vrf exec red /bin/ping6 -c1 -w1 -I 2001:db8:3::1 2001:db8:1::2
PING 2001:db8:1::2(2001:db8:1::2) from 2001:db8:3::1 : 56 data bytes
64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.228 ms

--- 2001:db8:1::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.228/0.228/0.228/0.000 ms

TEST: ping out, vrf device+address bind - ns-B IPv6                           [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip vrf exec red /bin/ping6 -c1 -w1 -I 2001:db8:3::1 2001:db8:2::2
PING 2001:db8:2::2(2001:db8:2::2) from 2001:db8:3::1 : 56 data bytes
64 bytes from 2001:db8:2::2: icmp_seq=1 ttl=64 time=0.220 ms

--- 2001:db8:2::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.220/0.220/0.220/0.000 ms

TEST: ping out, vrf device+address bind - ns-B loopback IPv6                  [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip vrf exec red /bin/ping6 -c1 -w1 -I 2001:db8:3::1 fe80::7c4c:bcff:fe66:a63a%eth1
PING fe80::7c4c:bcff:fe66:a63a%eth1(fe80::7c4c:bcff:fe66:a63a%eth1) from 2001:db8:3::1 : 56 data bytes
64 bytes from fe80::7c4c:bcff:fe66:a63a%red: icmp_seq=1 ttl=64 time=0.095 ms

--- fe80::7c4c:bcff:fe66:a63a%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.095/0.095/0.095/0.000 ms

TEST: ping out, vrf device+address bind - ns-B IPv6 LLA                       [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.076 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.076/0.076/0.076/0.000 ms

TEST: ping in - ns-A IPv6                                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:3::1
PING 2001:db8:3::1(2001:db8:3::1) 56 data bytes
64 bytes from 2001:db8:3::1: icmp_seq=1 ttl=64 time=0.084 ms

--- 2001:db8:3::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.084/0.084/0.084/0.000 ms

TEST: ping in - VRF IPv6                                                      [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 fe80::48e0:2fff:fe7f:84dc%eth1
PING fe80::48e0:2fff:fe7f:84dc%eth1(fe80::48e0:2fff:fe7f:84dc%eth1) 56 data bytes
64 bytes from fe80::48e0:2fff:fe7f:84dc%eth1: icmp_seq=1 ttl=64 time=0.074 ms

--- fe80::48e0:2fff:fe7f:84dc%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.074/0.074/0.074/0.000 ms

TEST: ping in - ns-A IPv6 LLA                                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 ff02::1%eth1
PING ff02::1%eth1(ff02::1%eth1) 56 data bytes
64 bytes from fe80::7c4c:bcff:fe66:a63a%eth1: icmp_seq=1 ttl=64 time=0.107 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.107/0.107/0.107/0.000 ms

TEST: ping in - multicast IP                                                  [ OK ]

#######################################################
HINT: Fails since loopback address is out of VRF scope

COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes
From 2001:db8:1::1: icmp_seq=1 Destination unreachable: No route

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

TEST: ping in - ns-A loopback IPv6                                            [ OK ]

#######################################################
HINT: Source address should be 2001:db8:1::1

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I red 2001:db8:1::1
ping6: Warning: source address might be selected on device other than red.
PING 2001:db8:1::1(2001:db8:1::1) from 2001:db8:1::1 red: 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.092 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.092/0.092/0.092/0.000 ms

TEST: ping local, VRF bind - ns-A IPv6                                        [ OK ]

#######################################################
HINT: Source address should be 2001:db8:3::1

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I red 2001:db8:3::1
PING 2001:db8:3::1(2001:db8:3::1) from 2001:db8:3::1 red: 56 data bytes
64 bytes from 2001:db8:3::1: icmp_seq=1 ttl=64 time=0.245 ms

--- 2001:db8:3::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.245/0.245/0.245/0.000 ms

TEST: ping local, VRF bind - VRF IPv6                                         [ OK ]

#######################################################
HINT: Source address should be ::1

COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I red ::1
PING ::1(::1) from ::1 red: 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.200 ms

--- ::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.200/0.200/0.200/0.000 ms

TEST: ping local, VRF bind - IPv6 loopback                                    [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) from 2001:db8:1::1 eth1: 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.079 ms

--- 2001:db8:1::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

TEST: ping local, device bind - ns-A IPv6                                     [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 fe80::48e0:2fff:fe7f:84dc%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING fe80::48e0:2fff:fe7f:84dc%eth1(fe80::48e0:2fff:fe7f:84dc%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::48e0:2fff:fe7f:84dc%eth1: icmp_seq=1 ttl=64 time=0.068 ms

--- fe80::48e0:2fff:fe7f:84dc%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.068/0.068/0.068/0.000 ms

TEST: ping local, device bind - ns-A IPv6 LLA                                 [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 ff02::1%eth1
ping6: Warning: source address might be selected on device other than eth1.
PING ff02::1%eth1(ff02::1%eth1) from :: eth1: 56 data bytes
64 bytes from fe80::48e0:2fff:fe7f:84dc%eth1: icmp_seq=1 ttl=64 time=0.088 ms

--- ff02::1%eth1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.088/0.088/0.088/0.000 ms

TEST: ping local, device bind - multicast IP                                  [ OK ]
COMMAND: ip netns exec ns-B ip -6 addr del 2001:db8:1::2/64 dev eth1
COMMAND: ip netns exec ns-B ip -6 addr del 2001:db8:2::2/128 dev lo
COMMAND: ip netns exec ns-B ip -6 ro add 2001:db8:1::1/128 via fe80::48e0:2fff:fe7f:84dc dev eth1

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.074 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.074/0.074/0.074/0.000 ms

TEST: ping in, LLA to GUA - ns-A IPv6                                         [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:1::1
PING 2001:db8:1::1(2001:db8:1::1) 56 data bytes
64 bytes from 2001:db8:1::1: icmp_seq=1 ttl=64 time=0.086 ms

--- 2001:db8:1::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.086/0.086/0.086/0.000 ms

TEST: ping in, LLA to GUA - VRF IPv6                                          [ OK ]
COMMAND: ip netns exec ns-B ip -6 ro del 2001:db8:1::1/128 via fe80::48e0:2fff:fe7f:84dc dev eth1
COMMAND: ip netns exec ns-B ip -6 addr add 2001:db8:1::2/64 dev eth1
COMMAND: ip netns exec ns-B ip -6 addr add 2001:db8:2::2/128 dev lo

#######################################################
COMMAND: ip netns exec ns-A ip -6 rule add pref 50 to 2001:db8:2::2 prohibit
COMMAND: ip netns exec ns-A ip -6 rule add pref 51 from 2001:db8:1::2 prohibit
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
connect: Permission denied

TEST: ping out, blocked by rule - ns-B loopback IPv6                          [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
connect: Permission denied

TEST: ping out, device bind, blocked by rule - ns-B loopback IPv6             [ OK ]

#######################################################
HINT: Response lost due to ip rule

COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
PING 2001:db8:2::1(2001:db8:2::1) 56 data bytes
From 2001:db8:1::1: icmp_seq=1 Destination unreachable: Administratively prohibited

--- 2001:db8:2::1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

TEST: ping in, blocked by rule - ns-A loopback IPv6                           [ OK ]

#######################################################
COMMAND: ip netns exec ns-A ip -6 rule del pref 50 to 2001:db8:2::2 prohibit
COMMAND: ip netns exec ns-A ip -6 rule del pref 51 from 2001:db8:1::2 prohibit

#######################################################
COMMAND: ip netns exec ns-A ip -6 ro del 2001:db8:2::2 vrf red
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 2001:db8:2::2
connect: No route to host

TEST: ping out, unreachable route - ns-B loopback IPv6                        [ OK ]

#######################################################
COMMAND: ip netns exec ns-A /bin/ping6 -c1 -w1 -I eth1 2001:db8:2::2
connect: No route to host

TEST: ping out, device bind, unreachable route - ns-B loopback IPv6           [ OK ]

#######################################################
COMMAND: ip netns exec ns-B /bin/ping6 -c1 -w1 2001:db8:2::1
connect: No route to host

TEST: ping in, unreachable route - ns-A loopback IPv6                         [ OK ]

Tests passed:  58
Tests failed:   2


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux