三、配置基于策略的路由选择:
1,router(config)#route-map map-tag permit/deny sequence-number
router(config)#access-list 11 permit 140.0.0.0 0.0.255.255
2,router(config-route-map)#match ip address access-list-number1/name1……[access-list-number2/name2]
route(config-route-map)#match length min max
route(config-route-map)#match interface
route(config-route-map)#match ip next-hop
route(config-route-map)#match metric
route(config-route-map)#match route-type
3, route(config-route-map)#set default interface type number [……type number ]
指定默认出站接口列表
route(config-route-map)#set interface type number [……type number ]
指定出站接口列表
route(config-route-map)#set ip default next-hop ip-address [……ip-address]
指定默认下一跳地址
route(config-route-map)#set ip next hop ip-address [……ip-address]
指定下一跳地址
route(config-route-map)#set ip precedence value
指定IP报头优先级
route(config-route-map)#set ip tos type-of-service
route(config-route-map)#set level level-1/level-1-2/level-2/stub-area/backbone
在ISIS或OSPF中指定导入到哪一级路由
route(config-route-map)#set metric
设定度量值供目标路由协议使用
route(config-route-map)#set metric-type internal/extrnal/type-1/type-2
设定度量值类型供目标路由协议使用
4,router(config)#interface s0
router(config-if)#ip policy route-map map-tag
创建好映射表后必须将其用于接口才会发挥作用
router(config-if)#ip local policy route-map map-tag
基于策略的路由选择应用于当前路由生成分组
router(config-if)#ip route-cache policy
CISCO的IOS11.2以后支持手工配置快速交换方式默认是关闭的

