8 echo "Ethernet Bridge stress test"
10 IP
=`/sbin/ifconfig $ETH0 | sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p'`
17 sleep $
(($RANDOM % 10))
39 echo "1. Creating bridge $BR"
42 echo -n "2. Add ethernets"
43 ifconfig
$ETH0 0.0.0.0
46 ifconfig
$ETH2 0.0.0.0
50 echo "4. Starting add/del interface" $ETH1
51 ifconfig
$ETH1 0.0.0.0
55 echo "5. Starting add/remove bridge"
59 echo "6. Starting up/down" $ETH1
63 trap "kill $ipid $npid $upid" 1 2 3 15