ashi009 / bestroutetb

Generating the most optimized route table for VPN users.
MIT License
879 stars 99 forks source link

use iproute 2 batch mode to speed up. #11

Closed zhou13 closed 11 years ago

zhou13 commented 11 years ago

See comments:http://www.solidot.org/story?sid=32486

Refer to https://github.com/jimmyxu/chnroutes

Example:

#!/bin/bash -

ip -batch - <<EOF
route add 1.0.1.0/24 $OLDGW
route add 1.0.2.0/23 $OLDGW
route add 1.0.8.0/21 $OLDGW
EOF
ashi009 commented 11 years ago

It's already supported. check out 格式化规则文件