diff --git a/test-download b/test-download new file mode 100755 index 0000000..45c075d --- /dev/null +++ b/test-download @@ -0,0 +1,7 @@ +#!/bin/bash +# Test download speed. +# If you want to download something other than cachefly 100MB, specify it on the command line. +DEFAULT_URI="http://cachefly.cachefly.net/100mb.test" +URI=${1:-$DEFAULT_URI} + +wget $URI -O /dev/null diff --git a/test-inbound-routing b/test-inbound-routing new file mode 100755 index 0000000..dce15e8 --- /dev/null +++ b/test-inbound-routing @@ -0,0 +1,8 @@ +#!/bin/bash +# Run tcpdump to show ICMP packets coming to the specified interface, by default eth0. +# From some remote host, ping the connected IP of the bonder while running this script. +# To use a different interface, specify it on the command line. +DEFAULT_IF="eth0" +IF=${1:-$DEFAULT_IF} + +tcpdump -n -i $IF icmp diff --git a/test-outbound-routing b/test-outbound-routing new file mode 100755 index 0000000..4389c0b --- /dev/null +++ b/test-outbound-routing @@ -0,0 +1,8 @@ +#!/bin/bash +# Run a variety of tests against well-known sites to determine if there are +# any outbound routing issues. +for HOST in google.com yahoo.com facebook.com msn.com akamai.com; do + echo Testing to $HOST... + ping -q -A -c 100 $HOST + mtr --report --report-wide -c 100 $HOST +done