2010年10月8日

查看Windows電腦路由表-Route Print

Route,可以用來查詢路由表及新增或移除某個路由路徑

Network Destination: 表示路由的網路目的地
Netmask:表示子網路遮罩
Gateway:封包欲送往的IP位址,若目的IP位址與Netmask做AND邏輯運算,剛好與 Network Destination 相同,封包就會送到此 Gateway 的 IP 位址。
Interface: 是此電腦送出封包的 IP 位址。
Metric: 則是傳送成本的參考值,數字愈小,表示優先權愈大


route print 顯示目前的路由表
route add 用來加入路由路徑
ex:route add 192.168.11.0 mask 255.255.255.0 192.168.1.253 if 0x2 metric 1
指出 Network Destination、Netmask、Gateway、Interface 和 metric
route -p add 用來永久加入路由路徑,使用-p 參數可以保留路徑設定,不會因電腦重開機而不見
ex:route -p add 192.168.11.0 mask 255.255.255.0 192.168.1.253 if 0x2 metric 1
route delete用來刪除路由路徑
ex:route delete 192.168.11.0 mask 255.255.255.0

1 回應:

Zangune 提到...

I cannot read chinese, but I was searching for a picture of a chinese route print output and I found it here, thanks.

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.