==== busy-interfaces ==== # Check if interfaces are busy. ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== # Destroy interfaces. doas -n /sbin/ifconfig bridge34 destroy ifconfig: bridge34: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig vether34 destroy ifconfig: vether34: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig etherip34 destroy ifconfig: etherip34: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig pair34 destroy ifconfig: pair34: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig bridge35 destroy ifconfig: bridge35: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig vether35 destroy ifconfig: vether35: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig etherip35 destroy ifconfig: etherip35: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig pair35 destroy ifconfig: pair35: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo34 destroy ifconfig: lo34: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) doas -n /sbin/ifconfig lo35 destroy ifconfig: lo35: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) rm -f stamp-ifconfig # Create and configure interfaces. doas -n /sbin/ifconfig bridge34 create rdomain 34 doas -n /sbin/ifconfig vether34 create rdomain 34 doas -n /sbin/ifconfig etherip34 create rdomain 34 doas -n /sbin/ifconfig pair34 create rdomain 34 doas -n /sbin/ifconfig bridge35 create rdomain 35 doas -n /sbin/ifconfig vether35 create rdomain 35 doas -n /sbin/ifconfig etherip35 create rdomain 35 doas -n /sbin/ifconfig pair35 create rdomain 35 doas -n /sbin/ifconfig pair34 172.31.0.1/24 doas -n /sbin/ifconfig pair35 172.31.0.2/24 patch pair34 doas -n /sbin/ifconfig vether34 192.168.0.1 doas -n /sbin/ifconfig vether35 192.168.0.2 doas -n /sbin/ifconfig etherip34 tunneldomain 34 doas -n /sbin/ifconfig etherip35 tunneldomain 35 doas -n /sbin/ifconfig bridge34 add vether34 add etherip34 up doas -n /sbin/ifconfig bridge35 add vether35 add etherip35 up doas -n /sbin/ifconfig etherip34 tunnel 172.31.0.1 172.31.0.2 up doas -n /sbin/ifconfig etherip35 tunnel 172.31.0.2 172.31.0.1 up ==== run-ping-1-2 ==== /sbin/ping -n -w 1 -c 1 -V 34 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.365 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.365/0.365/0.365/0.000 ms ==== run-ping-2-1 ==== /sbin/ping -n -w 1 -c 1 -V 35 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.244 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.244/0.244/0.244/0.000 ms ==== unconfig ==== # Destroy interfaces. doas -n /sbin/ifconfig bridge34 destroy doas -n /sbin/ifconfig vether34 destroy doas -n /sbin/ifconfig etherip34 destroy doas -n /sbin/ifconfig pair34 destroy doas -n /sbin/ifconfig bridge35 destroy doas -n /sbin/ifconfig vether35 destroy doas -n /sbin/ifconfig etherip35 destroy doas -n /sbin/ifconfig pair35 destroy doas -n /sbin/ifconfig lo34 destroy doas -n /sbin/ifconfig lo35 destroy rm -f stamp-ifconfig