|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
转自:http://www.linuxsir.com/bbs/showthread.php...threadid=156674现在有好多网吧都进了中国电信和中国网通两条光缆,但由于没有做策略路由,导致网络并没有得到优化,我费了好大的劲,终于把网通的ip段找全了,把它贴出来,希望对大家有点用:)
CODE
YOU CAN ADD THESE IP TO YOUR ROUTING-TABLES TO OPTIMIZE YOUR NETWORK,BUT BE SURE THAT YOU ARE USING TWO IP ADDRESS,ONE #BELONGS TO CNCGROUP AND THE OTHER BELONGS TO CHINA TELECOM.USE CHINA TELECOM'S GATEWAY IP ADDRESS BE YOUR DEFULT GATEWAY.#IF YOU ARE USING MSWINDOWS,IN DOS-MODE,USE THESE COMMANDS,OR YOU CAN COPY THE COMMANDS TO A NEW *.TXT FILE THEN SAVE IT AS A# *.BAT FILE AND RUN IT#!ATTENTION!BEFORE USING,YOU SHOUD FOUND THE STRING:'yourgateway' AND CHANGE IT TO YOUR CNCGROUP'S GATEWAY IP ADDRESS AT ALL!cd \route -p add 60.0.0.0 mask 255.248.0.0 'yourgateway' metric 1route -p add 60.8.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 60.10.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 60.12.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 60.13.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 60.13.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 60.16.0.0 mask 255.240.0.0 'yourgateway' metric 1route -p add 60.208.0.0 mask 255.248.0.0 'yourgateway' metric 1route -p add 60.216.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 60.220.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 61.48.0.0 mask 255.248.0.0 'yourgateway' metric 1route -p add 61.133.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.135.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.136.64.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 61.137.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.138.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.138.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 61.139.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 61.148.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 61.156.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.158.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.159.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 61.161.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 61.161.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.167.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.168.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.176.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.179.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.180.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 61.181.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.182.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 61.189.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 202.96.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 202.96.64.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 202.97.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 202.98.0.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 202.99.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 202.102.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 202.102.224.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 202.106.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 202.107.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 202.108.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 202.110.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 202.110.192.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 202.111.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 218.7.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 218.8.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 218.12.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 218.24.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 218.28.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 218.56.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 218.60.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 218.67.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 218.68.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.0.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 221.4.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.6.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 221.7.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.7.64.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 221.7.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 221.8.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.10.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 221.11.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 221.11.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.11.192.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 221.12.0.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 221.12.128 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.13.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.13.64.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 221.13.128.0 mask 255.255.128.0 'yourgateway' metric 1route -p add 221.14.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.192.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 221.196.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.198.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 221.199.0.0 mask 255.255.224.0 'yourgateway' metric 1route -p add 221.199.32.0 mask 255.255.240.0 'yourgateway' metric 1route -p add 221.199.128.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.199.192.0 mask 255.255.240.0 'yourgateway' metric 1route -p add 221.200.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 221.204.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.207.0.0 mask 255.255.192.0 'yourgateway' metric 1route -p add 221.208.0.0 mask 255.252.0.0 'yourgateway' metric 1route -p add 221.212.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 221.216.0.0 mask 255.248.0.0 'yourgateway' metric 1route -p add 222.128.0.0 mask 255.240.0.0 'yourgateway' metric 1route -p add 222.160.0.0 mask 255.254.0.0 'yourgateway' metric 1route -p add 222.162.0.0 mask 255.255.0.0 'yourgateway' metric 1route -p add 222.163.0.0 mask 255.255.224.0 'yourgateway' metric 1exit#IF YOU ARE USING LINUX,YOU CAN DO:vi /etc/rc.d/rc.local AND ADD THE IP ADDRESS IN IT,OR YOU CAN ALSO COPY THE COMMADNS BELOW# AND PASTE IT IN YOUR FILE /etc/rc.d/rc.localroute add -net 60.0.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1route add -net 60.8.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 60.10.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 60.12.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 60.13.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 60.13.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 60.16.0.0 netmask 255.240.0.0 gw 'yourgateway' metric 1route add -net 60.208.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1route add -net 60.216.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 60.220.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 61.48.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1route add -net 61.133.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.135.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.136.64.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 61.137.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.138.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.138.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 61.139.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 61.148.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 61.156.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.158.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.159.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 61.161.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 61.161.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.167.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.168.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.176.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.179.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.180.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 61.181.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.182.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 61.189.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 202.96.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 202.96.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 202.97.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 202.98.0.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 202.99.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 202.102.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 202.102.224.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 202.106.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 202.107.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 202.108.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 202.110.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 202.110.192.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 202.111.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 218.7.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 218.8.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 218.12.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 218.24.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 218.28.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 218.56.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 218.60.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 218.67.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 218.68.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.0.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 221.4.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.6.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 221.7.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.7.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 221.7.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 221.8.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.10.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 221.11.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 221.11.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.11.192.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 221.12.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 221.12.128 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.13.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.13.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 221.13.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1route add -net 221.14.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.192.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 221.196.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.198.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 221.199.0.0 netmask 255.255.224.0 gw 'yourgateway' metric 1route add -net 221.199.32.0 netmask 255.255.240.0 gw 'yourgateway' metric 1route add -net 221.199.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.199.192.0 netmask 255.255.240.0 gw 'yourgateway' metric 1route add -net 221.200.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 221.204.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.207.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1route add -net 221.208.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1route add -net 221.212.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 221.216.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1route add -net 222.128.0.0 netmask 255.240.0.0 gw 'yourgateway' metric 1route add -net 222.160.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1route add -net 222.162.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1route add -net 222.163.0.0 netmask 255.255.224.0 gw 'yourgateway' metric 1#OK!THAT'S ALL!AND IF YOU HAVE FOUND THERE ANY IP ADDRESS I DIDN'T ADD,PLEASE ADD IT!THANK YOU!HOLP YOU HAVA A PERFECT# NETWORK!SEE YOU~~!^_^ |
|