ROUTE

来源:互联网 发布:ip加端口怎么ping 编辑:程序博客网 时间:2024/04/29 19:25

What does [120/3] represent?

A. 120 is the bandwidth allocation and 3 is the routing processnumber.
B. 120 is the administrative distance and 3 is the metric for thatroute.
C. 120 is the value of the update timer and 3 is the number ofupdates received.
D. 120 is the UDP port for forwarding traffic and 3 is the numberof bridges.

  作为Pcjob的网络管理员,你正在为路由器排错,你在其中的一台路由器使用show iproute命令,输出的结果如上图,[120/3]描述的是什么意思?

正确答案:B

解释:

  路由器的IOS使用一个名为AdministrativeDistance(管理距离)的概念来决定使用哪一个路由。Admininstrativedistance表示的是一个单独路由器中所有路由协议的可信度的这样一个数值,数值越低越好,也就是说,数值越低,路由协议可信度越高。

Route Type Administrative Distance

• Connected 0
• IGRP 100
• RIP 120

******************************

  metric Metric

   为路由指定所需跃点数的整数值(范围是 1 ~9999),它用来在路由表里的多个路由中选择与转发包中的目标地址最为匹配的路由。所选的路由具有最少的跃点数。跃点数能够反映跃点的数量、路径的速度、路径可靠性、路径吞吐量以及管理属性。

 

要显示 IP 路由表的完整内容,请键入:

   route print

   要显示 IP 路由表中以 10. 开始的路由,请键入:

   route print 10.*

   要添加默认网关地址为 192.168.12.1 的默认路由,请键入:

   route add 0.0.0.0 mask 0.0.0.0 192.168.12.1

   要添加目标为 10.41.0.0,子网掩码为 255.255.0.0,下一个跃点地址为 10.27.0.1的路由,请键入:   route add 10.41.0.0 mask 255.255.0.0 10.27.0.1

   要添加目标为 10.41.0.0,子网掩码为 255.255.0.0,下一个跃点地址为 10.27.0.1的永久路由,请键入:   route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1

   要添加目标为 10.41.0.0,子网掩码为 255.255.0.0,下一个跃点地址为 10.27.0.1,跃点数为 7的路由,请键入:   route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7

   要添加目标为 10.41.0.0,子网掩码为 255.255.0.0,下一个跃点地址为 10.27.0.1,接口索引为 0x3的路由,请键入:   route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0x3

   要删除目标为 10.41.0.0,子网掩码为 255.255.0.0 的路由,请键入:

   route delete 10.41.0.0 mask 255.255.0.0

   要删除 IP 路由表中以 10. 开始的所有路由,请键入:

   route delete 10.*

   要将目标为 10.41.0.0,子网掩码为 255.255.0.0 的路由的下一个跃点地址由 10.27.0.1 更改为10.27.0.25,请键入:

   route change 10.41.0.0 mask 255.255.0.0 10.27.0.25<?xml:namespace prefix = o ns ="urn:schemas-microsoft-com:office:office"/>

   route的命令

   routing ip add/delete/set/show interface 在指定接口上添加、删除、配置或显示常规 IP路由设置。

   routing ip add/delete/set/show filter 在指定接口上添加、删除、配置或显示 IP数据包筛选器。

   routing ip add/delete/show boundary在指定接口上添加、删除或显示多播边界设置。

   routing ip add/set ipiptunnel 添加或配置 IP 中的 IP 接口。

   routing ip add/delete/set/show rtmroute添加、配置或显示不持续的路由表管理器路由。

   routing ip add/delete/set/show persistentroute添加、删除、配置或显示持续路由。

   routing ip add/delete/set/show preferenceforprotocol添加、删除、配置或显示路由协议的优先级。

   routing ip add/delete/set/show scope 添加、删除或显示多播作用域。

   routing ip set/show loglevel 配置或显示全局 IP 记录等级。

   routing ip show helper 显示 IP 的所有 Netsh 实用程序子环境。

   routing ip show protocol 显示所有正在运行的 IP 路由协议。

   routing ip show mfe 显示多播转发项。

   routing ip show mfestats 显示多播转发项统计。

   routing ip show boundarystats 显示 IP 多播边界。

   routing ip show rtmdestinations 显示路由表管理器路由表中的目标。

   routing ip show rtmroutes 显示路由表管理器路由表中的路由。

   routing ip nat set/show global 配置或显示全局网络地址转换 (NAT) 设置。

   routing ip nat add/delete/set/show interface 添加、删除、配置或显示指定接口的 NAT设置。

   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 分配器参数。

   routing ip autodhcp set/show interface 配置或显示指定接口的 DHCP分配器设置。

   routing ip autodhcp add/delete exclusion 在 DHCP分配器地址范围中添加或删除一个排除范围。

   routing ip dnsproxy set/show global 配置或显示全局 DNS 代理参数。

   routing ip dnsproxy set/show interface 配置或显示指定接口的 DNS代理参数。

   routing ip igmp set/show global 配置或显示 IGMP 全局设置。

   routing ip igmp add/delete/set/show interface 在指定接口上添加、删除、配置或显示IGMP。

   routing ip igmp add/delete staticgroup 添加或删除指定接口的静态多播组。

   routing ip igmp show grouptable 显示 IGMP 主机组表。

   routing ip igmp show ifstats 显示每个接口的 IGMP 统计。

   routing ip igmp show iftable 显示每个接口的 IGMP 主机组。

   routing ip igmp show proxygrouptable 显示 IGMP 代理接口的 IGMP组表。

   routing ip igmp show rasgrouptable 显示远程访问服务器所使用的 Internet接口的组表。

   routing ip ospf set/show global 配置或显示全局 OSPF 设置

 routing ip ospfadd/delete/set/show interface 在指定接口上添加、删除、配置或显示 OSPF。

   routing ip ospf add/delete/set/show area 添加、删除、配置或显示 OSPF区域。

   routing ip ospf add/delete/show range 在指定的 OSPF区域上添加、删除、配置或显示范围。

   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 区域统计。

   routing ip ospf show lsdb 显示 OSPF 链接状态数据库。

   routing ip ospf show virtifstats 显示 OSPF 虚拟链接统计。

   routing ip relay set global 配置“DHCP 中继代理程序”的全局设置。

   routing ip relay add/delete/set interface 在指定接口上添加、删除或配置“DHCP中继代理程序”设置。

   routing ip relay add/delete dhcpserver 在 DHCP 服务器地址列表中添加或删除 DHCP服务器的 IP 地址。

   routing ip relay show ifbinding 显示接口的 IP 地址绑定。

   routing ip relay show ifconfig 显示每个接口的“DHCP 中继代理程序”配置。

   routing ip relay show ifstats 显示每个接口的 DHCP 统计。

   routing ip rip set/show global 配置 IP 的 RIP 全局设置。

   routing ip rip add/delete/set/show interface 在指定接口上添加或配置 IP 的 RIP设置。

   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 高级设置。

   routing ip rip show globalstats 显示全局 RIP 参数。

   routing ip rip show ifbinding 显示接口的 IP 地址绑定。

   routing ip rip show ifstats 显示每个接口的 RIP 统计。

   IPX netsh路由命令

   routing ipx add/set staticroute 在 IPX 路由表中添加或配置静态 IPX路由。

   routing ipx add/set staticservice 在 SAP 服务表中添加或配置静态 SAP服务。

   routing ipx add/set filter 在指定的接口上添加或配置 IPX 数据包筛选器。

   routing ipx add/set interface 在请求拨号接口上启用 IPX 路由,或在指定的接口上配置 IPX设置。

   routing ipx set global 配置全局 IPX 路由设置。

   routing ipx rip add/set filter 添加和配置 RIP 路由筛选器。

   routing ipx rip set global 配置全局 IPX 的 RIP 设置。

   routing ipx rip set interface 在指定接口上配置 IPX 的 RIP 设置。

   routing ipx sap add/set filter 添加或配置 SAP 服务筛选器。

   routing ipx sap set global 配置全局 IPX 的 SAP 设置。

   routing ipx sap set interface 在指定接口上配置 IPX 的 SAP 设置。

   routing ipx netbios add nbname 将静态 NETBIOS 名称添加到 IPX NetBIOS名称表中。

   routing ipx netbios set interface在指定接口上配置基于IPX的NetBIOS设置