Add routing test scripts.

This commit is contained in:
Matt Fox 2014-01-22 11:14:27 -08:00
parent 7a7b511495
commit 1f3ac7dfbe
3 changed files with 23 additions and 0 deletions

7
test-download Executable file
View File

@ -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

8
test-inbound-routing Executable file
View File

@ -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

8
test-outbound-routing Executable file
View File

@ -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