START sys/net/gif 2024-11-06T23:11:33Z ==== 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.159 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.159/0.159/0.159/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.164 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.164/0.164/0.164/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.180 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.180/0.180/0.180/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.244 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.244/0.244/0.244/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.283 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.283/0.283/0.283/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.228 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.228/0.228/0.228/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.228 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.228/0.228/0.228/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.236 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.236/0.236/0.236/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.330 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.330/0.330/0.330/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.315 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.315/0.315/0.315/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.162 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.162/0.162/0.162/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.168 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.168/0.168/0.168/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.175 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.175/0.175/0.175/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.239 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.239/0.239/0.239/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.268 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.268/0.268/0.268/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.228 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.228/0.228/0.228/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.227 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.227/0.227/0.227/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.235 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.235/0.235/0.235/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.322 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.322/0.322/0.322/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.345 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.345/0.345/0.345/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 0m07.10s