==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== doas -n /sbin/ifconfig lo36 rdomain 36 doas -n /sbin/ifconfig lo36 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo36 inet6 ::1 delete doas -n /sbin/ifconfig lo36 inet 10.188.4.36 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo36 inet6 fdd7:e83e:66bc:6::36 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig gif364 destroy ifconfig: gif364: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig gif366 destroy ifconfig: gif366: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo36 destroy doas -n /sbin/ifconfig lo37 rdomain 37 doas -n /sbin/ifconfig lo37 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo37 inet6 ::1 delete doas -n /sbin/ifconfig lo37 inet 10.188.4.37 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo37 inet6 fdd7:e83e:66bc:6::37 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig gif374 destroy ifconfig: gif374: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig gif376 destroy ifconfig: gif376: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo37 destroy rm -f stamp-ifconfig # Create and configure loopback interfaces. doas -n /sbin/ifconfig lo36 rdomain 36 doas -n /sbin/ifconfig lo36 inet 127.0.0.1/8 doas -n /sbin/ifconfig lo36 inet6 ::1/128 doas -n /sbin/ifconfig lo36 inet 10.188.4.36 alias doas -n /sbin/ifconfig lo36 inet6 fdd7:e83e:66bc:6::36 alias doas -n /sbin/route -n -T 36 add -inet -host 10.188.4.37 127.0.0.1 add host 10.188.4.37: gateway 127.0.0.1 doas -n /sbin/route -n -T 36 add -inet6 -host fdd7:e83e:66bc:6::37 ::1 add host fdd7:e83e:66bc:6::37: gateway ::1 doas -n /sbin/ifconfig gif364 create rdomain 36 tunneldomain 36 doas -n /sbin/ifconfig gif364 tunnel 10.188.4.36 10.188.4.37 doas -n /sbin/ifconfig gif364 inet 10.188.44.36/32 10.188.44.37 doas -n /sbin/ifconfig gif364 inet6 fdd7:e83e:66bc:46::36 fdd7:e83e:66bc:46::37 doas -n /sbin/ifconfig gif366 create rdomain 36 tunneldomain 36 doas -n /sbin/ifconfig gif366 tunnel fdd7:e83e:66bc:6::36 fdd7:e83e:66bc:6::37 doas -n /sbin/ifconfig gif366 inet 10.188.64.36/32 10.188.64.37 doas -n /sbin/ifconfig gif366 inet6 fdd7:e83e:66bc:66::36 fdd7:e83e:66bc:66::37 doas -n /sbin/ifconfig lo37 rdomain 37 doas -n /sbin/ifconfig lo37 inet 127.0.0.1/8 doas -n /sbin/ifconfig lo37 inet6 ::1/128 doas -n /sbin/ifconfig lo37 inet 10.188.4.37 alias doas -n /sbin/ifconfig lo37 inet6 fdd7:e83e:66bc:6::37 alias doas -n /sbin/route -n -T 37 add -inet -host 10.188.4.36 127.0.0.1 add host 10.188.4.36: gateway 127.0.0.1 doas -n /sbin/route -n -T 37 add -inet6 -host fdd7:e83e:66bc:6::36 ::1 add host fdd7:e83e:66bc:6::36: gateway ::1 doas -n /sbin/ifconfig gif374 create rdomain 37 tunneldomain 37 doas -n /sbin/ifconfig gif374 tunnel 10.188.4.37 10.188.4.36 doas -n /sbin/ifconfig gif374 inet 10.188.44.37/32 10.188.44.36 doas -n /sbin/ifconfig gif374 inet6 fdd7:e83e:66bc:46::37 fdd7:e83e:66bc:46::36 doas -n /sbin/ifconfig gif376 create rdomain 37 tunneldomain 37 doas -n /sbin/ifconfig gif376 tunnel fdd7:e83e:66bc:6::37 fdd7:e83e:66bc:6::36 doas -n /sbin/ifconfig gif376 inet 10.188.64.37/32 10.188.64.36 doas -n /sbin/ifconfig gif376 inet6 fdd7:e83e:66bc:66::37 fdd7:e83e:66bc:66::36 # Wait until IPv6 addresses are no longer tentative. for i in `jot 50`; do if ! { /sbin/ifconfig lo36; /sbin/ifconfig lo37; /sbin/ifconfig gif364; /sbin/ifconfig gif366; /sbin/ifconfig gif374; /sbin/ifconfig gif376; } | fgrep -q tentative; then break; fi; sleep .1; done ! { /sbin/ifconfig lo36; /sbin/ifconfig lo37; /sbin/ifconfig gif364; /sbin/ifconfig gif366; /sbin/ifconfig gif374; /sbin/ifconfig gif376; } | fgrep -q tentative ==== pfctl ==== # Create python include file containing the addresses. rm -f addr.py addr.py.tmp echo 'N1="36"' >>addr.py.tmp echo 'IF_N1="lo36"' >>addr.py.tmp echo 'DST_TUNNEL4_N1="10.188.4.37"' >>addr.py.tmp echo 'DST_TUNNEL6_N1="fdd7:e83e:66bc:6::37"' >>addr.py.tmp echo 'N2="37"' >>addr.py.tmp echo 'IF_N2="lo37"' >>addr.py.tmp echo 'DST_TUNNEL4_N2="10.188.4.36"' >>addr.py.tmp echo 'DST_TUNNEL6_N2="fdd7:e83e:66bc:6::36"' >>addr.py.tmp mv addr.py.tmp addr.py # Load the pf rules into the kernel. cat addr.py /home/src/regress/sys/net/gif/pf.conf | /sbin/pfctl -n -f - cat addr.py /home/src/regress/sys/net/gif/pf.conf | doas -n /sbin/pfctl -a regress -f - # ifconfig gif inet6 DAD created tunnel states based on old pf rules doas -n /sbin/pfctl -Fs 16 states cleared ==== run-ping-local-36 ==== # Ping localhost in routing domain 36. /sbin/ping -n -w 1 -c 1 -V 36 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.082 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.082/0.082/0.082/0.000 ms ==== run-ping-src-36 ==== # Ping source address in local routing domain. SRC_TUNNEL4_36 /sbin/ping -n -w 1 -c 1 -V 36 10.188.4.36 PING 10.188.4.36 (10.188.4.36): 56 data bytes 64 bytes from 10.188.4.36: icmp_seq=0 ttl=255 time=0.080 ms --- 10.188.4.36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.080/0.080/0.080/0.000 ms ==== run-ping-dst-36 ==== # Ping destination address in other routing domain. DST_TUNNEL4_36 /sbin/ping -n -w 1 -c 1 -V 36 10.188.4.37 PING 10.188.4.37 (10.188.4.37): 56 data bytes 64 bytes from 10.188.4.37: icmp_seq=0 ttl=255 time=0.088 ms --- 10.188.4.37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.088/0.088/0.088/0.000 ms ==== run-ping-tunnel4-36 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_36 /sbin/ping -n -w 1 -c 1 -V 36 10.188.44.37 PING 10.188.44.37 (10.188.44.37): 56 data bytes 64 bytes from 10.188.44.37: icmp_seq=0 ttl=255 time=0.130 ms --- 10.188.44.37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.130/0.130/0.130/0.000 ms ==== run-ping-tunnel6-36 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_36 /sbin/ping -n -w 1 -c 1 -V 36 10.188.64.37 PING 10.188.64.37 (10.188.64.37): 56 data bytes 64 bytes from 10.188.64.37: icmp_seq=0 ttl=255 time=0.170 ms --- 10.188.64.37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.170/0.170/0.170/0.000 ms ==== run-ping6-local-36 ==== # Ping localhost in routing domain 36. /sbin/ping6 -n -w 1 -c 1 -V 36 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.106 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.106/0.106/0.106/0.000 ms ==== run-ping6-src-36 ==== # Ping source address in local routing domain. SRC_TUNNEL6_36 /sbin/ping6 -n -w 1 -c 1 -V 36 fdd7:e83e:66bc:6::36 PING fdd7:e83e:66bc:6::36 (fdd7:e83e:66bc:6::36): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::36: icmp_seq=0 hlim=64 time=0.135 ms --- fdd7:e83e:66bc:6::36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.135/0.135/0.135/0.000 ms ==== run-ping6-dst-36 ==== # Ping destination address in other routing domain. DST_TUNNEL6_36 /sbin/ping6 -n -w 1 -c 1 -V 36 fdd7:e83e:66bc:6::37 PING fdd7:e83e:66bc:6::37 (fdd7:e83e:66bc:6::37): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::37: icmp_seq=0 hlim=64 time=0.120 ms --- fdd7:e83e:66bc:6::37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.120/0.120/0.120/0.000 ms ==== run-ping6-tunnel4-36 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_36 /sbin/ping6 -n -w 1 -c 1 -V 36 fdd7:e83e:66bc:46::37 PING fdd7:e83e:66bc:46::37 (fdd7:e83e:66bc:46::37): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::37: icmp_seq=0 hlim=64 time=0.164 ms --- fdd7:e83e:66bc:46::37 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-ping6-tunnel6-36 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_36 /sbin/ping6 -n -w 1 -c 1 -V 36 fdd7:e83e:66bc:66::37 PING fdd7:e83e:66bc:66::37 (fdd7:e83e:66bc:66::37): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::37: icmp_seq=0 hlim=64 time=0.165 ms --- fdd7:e83e:66bc:66::37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.165/0.165/0.165/0.000 ms ==== run-ping-local-37 ==== # Ping localhost in routing domain 37. /sbin/ping -n -w 1 -c 1 -V 37 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.081 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.081/0.081/0.081/0.000 ms ==== run-ping-src-37 ==== # Ping source address in local routing domain. SRC_TUNNEL4_37 /sbin/ping -n -w 1 -c 1 -V 37 10.188.4.37 PING 10.188.4.37 (10.188.4.37): 56 data bytes 64 bytes from 10.188.4.37: icmp_seq=0 ttl=255 time=0.081 ms --- 10.188.4.37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.081/0.081/0.081/0.000 ms ==== run-ping-dst-37 ==== # Ping destination address in other routing domain. DST_TUNNEL4_37 /sbin/ping -n -w 1 -c 1 -V 37 10.188.4.36 PING 10.188.4.36 (10.188.4.36): 56 data bytes 64 bytes from 10.188.4.36: icmp_seq=0 ttl=255 time=0.107 ms --- 10.188.4.36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.107/0.107/0.107/0.000 ms ==== run-ping-tunnel4-37 ==== # Ping IPv4 address through IPv4 tunnel. TUNNEL4_DST_ADDR4_37 /sbin/ping -n -w 1 -c 1 -V 37 10.188.44.36 PING 10.188.44.36 (10.188.44.36): 56 data bytes 64 bytes from 10.188.44.36: icmp_seq=0 ttl=255 time=0.119 ms --- 10.188.44.36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.119/0.119/0.119/0.000 ms ==== run-ping-tunnel6-37 ==== # Ping IPv4 address through IPv6 tunnel. TUNNEL6_DST_ADDR4_37 /sbin/ping -n -w 1 -c 1 -V 37 10.188.64.36 PING 10.188.64.36 (10.188.64.36): 56 data bytes 64 bytes from 10.188.64.36: icmp_seq=0 ttl=255 time=0.158 ms --- 10.188.64.36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.158/0.158/0.158/0.000 ms ==== run-ping6-local-37 ==== # Ping localhost in routing domain 37. /sbin/ping6 -n -w 1 -c 1 -V 37 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.103 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.103/0.103/0.103/0.000 ms ==== run-ping6-src-37 ==== # Ping source address in local routing domain. SRC_TUNNEL6_37 /sbin/ping6 -n -w 1 -c 1 -V 37 fdd7:e83e:66bc:6::37 PING fdd7:e83e:66bc:6::37 (fdd7:e83e:66bc:6::37): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::37: icmp_seq=0 hlim=64 time=0.120 ms --- fdd7:e83e:66bc:6::37 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.120/0.120/0.120/0.000 ms ==== run-ping6-dst-37 ==== # Ping destination address in other routing domain. DST_TUNNEL6_37 /sbin/ping6 -n -w 1 -c 1 -V 37 fdd7:e83e:66bc:6::36 PING fdd7:e83e:66bc:6::36 (fdd7:e83e:66bc:6::36): 56 data bytes 64 bytes from fdd7:e83e:66bc:6::36: icmp_seq=0 hlim=64 time=0.124 ms --- fdd7:e83e:66bc:6::36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.124/0.124/0.124/0.000 ms ==== run-ping6-tunnel4-37 ==== # Ping IPv6 address through IPv4 tunnel. TUNNEL4_DST_ADDR6_37 /sbin/ping6 -n -w 1 -c 1 -V 37 fdd7:e83e:66bc:46::36 PING fdd7:e83e:66bc:46::36 (fdd7:e83e:66bc:46::36): 56 data bytes 64 bytes from fdd7:e83e:66bc:46::36: icmp_seq=0 hlim=64 time=0.153 ms --- fdd7:e83e:66bc:46::36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.153/0.153/0.153/0.000 ms ==== run-ping6-tunnel6-37 ==== # Ping IPv6 address through IPv6 tunnel. TUNNEL6_DST_ADDR6_37 /sbin/ping6 -n -w 1 -c 1 -V 37 fdd7:e83e:66bc:66::36 PING fdd7:e83e:66bc:66::36 (fdd7:e83e:66bc:66::36): 56 data bytes 64 bytes from fdd7:e83e:66bc:66::36: icmp_seq=0 hlim=64 time=0.145 ms --- fdd7:e83e:66bc:66::36 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.145/0.145/0.145/0.000 ms ==== unconfig ==== doas -n /sbin/ifconfig lo36 rdomain 36 doas -n /sbin/ifconfig lo36 inet 127.0.0.1 delete doas -n /sbin/ifconfig lo36 inet6 ::1 delete doas -n /sbin/ifconfig lo36 inet 10.188.4.36 delete doas -n /sbin/ifconfig lo36 inet6 fdd7:e83e:66bc:6::36 delete doas -n /sbin/ifconfig gif364 destroy doas -n /sbin/ifconfig gif366 destroy doas -n /sbin/ifconfig lo36 destroy doas -n /sbin/ifconfig lo37 rdomain 37 doas -n /sbin/ifconfig lo37 inet 127.0.0.1 delete doas -n /sbin/ifconfig lo37 inet6 ::1 delete doas -n /sbin/ifconfig lo37 inet 10.188.4.37 delete doas -n /sbin/ifconfig lo37 inet6 fdd7:e83e:66bc:6::37 delete doas -n /sbin/ifconfig gif374 destroy doas -n /sbin/ifconfig gif376 destroy doas -n /sbin/ifconfig lo37 destroy rm -f stamp-ifconfig