START sys/net/etherip 2024-11-15T04:55:26Z ==== busy-interfaces ==== # Check if interfaces are busy. ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== # Destroy interfaces. /sbin/ifconfig bridge11 destroy ifconfig: bridge11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig vether11 destroy ifconfig: vether11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig etherip11 destroy ifconfig: etherip11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig pair11 destroy ifconfig: pair11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig bridge12 destroy ifconfig: bridge12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig vether12 destroy ifconfig: vether12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig etherip12 destroy ifconfig: etherip12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig pair12 destroy ifconfig: pair12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 destroy ifconfig: lo11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo12 destroy ifconfig: lo12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) rm -f stamp-ifconfig # Create and configure interfaces. /sbin/ifconfig bridge11 create rdomain 11 /sbin/ifconfig vether11 create rdomain 11 /sbin/ifconfig etherip11 create rdomain 11 /sbin/ifconfig pair11 create rdomain 11 /sbin/ifconfig bridge12 create rdomain 12 /sbin/ifconfig vether12 create rdomain 12 /sbin/ifconfig etherip12 create rdomain 12 /sbin/ifconfig pair12 create rdomain 12 /sbin/ifconfig pair11 172.31.0.1/24 /sbin/ifconfig pair12 172.31.0.2/24 patch pair11 /sbin/ifconfig vether11 192.168.0.1 /sbin/ifconfig vether12 192.168.0.2 /sbin/ifconfig etherip11 tunneldomain 11 /sbin/ifconfig etherip12 tunneldomain 12 /sbin/ifconfig bridge11 add vether11 add etherip11 up /sbin/ifconfig bridge12 add vether12 add etherip12 up /sbin/ifconfig etherip11 tunnel 172.31.0.1 172.31.0.2 up /sbin/ifconfig etherip12 tunnel 172.31.0.2 172.31.0.1 up ==== run-ping-1-2 ==== /sbin/ping -n -w 1 -c 1 -V 11 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.158 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.158/0.158/0.158/0.000 ms ==== run-ping-2-1 ==== /sbin/ping -n -w 1 -c 1 -V 12 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.049 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.049/0.049/0.049/0.000 ms ==== unconfig ==== # Destroy interfaces. /sbin/ifconfig bridge11 destroy /sbin/ifconfig vether11 destroy /sbin/ifconfig etherip11 destroy /sbin/ifconfig pair11 destroy /sbin/ifconfig bridge12 destroy /sbin/ifconfig vether12 destroy /sbin/ifconfig etherip12 destroy /sbin/ifconfig pair12 destroy /sbin/ifconfig lo11 destroy /sbin/ifconfig lo12 destroy rm -f stamp-ifconfig PASS sys/net/etherip Duration 0m01.71s