Gateway
指定超過由網(wǎng)絡(luò)目標(biāo)和子網(wǎng)掩碼定義的可達(dá)到的地址集的前一個或下一個躍點 IP 地址。對于本地連接的子網(wǎng)路由,網(wǎng)關(guān)地址是分配給連接子網(wǎng)接口的 IP 地址。對于要經(jīng)過一個或多個路由器才可用到的遠(yuǎn)程路由,網(wǎng)關(guān)地址是一個分配給相鄰路由器的、可直接達(dá)到的 IP 地址。
metric Metric
為路由指定所需躍點數(shù)的整數(shù)值(范圍是 1 ~ 9999),它用來在路由表里的多個路由中選擇與轉(zhuǎn)發(fā)包中的目標(biāo)地址最為匹配的路由。所選的路由具有最少的躍點數(shù)。躍點數(shù)能夠反映躍點的數(shù)量、路徑的速度、路徑可靠性、路徑吞吐量以及管理屬性。
if Interface
指定目標(biāo)可以到達(dá)的接口的接口索引。使用 route print 命令可以顯示接口及其對應(yīng)接口索引的列表。對于接口索引可以使用十進(jìn)制或十六進(jìn)制的值。對于十六進(jìn)制值,要在十六進(jìn)制數(shù)的前面加上 0x。忽略 if 參數(shù)時,接口由網(wǎng)關(guān)地址確定。
/?
在命令提示符顯示幫助。
注釋
路由表中 躍點數(shù) 一列的值較大是由于允許 TCP/IP 根據(jù)每個 LAN接口的 IP 地址、子網(wǎng)掩碼和默認(rèn)網(wǎng)關(guān)的配置自動確定路由表中路由的躍點數(shù)造成的。默認(rèn)啟動的自動確定接口躍點數(shù)確定了每個接口的速度,調(diào)整了每個接口的路由躍點數(shù),因此最快接口所創(chuàng)建的路由具有最低的躍點數(shù)。要刪除大躍點數(shù),請在每個 LAN 連接的 TCP/IP 協(xié)議的高級屬性中禁用自動確定接口躍點數(shù)。
route 的命令
routing ip add/delete/set/show interface 在指定接口上添加、刪除、配置或顯示常規(guī) IP 路由設(shè)置。
routing ip add/delete/set/show filter 在指定接口上添加、刪除、配置或顯示 IP 數(shù)據(jù)包篩選器。
routing ip add/delete/show boundary 在指定接口上添加、刪除或顯示多播邊界設(shè)置。
routing ip add/set ipiptunnel 添加或配置 IP 中的 IP 接口。
routing ip add/delete/set/show rtmroute 添加、配置或顯示不持續(xù)的路由表管理器路由。
routing ip add/delete/set/show persistentroute 添加、刪除、配置或顯示持續(xù)路由。
routing ip add/delete/set/show preferenceforprotocol 添加、刪除、配置或顯示路由協(xié)議的優(yōu)先級。
routing ip add/delete/set/show scope 添加、刪除或顯示多播作用域。
routing ip set/show loglevel 配置或顯示全局 IP 記錄等級。
routing ip show helper 顯示 IP 的所有 Netsh 實用程序子環(huán)境。
routing ip show protocol 顯示所有正在運行的 IP 路由協(xié)議。
routing ip show mfe 顯示多播轉(zhuǎn)發(fā)項。
routing ip show mfestats 顯示多播轉(zhuǎn)發(fā)項統(tǒng)計。
routing ip show boundarystats 顯示 IP 多播邊界。
routing ip show rtmdestinations 顯示路由表管理器路由表中的目標(biāo)。
routing ip show rtmroutes 顯示路由表管理器路由表中的路由。
routing ip nat set/show global 配置或顯示全局網(wǎng)絡(luò)地址轉(zhuǎn)換 (NAT) 設(shè)置。
routing ip nat add/delete/set/show interface 添加、刪除、配置或顯示指定接口的 NAT 設(shè)置。
routing ip nat add/delete addressrange 在 NAT 接口公用地址池中添加或刪除一個地址范圍。
routing ip nat add/delete addressmapping 添加或刪除 NAT 地址映射。
routing ip nat add/delete portmapping 添加或刪除 NAT 端口映射。
routing ip autodhcp set/show global 配置或顯示全局 DHCP 分配器參數(shù)。
routing ip autodhcp set/show interface 配置或顯示指定接口的 DHCP 分配器設(shè)置。
routing ip autodhcp add/delete exclusion 在 DHCP 分配器地址范圍中添加或刪除一個排除范圍。
routing ip dnsproxy set/show global 配置或顯示全局 DNS 代理參數(shù)。
routing ip dnsproxy set/show interface 配置或顯示指定接口的 DNS 代理參數(shù)。
routing ip igmp set/show global 配置或顯示 IGMP 全局設(shè)置。
routing ip igmp add/delete/set/show interface 在指定接口上添加、刪除、配置或顯示 IGMP。
routing ip igmp add/delete staticgroup 添加或刪除指定接口的靜態(tài)多播組。
routing ip igmp show grouptable 顯示 IGMP 主機(jī)組表。
routing ip igmp show ifstats 顯示每個接口的 IGMP 統(tǒng)計。
routing ip igmp show iftable 顯示每個接口的 IGMP 主機(jī)組。
routing ip igmp show proxygrouptable 顯示 IGMP 代理接口的 IGMP 組表。
routing ip igmp show rasgrouptable 顯示遠(yuǎn)程訪問服務(wù)器所使用的 Internet 接口的組表。
routing ip ospf set/show global 配置或顯示全局 OSPF 設(shè)置。
routing ip ospf add/delete/set/show interface 在指定接口上添加、刪除、配置或顯示 OSPF。
routing ip ospf add/delete/set/show area 添加、刪除、配置或顯示 OSPF 區(qū)域。
routing ip ospf add/delete/show range 在指定的 OSPF 區(qū)域上添加、刪除、配置或顯示范圍。
routing ip ospf add/delete/set/show virtif 添加、刪除、配置或顯示 OSPF 虛擬接口。
routing ip ospf add/delete/show neighbor 添加、刪除、配置或顯示 OSPF 鄰居。
routing ip ospf add/delete/show protofilter 添加、刪除、配置或顯示 OSPF 外部路由的路由信息源。
routing ip ospf add/delete/show routefilter 添加、刪除、配置或顯示 OSPF 外部路由的路由篩選。
routing ip ospf show areastats 顯示 OSPF 區(qū)域統(tǒng)計。
routing ip ospf show lsdb 顯示 OSPF 鏈接狀態(tài)數(shù)據(jù)庫。
routing ip ospf show virtifstats 顯示 OSPF 虛擬鏈接統(tǒng)計。
routing ip relay set global 配置“DHCP 中繼代理程序”的全局設(shè)置。
routing ip relay add/delete/set interface 在指定接口上添加、刪除或配置“DHCP 中繼代理程序”設(shè)置。
routing ip relay add/delete dhcpserver 在 DHCP 服務(wù)器地址列表中添加或刪除 DHCP 服務(wù)器的 IP 地址。
routing ip relay show ifbinding 顯示接口的 IP 地址綁定。
routing ip relay show ifconfig 顯示每個接口的“DHCP 中繼代理程序”配置。
routing ip relay show ifstats 顯示每個接口的 DHCP 統(tǒng)計。
routing ip rip set/show global 配置 IP 的 RIP 全局設(shè)置。
routing ip rip add/delete/set/show interface 在指定接口上添加或配置 IP 的 RIP 設(shè)置。
routing ip rip add/delete peerfilter 添加或刪除 RIP 對等篩選器。
routing ip rip add/delete acceptfilter 在接受的路由列表中添加或刪除 RIP 路由篩選器。
routing ip rip add/delete announcefilter 在公布的路由列表中添加或刪除 RIP 路由篩選器。
routing ip rip add/delete/show neighbor 添加或刪除 RIP 鄰居。
routing ip rip set/show flags 在指定接口上配置 IP RIP 高級設(shè)置。
routing ip rip show globalstats 顯示全局 RIP 參數(shù)。
routing ip rip show ifbinding 顯示接口的 IP 地址綁定。
routing ip rip show ifstats 顯示每個接口的 RIP 統(tǒng)計。
IPX netsh 路由命令
routing ipx add/set staticroute 在 IPX 路由表中添加或配置靜態(tài) IPX 路由。
routing ipx add/set staticservice 在 SAP 服務(wù)表中添加或配置靜態(tài) SAP 服務(wù)。
routing ipx add/set filter 在指定的接口上添加或配置 IPX 數(shù)據(jù)包篩選器。
routing ipx add/set interface 在請求撥號接口上啟用 IPX 路由,或在指定的接口上配置 IPX 設(shè)置。
routing ipx set global 配置全局 IPX 路由設(shè)置。
routing ipx rip add/set filter 添加和配置 RIP 路由篩選器。
routing ipx rip set global 配置全局 IPX 的 RIP 設(shè)置。
routing ipx rip set interface 在指定接口上配置 IPX 的 RIP 設(shè)置。
routing ipx sap add/set filter 添加或配置 SAP 服務(wù)篩選器。
routing ipx sap set global 配置全局 IPX 的 SAP 設(shè)置。
routing ipx sap set interface 在指定接口上配置 IPX 的 SAP 設(shè)置。
routing ipx netbios add nbname 將靜態(tài) NETBIOS 名稱添加到 IPX NetBIOS 名稱表中。
routing ipx netbios set interface 在指定接口上配置基于 IPX 的 NetBIOS 設(shè)置。