CCIE之路——路由过滤命令详解
来源:优易学  2011-12-1 21:34:12   【优易学:中国教育考试门户网】   资料下载   IT书店

 

 Case Study: Policy Routing and Quality of Service Routing

  Policy Routing结合ip包头的Precedence和Type of Service(TOS)可以实现基于QOS的策略路由。

  注:Precedence和TOS的配置既可使用Number字段,也可以使用Keyword.

set ip precedence
-------------------------------------
Bits     Number     Keyword
000        0        routine
001        1        priority
010        2        immediate
011        3        flash
100        4        flash-override
101        5        critical
110        6        internet
111        7        network
-------------------------------------
set ip tos
-------------------------------------
Bits     Number     Keyword
0000       0        normal
0001       1        min-monetary-cost
0010       2        max-reliability
0100       4        max-throughput
1000       8        min-delay
-------------------------------------
interface Serial0
   ip address 10.1.18.67 255.255.255.252
   ip policy route-map sense
!
interface Serial1
   ip address 10.34.16.83.255.255.255.252
   ip policy route-map sense
!
access-list 1 permit 172.16.0.0 0.0.255.255
access-list 110 permit tcp any eq www any
!
route-map sense permit 10
   match ip address 1 110
   set ip precedence critical
!
route-map sense permit 20
   set ip tos 10
   set ip precedence priority
Case Study: Route Tagging

  用途:

  用于双向重分布时标识特定Domain的路由,以防路由被重分布回起源Domain.

  使用方案:

  通告路由条目的边缘Router在重分布时给路由条目加上Tag标识,做为Transit Network的Domain,不需要使用和识别Tag,仅仅需要将它传递到它的外部网络即可。

  路由协议相关:

  Support: RIPv2,EIGRP,IS-IS,OSPF,BGP

  Not Support: RIPV1,IGRP

  Packets Format:

  RIPv2: 支持16-bit tags    表示为十进制:0 ~ 65535

  EIGRP external route TLVs: 支持32-bit tags    表示为十进制:0 ~ 4294967295

  OSPF type 5 LSAs: 支持32-bit tags    表示为十进制:0 ~ 4294967295

  配置实例:

router ospf 1
   redistribute igrp 1 metric 10 subnets tag 1
   redistribute rip metric 10 subnets route-map sense
   network 10.100.200.1 0.0.0.0 area 0
!
router rip
   network 10.0.0.0
!
router igrp 1
   network 10.0.0.0
!
access-list 1 permit 10.1.2.3
access-list 2 permit 10.1.2.4
!
route-map sense permit 10
   match ip route-source 1
   set tag 2
!
route-map sense permit 20
   match ip route-source 2
   set tag 3

  (二) Distribute-list

  作用:

  <1> 控制路由条目的分发,及路由的重分布。

  <2> 建立一个"route firewall"

  关于路由协议:

  Distance Vector Routing Protocol: Route Filtering可以控制其通告/接收的路由条目,及重分布的路由条目。

  Link-State Routing Protocol: Route Filtering只可以控制其在重分布时的路由条目。

  注: LS Routing Protocol的一个基本的要求就是在一个area内所有Routers的Link State Database必须一致,所以如果Route Filtering能过滤掉LS Routing Protocol的LSA通告,就违背了LS Routing Protocol的规范。

Case Study: Filtering Specific Routes
router rip
   version 2
   network 192.168.75.0
   distribute-list 1 in Serial1
!
ip classless
access 1 permit 0.0.0.0
Case Study: Route Filtering and Redistribution

  注:

  distribute-list 命令用于Link-State Routing Protocol时:

  与接口联用:   只能使用in参数

  与路由进程联用: 只能使用out参数

上一页  [1] [2] [3] 下一页

责任编辑:小草

文章搜索:
 相关文章
热点资讯
热门课程培训