术语:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

TOS---服务类型,是一个4bit位的值

route-map teacherwang permit 1

.....

route-map teacherwang permit 2

....

route-map teacherwang permit 3

....

route-map teacherwang permit 4

想删除4

router(config)#no route-map teacherwang

               no route-map teacherwang permit 4

route-map teacherwang permit 5

set default interface null 0

set命令讲解:

set ip next-hop 1.1.1.1   指定下一路由器的入口IP地址。

set interface s0          指定当匹配条件时,数据包从本地出口s0发出。

set ip default next-hop 1.1.1.2   指定当路由表中没有到达目的地的路径时(不通),仍然想让数据包发出,这时,随便选择一个下一跳。

set default interface s0  指定当路由表中没有到达目的地的路径时(不通),仍然想让数据包发出,这时,随便选择一个本地出口 。

Router(config-route-map)#set ip tos ?     设置服务类型值

  <0-15>             Type of service value    

  max-reliability    Set max reliable TOS (2)      最大可靠性

  max-throughput     Set max throughput TOS (4)    最大吞吐率

  min-delay          Set min delay TOS (8)         最小延迟

  min-monetary-cost  Set min monetary cost TOS (1) 最小成本

  normal             Set normal TOS (0)            正常TOS值

  <cr>

Router(config-if)#ip route-cache policy   开启快速策略交换功能。(在IOS11.2版本之后引进)

Router#show ip policy   显示在接口上使用了哪些策略。

Router#show route-map teacherwang  显示了策略teacherwang中定义了哪些具体的策略。

Router#traceroute 192.168.4.50   会显示到达192.168.4.50目的地,数据包所经过的每一跳路由器的IP地址。