1 #!/bin/bash
2 #use ping 130.130.26.1
3 #by:cx 20120726
4 export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
5 if ping -c 1 130.130.26.1 >/dev/null 2>&1 ; then
6
7 echo "yes" && exit 0
8 else
9 route add -net 130.130.26.0 netmask 255.255.255.0 gw 130.130.25.1
10 route add -net 130.130.66.0 netmask 255.255.255.0 gw 130.130.25.1
11 route add -net 130.130.28.0 netmask 255.255.255.0 gw 130.130.25.1
12 route add -net 10.4.4.0 netmask 255.255.255.0 gw 130.130.25.1
13 route add -net 130.130.132.0 netmask 255.255.255.0 gw 130.130.25.1
14 fi
阅读(477) | 评论(0) | 转发(0) |