路由过滤常用的方法如下,作用效果一致,可任选:
 
一、基于路由进程的过滤
1、Route-map
 
router ospf 10
 
Redistribute eigrp 10 subnets route-map Jackson
 
ip prefix-list ONLY-168 permit 168.1.1.1/8
 
route-map Jackson
  match ip address prefix-list ONLY-168
 
 
2、Distribute-list
 
router ospf 10
  redistribute eigrp 10 subnets
  distribute-list 68 out eigrp 10
 
access-list 68 permit 168.0.0.0
 
 
二、基于接口的过滤:
 
上述两种方法也可称之为进程过滤
 
对于RIP这类DISTANCE VECTOR路由协议,比较常用的是基于接口过滤的方法:
 
router rip
  redis eigrp 10 metric 5
  distribute-list 68 int f0/0
 
access-list 68 permit 168.0.0.0