首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 路由技术 >> 路由应用 >> 正文

路由映射表和基于策略的控制路由

 

  三、配置基于策略的路由选择:

  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以后支持手工配置快速交换方式默认是关闭的

上一页  [1] [2] 

【责编:Kittoy】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航