route DELETE 0.0.0.0
route ADD 10.0.0.0 MASK 255.0.0.0 10.10.11.254 METRIC 10
route ADD 172.16.0.0 MASK 255.240.0.0 10.10.11.254 METRIC 10
route ADD 192.168.0.0 MASK 255.255.0.0 10.10.11.254 METRIC 10
route ADD 0.0.0.0 MASK 0.0.0.0 123.123.123.254 METRIC 10
echo off
可以下route print看routing table
存成AAA.bat丟進
C:\Documents and Settings\lennytseng\「開始」功能表\程式集\啟動
就會開機執行~
linux的話
ip route add 192.168.10.0/24 via 192.168.5.100 dev eth0
ip route show
沒有留言:
張貼留言