ivven 发表于 2005-8-14 19:52:30

Policy Based Routing(PBR)of Chinanetcom

#A LONG'S PRODUCE

        \\\|///
      \\ .-.- //
      ( .@.@ )
+-------oOOo-----(_)-----oOOo---------+
|                                  |
|       LONG'S PRODUCE         |
|       WISH TO BE THE BEST    |
|                   |
+---------------------Oooo------------+

#CNCGROUP IP ADDRESS

#INFORMATION FROM HTTP://WWW.APNIC.NET NEATEHED BY LONG

#60.0.0.0 - 60.10.255.255                 CNCGROUP Hebei Province Network
#60.12.0.0 - 60.12.255.255                 CNCGroup Zhejiang province network
#60.13.0.0 - 60.13.63.255                 CNCGroup Gansu province network
#60.13.128.0 - 60.13.255.255                 CNCGROUP XinJiang Province Network
#60.16.0.0 - 60.23.255.255                CNCGROUP Liaoning province network
#60.24.0.0 - 60.30.255.255                 CNCGROUP Tianjin province network
#60.31.0.0 - 60.31.255.255                CNCGROUP Neimeng Province Network
#60.208.0.0 - 60.217.255.255                 CNCGROUP Shandong province network
#60.220.0.0 - 60.223.255.255                 CNCGROUP Shanxi Province Network

#61.48.0.0 - 61.51.255.255                CNCGROUP Beijing province network
#61.52.0.0 - 61.54.255.255                CNCGROUP Henan province network
#61.55.0.0 - 61.55.255.255                CNCGROUP Hebei province network
#61.133.0.0 - 61.133.127.255                CNCGROUP Shandong province network
#61.134.96.0 - 61.134.127.255                CNCGROUP Neimenggu province network
#61.135.0.0 - 61.135.255.255                CNCGROUP Beijing province network
#61.136.64.0 - 61.136.127.255                CNCGROUP Henan province network
#61.137.128.0 - 61.137.255.255                CNCGROUP Liaoning province network
#61.138.0.0 - 61.138.63.255                CNCGROUP Heilongjiang province network
#61.138.64.0 - 61.138.127.255                CNCGROUP Neimenggu province network
#61.138.128.0 - 61.138.191.255                CNCGROUP Jilin province network
#61.139.128.0 - 61.139.191.255                CNCGROUP Jilin province network
#61.148.0.0 - 61.149.255.255                 CNCGROUP Beijing province network
#61.156.0.0 - 61.156.255.255                CNCGROUP Shandong province network
#61.158.128.0 - 61.158.255.255                CNCGROUP Henan province network
#61.159.0.0 - 61.159.63.255                CNCGROUP Hebei province network
#61.161.0.0 - 61.161.63.255                CNCGROUP Jilin province network
#61.161.128.0 - 61.161.255.255                CNCGROUP Liaoning province network
#61.162.0.0 - 61.162.255.255                CNCGROUP Shandong province network
#61.163.0.0 - 61.163.255.255                CNCGROUP Henan province network
#61.167.0.0 - 61.167.255.255                CNCGROUP Heilongjiang province network
#61.168.0.0 - 61.168.255.255                CNCGROUP Henan province network
#61.176.0.0 - 61.176.255.255                CNCGROUP Liaoning province network
#61.179.0.0 - 61.179.255.255                CNCGROUP Shandong province network
#61.180.128.0 - 61.180.255.255                CNCGROUP Heilongjiang province network
#61.181.0.0 - 61.181.255.255                CNCGROUP Tianjin province network
#61.182.0.0 - 61.182.255.255                CNCGROUP Hebei province network
#61.189.0.0 - 61.189.127.255                CNCGROUP Liaoning province network

#202.96.0.0 - 202.96.63.255                CNCGROUP Beijing province network
#202.96.64.0 - 202.96.95.255                CNCGROUP Liaoning province network
#202.97.128.0 - 202.97.159.255                CNCGROUP Shanxi province network
#202.97.160.0 - 202.97.191.255                CNCGROUP Liaoning province network
#202.97.192.0 - 202.97.255.255                CNCGROUP Heilongjiang province network
#202.98.0.0 - 202.98.31.255                CNCGROUP Jilin province network
#202.99.0.0 - 202.99.63.255                CNCGROUP Beijing province network
#202.99.64.0 - 202.99.127.255                CNCGROUP Tianjin province network
#202.99.128.0 - 202.99.191.255                CNCGROUP Hebei province network
#202.99.192.0 - 202.99.223.255                CNCGROUP Shanxi province network
#202.99.224.0 - 202.99.255.255                CNCGROUP Neimenggu province network
#202.102.128.0 - 202.102.191.255        CNCGROUP Shandong province network
#202.102.224.0 - 202.102.255.255        CNCGROUP Henan province network
#202.106.0.0 - 202.106.255.255                CNCGROUP Beijing province network
#202.107.0.0 - 202.107.127.255                CNCGROUP Liaoning province network
#202.108.0.0 - 202.108.255.255                CNCGROUP Beijing province network
#202.110.0.0 - 202.110.63.255                CNCGROUP Liaoning province network
#202.110.64.0 - 202.110.127.255                CNCGROUP Henan province network
#202.110.192.0 - 202.110.255.255        CNCGROUP Shandong Province Network
#202.111.128.0 - 202.111.159.255        CNCGROUP Henan province network
#202.111.160.0 - 202.111.191.255        CNCGROUP Jilin province network

#218.7.0.0 - 218.10.255.255                CNCGROUP Heilongjiang province network
#218.11.0.0 - 218.12.255.255                CNCGROUP Hebei province network
#218.24.0.0 - 218.25.255.255                CNCGROUP Liaoning province network
#218.26.0.0 - 218.26.255.255                CNCGROUP Shanxi province network
#218.27.0.0 - 218.27.255.255                CNCGROUP Jilin province network
#218.28.0.0 - 218.29.255.255                CNCGROUP Henan province network
#218.56.0.0 - 218.59.255.255                CNCGROUP Shandong province network
#218.60.0.0 - 218.61.255.255                CNCGROUP Liaoning province network
#218.67.128.0 - 218.69.255.255                CNCGROUP Tianjin province network

#221.0.0.0 - 221.3.127.255                 CNCGROUP Shandong province network
#221.3.128.0 - 221.3.255.255                 CNCGroup Yunnan province network
#221.4.0.0 - 221.5.127.255                 CNCGroup Guangdong province network
#221.5.128.0 - 221.5.255.255                 CNCGroup Chongqing province network
#221.6.0.0 - 221.6.255.255                 CNCGroup Jiangsu province network
#221.7.0.0 - 221.7.31.255                 CNCGroup Xinjiang province network
#221.7.32.0 - 221.7.63.255                CNCGroup Gansu province network
#221.7.64.0 - 221.7.95.255                 CNCGroup Chongqing province network
#221.7.128.0 - 221.7.255.255                 CNCGroup Guangxi province network
#221.8.0.0 - 221.9.255.255                 CNCGroup JILIN province network
#221.10.0.0 - 221.10.255.255                CNCGroup SiChuan province network
#221.11.0.0 - 221.11.127.255                 CNCGroup Shannxi province network
#221.11.128.0 - 221.11.223.255                 CNCGroup Hainan province network
#221.12.0.0 - 221.12.191.255                CNC Group Zhejiang province network
#221.13.0.0 - 221.13.63.255                CNC Group Guizhou province network
#221.13.64.0 - 221.13.95.255                CNC Group Xizang province network
#221.13.128.0 - 221.15.255.255                CNCGROUP Henan Province Network
#221.192.0.0 - 221.195.255.255                CNCGROUP Hebei Province Network
#221.196.0.0 - 221.198.255.255                CNCGROUP Tianjin Province Network
#221.199.0.0 - 221.199.47.255                CNC Group Ningxia province network
#221.199.128.0 - 221.199.207.255        CNCGROUP Neimeng Province Network
#221.200.0.0 - 221.203.255.255                CNCGROUP Liaoning Province Network
#221.204.0.0 - 221.205.255.255                CNCGROUP Shanxi Province Network
#221.207.0.0 - 221.207.63.255                CNC Group QingHai province network
#221.208.0.0 - 221.212.255.255                CNCGROUP Heilongjiang Province Network
#221.213.0.0 - 221.213.255.255                CNC Group Yunnan province network
#221.216.0.0 - 221.223.255.255                CNCGROUP Beijing province network

#222.128.0.0 - 222.131.255.255                CNCGROUP Beijing province network
#222.132.0.0 - 222.135.255.255                CNCGROUP Shandong province network
#222.136.0.0 - 222.143.255.255                CNCGROUP Henan province network
#222.160.0.0 - 222.163.31.255                CNCGROUP Jilin province network

#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 1
route -p add 60.8.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 60.10.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 60.12.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 60.13.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 60.13.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 60.16.0.0 mask 255.240.0.0 'yourgateway' metric 1
route -p add 60.208.0.0 mask 255.248.0.0 'yourgateway' metric 1
route -p add 60.216.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 60.220.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 61.48.0.0 mask 255.248.0.0 'yourgateway' metric 1
route -p add 61.133.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.135.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.136.64.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 61.137.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.138.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.138.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 61.139.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 61.148.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 61.156.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.158.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.159.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 61.161.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 61.161.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.167.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.168.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.176.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.179.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.180.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 61.181.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.182.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 61.189.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 202.96.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 202.96.64.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 202.97.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 202.98.0.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 202.99.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 202.102.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 202.102.224.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 202.106.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 202.107.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 202.108.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 202.110.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 202.110.192.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 202.111.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 218.7.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 218.8.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 218.12.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 218.24.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 218.28.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 218.56.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 218.60.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 218.67.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 218.68.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.0.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 221.4.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.6.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 221.7.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.7.64.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 221.7.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 221.8.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.10.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 221.11.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 221.11.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.11.192.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 221.12.0.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 221.12.128 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.13.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.13.64.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 221.13.128.0 mask 255.255.128.0 'yourgateway' metric 1
route -p add 221.14.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.192.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 221.196.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.198.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 221.199.0.0 mask 255.255.224.0 'yourgateway' metric 1
route -p add 221.199.32.0 mask 255.255.240.0 'yourgateway' metric 1
route -p add 221.199.128.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.199.192.0 mask 255.255.240.0 'yourgateway' metric 1
route -p add 221.200.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 221.204.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.207.0.0 mask 255.255.192.0 'yourgateway' metric 1
route -p add 221.208.0.0 mask 255.252.0.0 'yourgateway' metric 1
route -p add 221.212.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 221.216.0.0 mask 255.248.0.0 'yourgateway' metric 1
route -p add 222.128.0.0 mask 255.240.0.0 'yourgateway' metric 1
route -p add 222.160.0.0 mask 255.254.0.0 'yourgateway' metric 1
route -p add 222.162.0.0 mask 255.255.0.0 'yourgateway' metric 1
route -p add 222.163.0.0 mask 255.255.224.0 'yourgateway' metric 1
exit

#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.local

route add -net 60.0.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1
route add -net 60.8.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 60.10.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 60.12.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 60.13.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 60.13.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 60.16.0.0 netmask 255.240.0.0 gw 'yourgateway' metric 1
route add -net 60.208.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1
route add -net 60.216.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 60.220.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 61.48.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1
route add -net 61.133.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.135.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.136.64.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 61.137.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.138.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.138.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 61.139.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 61.148.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 61.156.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.158.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.159.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 61.161.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 61.161.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.167.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.168.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.176.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.179.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.180.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 61.181.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.182.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 61.189.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 202.96.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 202.96.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 202.97.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 202.98.0.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 202.99.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 202.102.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 202.102.224.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 202.106.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 202.107.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 202.108.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 202.110.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 202.110.192.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 202.111.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 218.7.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 218.8.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 218.12.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 218.24.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 218.28.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 218.56.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 218.60.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 218.67.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 218.68.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.0.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 221.4.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.6.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 221.7.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.7.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 221.7.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 221.8.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.10.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 221.11.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 221.11.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.11.192.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 221.12.0.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 221.12.128 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.13.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.13.64.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 221.13.128.0 netmask 255.255.128.0 gw 'yourgateway' metric 1
route add -net 221.14.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.192.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 221.196.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.198.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route add -net 221.199.0.0 netmask 255.255.224.0 gw 'yourgateway' metric 1
route add -net 221.199.32.0 netmask 255.255.240.0 gw 'yourgateway' metric 1
route add -net 221.199.128.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.199.192.0 netmask 255.255.240.0 gw 'yourgateway' metric 1
route add -net 221.200.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 221.204.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.207.0.0 netmask 255.255.192.0 gw 'yourgateway' metric 1
route add -net 221.208.0.0 netmask 255.252.0.0 gw 'yourgateway' metric 1
route add -net 221.212.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 221.216.0.0 netmask 255.248.0.0 gw 'yourgateway' metric 1
route add -net 222.128.0.0 netmask 255.240.0.0 gw 'yourgateway' metric 1
route add -net 222.160.0.0 netmask 255.254.0.0 gw 'yourgateway' metric 1
route add -net 222.162.0.0 netmask 255.255.0.0 gw 'yourgateway' metric 1
route 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~~!^_^

jiangjames 发表于 2005-8-14 20:54:08

这个已经是很久以前的了,都不全了
页: [1]
查看完整版本: Policy Based Routing(PBR)of Chinanetcom