Lines Matching +full:6 +full:ns
13 # 6. VRF and non-VRF permutations
16 # ns-A | ns-B
23 # ns-A:
30 # ns-B:
35 # ns-A to ns-C connection - only for VRF and same config
36 # as ns-A to ns-B
38 # server / client nomenclature relative to ns-A
303 # set sysctl values in NS-A
311 # get sysctl values in NS-A
329 ${NSA_IP}) echo "ns-A IP";;
330 ${NSA_IP6}) echo "ns-A IPv6";;
331 ${NSA_LO_IP}) echo "ns-A loopback IP";;
332 ${NSA_LO_IP6}) echo "ns-A loopback IPv6";;
333 ${NSA_LINKIP6}|${NSA_LINKIP6}%*) echo "ns-A IPv6 LLA";;
335 ${NSB_IP}) echo "ns-B IP";;
336 ${NSB_IP6}) echo "ns-B IPv6";;
337 ${NSB_LO_IP}) echo "ns-B loopback IP";;
338 ${NSB_LO_IP6}) echo "ns-B loopback IPv6";;
339 ${NSB_LINKIP6}|${NSB_LINKIP6}%*) echo "ns-B IPv6 LLA";;
355 local ns=$1
359 addr=$(ip -netns ${ns} -6 -br addr show dev ${dev} | \
381 local ns=$1
387 ip -netns ${ns} link add ${vrf} type vrf table ${table}
388 ip -netns ${ns} link set ${vrf} up
389 ip -netns ${ns} route add vrf ${vrf} unreachable default metric 8192
390 ip -netns ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
392 ip -netns ${ns} addr add 127.0.0.1/8 dev ${vrf}
393 ip -netns ${ns} -6 addr add ::1 dev ${vrf} nodad
395 ip -netns ${ns} addr add dev ${vrf} ${addr}
398 ip -netns ${ns} -6 addr add dev ${vrf} ${addr6}
401 ip -netns ${ns} ru del pref 0
402 ip -netns ${ns} ru add pref 32765 from all lookup local
403 ip -netns ${ns} -6 ru del pref 0
404 ip -netns ${ns} -6 ru add pref 32765 from all lookup local
409 local ns=$1
414 ip -netns ${ns} addr add dev lo ${addr}
417 ip -netns ${ns} -6 addr add dev lo ${addr6}
420 ip -netns ${ns} ro add unreachable default metric 8192
421 ip -netns ${ns} -6 ro add unreachable default metric 8192
423 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1
424 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
425 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1
426 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1
437 local ns2_dev=$6
466 ip -netns ${NSA} -6 addr flush dev ${NSA_DEV}
488 # some VRF tests use ns-C which has the same config as
489 # ns-B but for a device NOT in the VRF
520 # tell ns-A how to get to remote addresses of ns-B
526 ip -netns ${NSA} -6 ro add vrf ${VRF} ${NSB_LO_IP6}/128 via ${NSB_IP6} dev ${NSA_DEV}
529 ip -netns ${NSB} -6 ro add ${VRF_IP6}/128 via ${NSA_IP6} dev ${NSB_DEV}
536 # tell ns-B how to get to remote addresses of ns-A
2332 setup_cmd ip -6 rule add pref 32765 from all lookup local
2333 setup_cmd ip -6 rule del pref 0 from all lookup local
2334 setup_cmd ip -6 rule add pref 50 to ${NSB_LO_IP6} prohibit
2335 setup_cmd ip -6 rule add pref 51 from ${NSB_IP6} prohibit
2351 setup_cmd ip -6 rule add pref 0 from all lookup local
2352 setup_cmd ip -6 rule del pref 32765 from all lookup local
2353 setup_cmd ip -6 rule del pref 50 to ${NSB_LO_IP6} prohibit
2354 setup_cmd ip -6 rule del pref 51 from ${NSB_IP6} prohibit
2360 setup_cmd ip -6 route del ${NSB_LO_IP6}
2361 setup_cmd ip -6 route add unreachable ${NSB_LO_IP6} metric 10
2362 setup_cmd ip -6 route add unreachable ${NSB_IP6} metric 10
2383 setup_cmd ip -6 ro del unreachable ${NSB_LO_IP6}
2384 setup_cmd ip -6 ro del unreachable ${NSB_IP6}
2468 # LLA to GUA - remove ipv6 global addresses from ns-B
2469 setup_cmd_nsb ip -6 addr del ${NSB_IP6}/64 dev ${NSB_DEV}
2470 setup_cmd_nsb ip -6 addr del ${NSB_LO_IP6}/128 dev lo
2471 setup_cmd_nsb ip -6 ro add ${NSA_IP6}/128 via ${NSA_LINKIP6} dev ${NSB_DEV}
2480 setup_cmd_nsb ip -6 ro del ${NSA_IP6}/128 via ${NSA_LINKIP6} dev ${NSB_DEV}
2481 setup_cmd_nsb ip -6 addr add ${NSB_IP6}/64 dev ${NSB_DEV}
2482 setup_cmd_nsb ip -6 addr add ${NSB_LO_IP6}/128 dev lo
2488 setup_cmd ip -6 rule add pref 50 to ${NSB_LO_IP6} prohibit
2489 setup_cmd ip -6 rule add pref 51 from ${NSB_IP6} prohibit
2506 setup_cmd ip -6 rule del pref 50 to ${NSB_LO_IP6} prohibit
2507 setup_cmd ip -6 rule del pref 51 from ${NSB_IP6} prohibit
2513 setup_cmd ip -6 ro del ${NSB_LO_IP6} vrf ${VRF}
2523 ip -netns ${NSB} -6 ro del ${NSA_LO_IP6}
2563 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NSB_IP6} &
2565 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2571 run_cmd nettest -6 -s &
2573 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2579 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NSB_IP6} &
2581 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2587 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NSB_LO_IP6} &
2589 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2598 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NS_NET6} &
2600 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2606 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NS_NET6} &
2608 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2614 run_cmd nettest -6 -s -M ${MD5_PW} -m ${NS_NET6} &
2616 run_cmd_nsb nettest -6 -c ${NSB_LO_IP6} -r ${NSA_IP6} -X ${MD5_PW}
2631 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2633 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2639 run_cmd nettest -6 -s -I ${VRF} &
2641 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2647 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2649 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2655 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_LO_IP6} &
2657 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2666 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2668 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2674 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2676 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2682 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2684 run_cmd_nsb nettest -6 -c ${NSB_LO_IP6} -r ${NSA_IP6} -X ${MD5_PW}
2692 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2693 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NSB_IP6} &
2695 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2699 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2700 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NSB_IP6} &
2702 run_cmd_nsc nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2707 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2708 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NSB_IP6} &
2710 run_cmd_nsc nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2715 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NSB_IP6} &
2716 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NSB_IP6} &
2718 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2722 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2723 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NS_NET6} &
2725 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2729 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2730 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NS_NET6} &
2732 run_cmd_nsc nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2737 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2738 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NS_NET6} &
2740 run_cmd_nsc nettest -6 -r ${NSA_IP6} -X ${MD5_PW}
2745 run_cmd nettest -6 -s -I ${VRF} -M ${MD5_PW} -m ${NS_NET6} &
2746 run_cmd nettest -6 -s -M ${MD5_WRONG_PW} -m ${NS_NET6} &
2748 run_cmd_nsb nettest -6 -r ${NSA_IP6} -X ${MD5_WRONG_PW}
2755 run_cmd nettest -6 -s -I ${NSA_DEV} -M ${MD5_PW} -m ${NSB_IP6}
2759 run_cmd nettest -6 -s -I ${NSA_DEV} -M ${MD5_PW} -m ${NS_NET6}
2774 run_cmd nettest -6 -s &
2776 run_cmd_nsb nettest -6 -r ${a}
2785 run_cmd_nsb nettest -6 -r ${a}
2795 run_cmd_nsb nettest -6 -s &
2797 run_cmd nettest -6 -r ${a}
2804 run_cmd_nsb nettest -6 -s &
2806 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
2814 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
2824 run_cmd nettest -6 -s &
2826 run_cmd nettest -6 -r ${a}
2832 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
2834 run_cmd nettest -6 -r ${a} -0 ${a}
2841 run_cmd nettest -6 -s -I ${NSA_DEV} &
2843 run_cmd nettest -6 -r ${a}
2849 run_cmd nettest -6 -s &
2851 run_cmd nettest -6 -r ${a} -d ${NSA_DEV} -0 ${a}
2858 run_cmd nettest -6 -s &
2860 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
2867 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
2869 run_cmd nettest -6 -d ${NSA_DEV} -r ${a}
2877 run_cmd nettest -6 -d ${NSA_DEV} -r ${a}
2900 run_cmd nettest -6 -s &
2902 run_cmd_nsb nettest -6 -r ${a}
2909 run_cmd nettest -6 -s -I ${VRF} -3 ${VRF} &
2911 run_cmd_nsb nettest -6 -r ${a}
2918 run_cmd nettest -6 -s -I ${VRF} -3 ${NSA_DEV} &
2920 run_cmd_nsb nettest -6 -r ${a}
2926 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
2928 run_cmd_nsb nettest -6 -r ${a}
2937 run_cmd_nsb nettest -6 -r ${a}
2945 run_cmd nettest -6 -s &
2947 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
2966 run_cmd nettest -6 -s -3 ${VRF} &
2968 run_cmd_nsb nettest -6 -r ${a}
2975 run_cmd nettest -6 -s -I ${VRF} -3 ${VRF} &
2977 run_cmd_nsb nettest -6 -r ${a}
2984 run_cmd nettest -6 -s -3 ${NSA_DEV} &
2986 run_cmd_nsb nettest -6 -r ${a}
2990 run_cmd nettest -6 -s -I ${VRF} -3 ${NSA_DEV} &
2992 run_cmd_nsb nettest -6 -r ${a}
2998 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
3000 run_cmd_nsb nettest -6 -r ${a}
3009 run_cmd_nsb nettest -6 -r ${a}
3018 run_cmd nettest -6 -s -I ${VRF} &
3020 run_cmd nettest -6 -r ${a}
3031 run_cmd_nsb nettest -6 -s &
3033 run_cmd nettest -6 -r ${a} -d ${VRF}
3040 run_cmd_nsb nettest -6 -s &
3042 run_cmd nettest -6 -r ${a} -d ${VRF}
3048 run_cmd_nsb nettest -6 -s &
3050 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
3058 run_cmd nettest -6 -r ${a} -d ${VRF}
3066 run_cmd nettest -6 -r ${a} -d ${NSA_DEV}
3073 run_cmd nettest -6 -s -I ${VRF} -3 ${VRF} &
3075 run_cmd nettest -6 -r ${a} -d ${VRF} -0 ${a}
3081 run_cmd nettest -6 -s -I ${VRF} -3 ${VRF} &
3083 run_cmd nettest -6 -r ${a} -d ${NSA_DEV} -0 ${a}
3089 run_cmd nettest -6 -s -I ${VRF} &
3091 run_cmd nettest -6 -r ${a}
3095 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
3097 run_cmd nettest -6 -r ${a} -d ${VRF} -0 ${a}
3103 run_cmd nettest -6 -s -I ${NSA_DEV} -3 ${NSA_DEV} &
3105 run_cmd nettest -6 -r ${a} -d ${NSA_DEV} -0 ${a}
3143 run_cmd nettest -6 -D -s -3 ${NSA_DEV} &
3145 run_cmd_nsb nettest -6 -D -r ${a}
3149 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3151 run_cmd_nsb nettest -6 -D -r ${a}
3157 run_cmd nettest -6 -D -s -3 ${NSA_DEV} &
3159 run_cmd_nsb nettest -6 -D -r ${a}
3167 #run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3169 #run_cmd_nsb nettest -6 -D -r ${a}
3177 run_cmd_nsb nettest -6 -D -r ${a}
3187 run_cmd_nsb nettest -6 -D -s &
3189 run_cmd nettest -6 -D -r ${a} -0 ${NSA_IP6}
3193 run_cmd_nsb nettest -6 -D -s &
3195 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -0 ${NSA_IP6}
3199 run_cmd_nsb nettest -6 -D -s &
3201 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -C -0 ${NSA_IP6}
3205 run_cmd_nsb nettest -6 -D -s &
3207 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -S -0 ${NSA_IP6}
3212 run_cmd nettest -6 -D -r ${a}
3217 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV}
3227 run_cmd nettest -6 -D -s &
3229 run_cmd nettest -6 -D -r ${a} -0 ${a} -1 ${a}
3235 run_cmd nettest -6 -s -D -I ${NSA_DEV} -3 ${NSA_DEV} &
3237 run_cmd nettest -6 -D -r ${a}
3244 run_cmd nettest -6 -s -D -I ${NSA_DEV} &
3246 run_cmd nettest -6 -D -r ${a}
3252 run_cmd nettest -6 -s -D &
3254 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3258 run_cmd nettest -6 -s -D &
3260 run_cmd nettest -6 -D -d ${NSA_DEV} -C -r ${a}
3264 run_cmd nettest -6 -s -D &
3266 run_cmd nettest -6 -D -d ${NSA_DEV} -S -r ${a}
3273 run_cmd nettest -6 -D -s &
3275 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV}
3280 run_cmd nettest -6 -D -s &
3282 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -C
3287 run_cmd nettest -6 -D -s &
3289 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -S
3294 run_cmd nettest -6 -D -s &
3296 run_cmd nettest -6 -D -r ${a} -d ${NSA_DEV} -S -U
3302 run_cmd nettest -6 -D -s -I ${NSA_DEV} -3 ${NSA_DEV} &
3304 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a} -0 ${a}
3309 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3313 run_cmd_nsb ip -6 addr del ${NSB_IP6}/64 dev ${NSB_DEV}
3314 run_cmd_nsb ip -6 ro add ${NSA_IP6}/128 dev ${NSB_DEV}
3316 run_cmd nettest -6 -s -D &
3318 run_cmd_nsb nettest -6 -D -r ${NSA_IP6}
3321 run_cmd_nsb ip -6 ro del ${NSA_IP6}/128 dev ${NSB_DEV}
3322 run_cmd_nsb ip -6 addr add ${NSB_IP6}/64 dev ${NSB_DEV} nodad
3340 run_cmd nettest -6 -D -s &
3342 run_cmd_nsb nettest -6 -D -r ${a}
3349 run_cmd nettest -6 -D -I ${VRF} -s -3 ${NSA_DEV} &
3351 run_cmd_nsb nettest -6 -D -r ${a}
3358 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3360 run_cmd_nsb nettest -6 -D -r ${a}
3369 run_cmd_nsb nettest -6 -D -r ${a}
3380 run_cmd nettest -6 -D -s &
3382 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3389 run_cmd nettest -6 -D -I ${VRF} -s &
3391 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3398 run_cmd nettest -6 -D -s &
3400 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3404 run_cmd nettest -6 -D -I ${VRF} -s -3 ${NSA_DEV} &
3406 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3410 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3412 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3416 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3418 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3431 run_cmd nettest -6 -D -s -3 ${NSA_DEV} &
3433 run_cmd_nsb nettest -6 -D -r ${a}
3440 run_cmd nettest -6 -D -I ${VRF} -s -3 ${NSA_DEV} &
3442 run_cmd_nsb nettest -6 -D -r ${a}
3449 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3451 run_cmd_nsb nettest -6 -D -r ${a}
3459 run_cmd_nsb nettest -6 -D -r ${a}
3467 run_cmd_nsb nettest -6 -D -s &
3469 run_cmd nettest -6 -D -d ${VRF} -r ${NSB_IP6}
3474 run_cmd nettest -6 -D -d ${VRF} -r ${NSB_IP6}
3478 run_cmd_nsb nettest -6 -D -s &
3480 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSB_IP6}
3485 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSB_IP6}
3493 run_cmd nettest -6 -D -s -3 ${NSA_DEV} &
3495 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3499 run_cmd nettest -6 -D -I ${VRF} -s -3 ${NSA_DEV} &
3501 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3507 run_cmd nettest -6 -D -s -3 ${VRF} &
3509 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3513 run_cmd nettest -6 -D -I ${VRF} -s -3 ${VRF} &
3515 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3522 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3529 run_cmd nettest -6 -D -s -3 ${NSA_DEV} &
3531 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3535 run_cmd nettest -6 -D -I ${VRF} -s -3 ${NSA_DEV} &
3537 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3541 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3543 run_cmd nettest -6 -D -d ${VRF} -r ${a}
3547 run_cmd nettest -6 -D -I ${NSA_DEV} -s -3 ${NSA_DEV} &
3549 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3553 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${a}
3559 run_cmd nettest -6 -D -s &
3561 run_cmd_nsb nettest -6 -D -d ${NSB_DEV} -r ${NSA_LINKIP6}
3565 run_cmd_nsb nettest -6 -D -d ${NSB_DEV} -r ${NSA_LINKIP6}
3570 run_cmd_nsb nettest -6 -D -s &
3572 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSB_LINKIP6}
3576 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSB_LINKIP6}
3581 run_cmd nettest -6 -D -s &
3583 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSA_LINKIP6}
3587 run_cmd nettest -6 -D -d ${NSA_DEV} -r ${NSA_LINKIP6}
3591 run_cmd_nsb ip -6 addr del ${NSB_IP6}/64 dev ${NSB_DEV}
3592 run_cmd_nsb ip -6 ro add ${NSA_IP6}/128 dev ${NSB_DEV}
3594 run_cmd nettest -6 -s -D &
3596 run_cmd_nsb nettest -6 -D -r ${NSA_IP6}
3599 run_cmd_nsb ip -6 ro del ${NSA_IP6}/128 dev ${NSB_DEV}
3600 run_cmd_nsb ip -6 addr add ${NSB_IP6}/64 dev ${NSB_DEV} nodad
3637 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -b
3641 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${NSA_DEV} -b
3650 run_cmd nettest -6 -s -R -P icmp -f -l ${a} -I ${NSA_DEV} -b
3658 run_cmd nettest -6 -s -l ${a} -t1 -b
3662 run_cmd nettest -6 -s -l ${a} -I ${NSA_DEV} -t1 -b
3671 run_cmd nettest -6 -s -l ${a} -I ${NSA_DEV} -t1 -b
3683 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${VRF} -b
3687 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${NSA_DEV} -b
3694 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${VRF} -b
3702 run_cmd nettest -6 -s -R -P icmp -f -l ${a} -I ${VRF} -b
3712 run_cmd nettest -6 -s -l ${a} -I ${VRF} -t1 -b
3718 run_cmd nettest -6 -s -l ${a} -I ${NSA_DEV} -t1 -b
3728 run_cmd nettest -6 -s -l ${a} -I ${NSA_DEV} -t1 -b
3734 run_cmd nettest -6 -s -l ${a} -I ${VRF} -t1 -b
3739 run_cmd nettest -6 -s -l ${a} -I ${NSA_DEV} -t1 -b
3763 local varg="-6 $2"
4009 run_cmd nettest -6 -s &
4011 run_cmd_nsb nettest -6 -r ${a}
4027 run_cmd nettest -6 -s ${arg} &
4029 run_cmd_nsb nettest -6 ${arg} -r ${a}
4062 # ns-A device enslaved to bridge. Verify traffic with and without
4070 setup_cmd ip -6 addr del dev ${NSA_DEV} ${NSA_IP6}/64
4074 setup_cmd ip -6 addr add dev br0 ${NSA_IP6}/64 nodad
4123 setup_cmd ip -6 addr add dev br0.100 2001:db8:101::1/64 nodad
4127 setup_cmd_nsb ip -6 addr add dev vlan100 2001:db8:101::2/64 nodad
4173 # ns-A device is connected to both ns-B and ns-C on a single VRF but only has
4178 # only want reply from ns-A
4184 log_test_addr ${MCAST}%${NSB_DEV} $? 0 "Pre cycle, ping out ns-B"
4187 log_test_addr ${MCAST}%${NSC_DEV} $? 0 "Pre cycle, ping out ns-C"
4189 # cycle/flap the first ns-A interface
4196 log_test_addr ${MCAST}%${NSB_DEV} $? 0 "Post cycle ${NSA} ${NSA_DEV}, ping out ns-B"
4198 log_test_addr ${MCAST}%${NSC_DEV} $? 0 "Post cycle ${NSA} ${NSA_DEV}, ping out ns-C"
4200 # cycle/flap the second ns-A interface
4207 log_test_addr ${MCAST}%${NSB_DEV} $? 0 "Post cycle ${NSA} ${NSA_DEV2}, ping out ns-B"
4209 log_test_addr ${MCAST}%${NSC_DEV} $? 0 "Post cycle ${NSA} ${NSA_DEV2}, ping out ns-C"
4212 # Perform IPv{4,6} SNAT on ns-A, and verify TCP connection is successfully
4213 # established with ns-B.
4228 run_cmd_nsb nettest -6 -s -l ${NSB_IP6} -p ${port} &
4230 run_cmd nettest -6 -d ${VRF} -r ${NSB_IP6} -p ${port}
4258 -6 IPv6 tests only
4283 6) TESTS=ipv6;;