==== busy-interfaces ==== # Check if interfaces are busy. ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== # Destroy interfaces. doas -n /sbin/ifconfig bridge13 destroy ifconfig: bridge13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig vether13 destroy ifconfig: vether13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig etherip13 destroy ifconfig: etherip13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig pair13 destroy ifconfig: pair13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig bridge14 destroy ifconfig: bridge14: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig vether14 destroy ifconfig: vether14: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig etherip14 destroy ifconfig: etherip14: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig pair14 destroy ifconfig: pair14: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo13 destroy ifconfig: lo13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo14 destroy ifconfig: lo14: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) rm -f stamp-ifconfig # Create and configure interfaces. doas -n /sbin/ifconfig bridge13 create rdomain 13 doas -n /sbin/ifconfig vether13 create rdomain 13 doas -n /sbin/ifconfig etherip13 create rdomain 13 doas -n /sbin/ifconfig pair13 create rdomain 13 doas -n /sbin/ifconfig bridge14 create rdomain 14 doas -n /sbin/ifconfig vether14 create rdomain 14 doas -n /sbin/ifconfig etherip14 create rdomain 14 doas -n /sbin/ifconfig pair14 create rdomain 14 doas -n /sbin/ifconfig pair13 172.31.0.1/24 doas -n /sbin/ifconfig pair14 172.31.0.2/24 patch pair13 doas -n /sbin/ifconfig vether13 192.168.0.1 doas -n /sbin/ifconfig vether14 192.168.0.2 doas -n /sbin/ifconfig etherip13 tunneldomain 13 doas -n /sbin/ifconfig etherip14 tunneldomain 14 doas -n /sbin/ifconfig bridge13 add vether13 add etherip13 up doas -n /sbin/ifconfig bridge14 add vether14 add etherip14 up doas -n /sbin/ifconfig etherip13 tunnel 172.31.0.1 172.31.0.2 up doas -n /sbin/ifconfig etherip14 tunnel 172.31.0.2 172.31.0.1 up ==== run-ping-1-2 ==== /sbin/ping -n -w 1 -c 1 -V 13 192.168.0.2 PING 192.168.0.2 (192.168.0.2): 56 data bytes 64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=0.372 ms --- 192.168.0.2 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.372/0.372/0.372/0.000 ms ==== run-ping-2-1 ==== /sbin/ping -n -w 1 -c 1 -V 14 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=0.167 ms --- 192.168.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.167/0.167/0.167/0.000 ms ==== unconfig ==== # Destroy interfaces. doas -n /sbin/ifconfig bridge13 destroy doas -n /sbin/ifconfig vether13 destroy doas -n /sbin/ifconfig etherip13 destroy doas -n /sbin/ifconfig pair13 destroy doas -n /sbin/ifconfig bridge14 destroy doas -n /sbin/ifconfig vether14 destroy doas -n /sbin/ifconfig etherip14 destroy doas -n /sbin/ifconfig pair14 destroy doas -n /sbin/ifconfig lo13 destroy doas -n /sbin/ifconfig lo14 destroy rm -f stamp-ifconfig