START sys/net/gif 2024-11-26T04:59:46Z ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet 10.188.4.11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif114 destroy ifconfig: gif114: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif116 destroy ifconfig: gif116: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 destroy /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet 10.188.4.12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif124 destroy ifconfig: gif124: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig gif126 destroy ifconfig: gif126: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 destroy rm -f stamp-ifconfig # Create and configure loopback interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1/8 /sbin/ifconfig lo11 inet6 ::1/128 /sbin/ifconfig lo11 inet 10.188.4.11 alias /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 alias /sbin/route -n -T 11 add -inet -host 10.188.4.12 127.0.0.1 add host 10.188.4.12: gateway 127.0.0.1 /sbin/route -n -T 11 add -inet6 -host fdd7:e83e:66bc:6::12 ::1 add host fdd7:e83e:66bc:6::12: gateway ::1 /sbin/ifconfig gif114 create rdomain 11 tunneldomain 11 /sbin/ifconfig gif114 tunnel 10.188.4.11 10.188.4.12 /sbin/ifconfig gif114 inet 10.188.44.11/32 10.188.44.12 /sbin/ifconfig gif114 inet6 fdd7:e83e:66bc:46::11 fdd7:e83e:66bc:46::12 /sbin/ifconfig gif116 create rdomain 11 tunneldomain 11 /sbin/ifconfig gif116 tunnel fdd7:e83e:66bc:6::11 fdd7:e83e:66bc:6::12 /sbin/ifconfig gif116 inet 10.188.64.11/32 10.188.64.12 /sbin/ifconfig gif116 inet6 fdd7:e83e:66bc:66::11 fdd7:e83e:66bc:66::12 /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1/8 /sbin/ifconfig lo12 inet6 ::1/128 /sbin/ifconfig lo12 inet 10.188.4.12 alias /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 alias /sbin/route -n -T 12 add -inet -host 10.188.4.11 127.0.0.1 add host 10.188.4.11: gateway 127.0.0.1 /sbin/route -n -T 12 add -inet6 -host fdd7:e83e:66bc:6::11 ::1 add host fdd7:e83e:66bc:6::11: gateway ::1 /sbin/ifconfig gif124 create rdomain 12 tunneldomain 12 /sbin/ifconfig gif124 tunnel 10.188.4.12 10.188.4.11 /sbin/ifconfig gif124 inet 10.188.44.12/32 10.188.44.11 /sbin/ifconfig gif124 inet6 fdd7:e83e:66bc:46::12 fdd7:e83e:66bc:46::11 /sbin/ifconfig gif126 create rdomain 12 tunneldomain 12 /sbin/ifconfig gif126 tunnel fdd7:e83e:66bc:6::12 fdd7:e83e:66bc:6::11 /sbin/ifconfig gif126 inet 10.188.64.12/32 10.188.64.11 /sbin/ifconfig gif126 inet6 fdd7:e83e:66bc:66::12 fdd7:e83e:66bc:66::11 # Wait until IPv6 addresses are no longer tentative. for i in `jot 50`; do if ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; /sbin/ifconfig gif114; /sbin/ifconfig gif116; /sbin/ifconfig gif124; /sbin/ifconfig gif126; } | fgrep -q tentative; then break; fi; sleep .1; done ! { /sbin/ifconfig lo11; /sbin/ifconfig lo12; /sbin/ifconfig gif114; /sbin/ifconfig gif116; /sbin/ifconfig gif124; /sbin/ifconfig gif126; } | fgrep -q tentative ==== pfctl ==== # Create python include file containing the addresses. rm -f addr.py addr.py.tmp echo 'N1="11"' >>addr.py.tmp echo 'IF_N1="lo11"' >>addr.py.tmp echo 'DST_TUNNEL4_N1="10.188.4.12"' >>addr.py.tmp echo 'DST_TUNNEL6_N1="fdd7:e83e:66bc:6::12"' >>addr.py.tmp echo 'N2="12"' >>addr.py.tmp echo 'IF_N2="lo12"' >>addr.py.tmp echo 'DST_TUNNEL4_N2="10.188.4.11"' >>addr.py.tmp echo 'DST_TUNNEL6_N2="fdd7:e83e:66bc:6::11"' >>addr.py.tmp mv addr.py.tmp addr.py # Load the pf rules into the kernel. cat addr.py /usr/src/regress/sys/net/gif/pf.conf | /sbin/pfctl -n -f - cat addr.py /usr/src/regress/sys/net/gif/pf.conf | /sbin/pfctl -a regress -f - # ifconfig gif inet6 DAD created tunnel states based on old pf rules /sbin/pfctl -Fs 22 states cleared ==== run-ping-local-11 ==== # Ping localhost in routing domain 11. /sbin/ping -n -w 1 -c 1 -V 11 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.035 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.035/0.035/0.035/0.000 ms ==== run-ping-src-11 ==== # Ping source address in local routing domain. SRC_TUNNEL4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.4.11 PING 10.188.4.11 (10.188.4.11): 56 data bytes 64 bytes from 10.188.4.11: icmp_seq=0 ttl=255 time=0.045 ms --- 10.188.4.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.045/0.045/0.045/0.000 ms ==== run-ping-dst-11 ==== # Ping destination address in other routing domain. DST_TUNNEL4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.4.12 PING 10.188.4.12 (10.188.4.12): 56 data bytes 64 bytes from 10.188.4.12: icmp_seq=0 ttl=255 time=0.036 ms --- 10.188.4.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.036/0.036/0.036/0.000 ms ==== run-ping-tunnel4-11 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.44.12 PING 10.188.44.12 (10.188.44.12): 56 data bytes 64 bytes from 10.188.44.12: icmp_seq=0 ttl=255 time=0.047 ms --- 10.188.44.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.047/0.047/0.047/0.000 ms ==== run-ping-tunnel6-11 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_11 /sbin/ping -n -w 1 -c 1 -V 11 10.188.64.12 PING 10.188.64.12 (10.188.64.12): 56 data bytes 64 bytes from 10.188.64.12: icmp_seq=0 ttl=255 time=0.058 ms --- 10.188.64.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.058/0.058/0.058/0.000 ms ==== run-ping6-local-11 ==== # Ping localhost in routing domain 11. /sbin/ping6 -n -w 1 -c 1 -V 11 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.043 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.043/0.043/0.043/0.000 ms ==== run-ping6-src-11 ==== # Ping source address in local routing domain. SRC_TUNNEL6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:6::11 PING fdd7:e83e:66bc:6::11 (fdd7:e83e:66bc:6::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::11: icmp_seq=0 hlim=64 time=0.043 ms --- fdd7:e83e:66bc:6::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.043/0.043/0.043/0.000 ms ==== run-ping6-dst-11 ==== # Ping destination address in other routing domain. DST_TUNNEL6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:6::12 PING fdd7:e83e:66bc:6::12 (fdd7:e83e:66bc:6::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::12: icmp_seq=0 hlim=64 time=0.045 ms --- fdd7:e83e:66bc:6::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.045/0.045/0.045/0.000 ms ==== run-ping6-tunnel4-11 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:46::12 PING fdd7:e83e:66bc:46::12 (fdd7:e83e:66bc:46::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::12: icmp_seq=0 hlim=64 time=0.061 ms --- fdd7:e83e:66bc:46::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.061/0.061/0.061/0.000 ms ==== run-ping6-tunnel6-11 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_11 /sbin/ping6 -n -w 1 -c 1 -V 11 fdd7:e83e:66bc:66::12 PING fdd7:e83e:66bc:66::12 (fdd7:e83e:66bc:66::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::12: icmp_seq=0 hlim=64 time=0.062 ms --- fdd7:e83e:66bc:66::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.062/0.062/0.062/0.000 ms ==== run-ping-local-12 ==== # Ping localhost in routing domain 12. /sbin/ping -n -w 1 -c 1 -V 12 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.045 ms --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.045/0.045/0.045/0.000 ms ==== run-ping-src-12 ==== # Ping source address in local routing domain. SRC_TUNNEL4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.4.12 PING 10.188.4.12 (10.188.4.12): 56 data bytes 64 bytes from 10.188.4.12: icmp_seq=0 ttl=255 time=0.038 ms --- 10.188.4.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.038/0.038/0.038/0.000 ms ==== run-ping-dst-12 ==== # Ping destination address in other routing domain. DST_TUNNEL4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.4.11 PING 10.188.4.11 (10.188.4.11): 56 data bytes 64 bytes from 10.188.4.11: icmp_seq=0 ttl=255 time=0.037 ms --- 10.188.4.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.037/0.037/0.037/0.000 ms ==== run-ping-tunnel4-12 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.44.11 PING 10.188.44.11 (10.188.44.11): 56 data bytes 64 bytes from 10.188.44.11: icmp_seq=0 ttl=255 time=0.046 ms --- 10.188.44.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms ==== run-ping-tunnel6-12 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_12 /sbin/ping -n -w 1 -c 1 -V 12 10.188.64.11 PING 10.188.64.11 (10.188.64.11): 56 data bytes 64 bytes from 10.188.64.11: icmp_seq=0 ttl=255 time=0.051 ms --- 10.188.64.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.051/0.051/0.051/0.000 ms ==== run-ping6-local-12 ==== # Ping localhost in routing domain 12. /sbin/ping6 -n -w 1 -c 1 -V 12 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.045 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.045/0.045/0.045/0.000 ms ==== run-ping6-src-12 ==== # Ping source address in local routing domain. SRC_TUNNEL6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:6::12 PING fdd7:e83e:66bc:6::12 (fdd7:e83e:66bc:6::12): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::12: icmp_seq=0 hlim=64 time=0.055 ms --- fdd7:e83e:66bc:6::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.055/0.055/0.055/0.000 ms ==== run-ping6-dst-12 ==== # Ping destination address in other routing domain. DST_TUNNEL6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:6::11 PING fdd7:e83e:66bc:6::11 (fdd7:e83e:66bc:6::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::11: icmp_seq=0 hlim=64 time=0.045 ms --- fdd7:e83e:66bc:6::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.045/0.045/0.045/0.000 ms ==== run-ping6-tunnel4-12 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:46::11 PING fdd7:e83e:66bc:46::11 (fdd7:e83e:66bc:46::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::11: icmp_seq=0 hlim=64 time=0.074 ms --- fdd7:e83e:66bc:46::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.074/0.074/0.074/0.000 ms ==== run-ping6-tunnel6-12 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_12 /sbin/ping6 -n -w 1 -c 1 -V 12 fdd7:e83e:66bc:66::11 PING fdd7:e83e:66bc:66::11 (fdd7:e83e:66bc:66::11): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::11: icmp_seq=0 hlim=64 time=0.059 ms --- fdd7:e83e:66bc:66::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.059/0.059/0.059/0.000 ms ==== unconfig ==== /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1 delete /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig lo11 inet 10.188.4.11 delete /sbin/ifconfig lo11 inet6 fdd7:e83e:66bc:6::11 delete /sbin/ifconfig gif114 destroy /sbin/ifconfig gif116 destroy /sbin/ifconfig lo11 destroy /sbin/ifconfig lo12 rdomain 12 /sbin/ifconfig lo12 inet 127.0.0.1 delete /sbin/ifconfig lo12 inet6 ::1 delete /sbin/ifconfig lo12 inet 10.188.4.12 delete /sbin/ifconfig lo12 inet6 fdd7:e83e:66bc:6::12 delete /sbin/ifconfig gif124 destroy /sbin/ifconfig gif126 destroy /sbin/ifconfig lo12 destroy rm -f stamp-ifconfig PASS sys/net/gif Duration 0m03.48s