可以,
設兩條預設路由,METRIC訂不一樣的試看看。
route PRINT
route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
route PRINT
route PRINT 157* .... Only prints those matching 157*
route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
route PRINT
route DELETE 157.0.0.0
route PRINT
在網卡的TCP/IP設定, 新增一筆Gateway就可以了,
請參考附圖:
route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric X
route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.254 metric Y