A-A+

采用EIGRP中路由重定向和过滤路由

2015年11月19日 站长资讯 暂无评论

这是一个在通信机房里完成的采用EIGRP协议里的路由重定向和过滤路由的实验,使用的cisico路由器来完成。下面列出这次实验的拓扑图、实验要求和全部配置,并且附带上一些说明,帮助大家理解。

【实验拓扑】

【实验要求】

1、按照上图配置好接口地址与EIGRP

2、在R5上创建 loopback1:150.1.55.55/24,创建loopback2:150.1.155.155/24

3、在R5上使用route-map重定向Loopback1与Loopback2到EIGRP中,并且分配Loopback1的tag值为100

4、在R4上使用route-map只允许tag值为100的路由进来,需要应用在s0/0与s0/1接口上

【实验配置】

第一步配置:

R4配置:

  1. interface Loopback0  
  2.  ip address 150.1.4.4 255.255.255.0  
  3. !  
  4. interface FastEthernet0/0  
  5.  no ip address  
  6.  shutdown  
  7.  duplex auto  
  8.  speed auto  
  9. !  
  10. interface Serial0/0  
  11.  bandwidth 256  
  12.  ip address 155.1.0.4 255.255.255.0  
  13.  encapsulation frame-relay  
  14.  clock rate 2000000  
  15.  frame-relay map ip 155.1.0.5 405 broadcast  
  16.  no frame-relay inverse-arp  
  17. !  
  18. interface Serial0/1  
  19.  bandwidth 64  
  20.  ip address 155.1.45.4 255.255.255.0  
  21.  clock rate 2000000  
  22. !  
  23. router eigrp 100  
  24.  network 150.1.4.4 0.0.0.0  
  25.  network 155.1.0.4 0.0.0.0  
  26.  network 155.1.45.4 0.0.0.0  
  27.  no auto-summary  

R5配置:

  1. interface Loopback0  
  2.  ip address 150.1.5.5 255.255.255.0  
  3. !  
  4. interface Serial0/0  
  5.  bandwidth 256  
  6.  ip address 155.1.0.5 255.255.255.0  
  7.  encapsulation frame-relay  
  8.  clock rate 2000000  
  9.  frame-relay map ip 155.1.0.4 504 broadcast  
  10.  http://www.xiaoxiongboke.com  
  11.  no frame-relay inverse-arp  
  12. !  
  13. interface Serial0/1  
  14.  bandwidth 64  
  15.  ip address 155.1.45.5 255.255.255.0  
  16.  clock rate 9600  
  17. !  
  18. router eigrp 100  
  19.  network 150.1.5.5 0.0.0.0  
  20.  network 155.1.0.5 0.0.0.0  
  21.  network 155.1.45.5 0.0.0.0  
  22.  no auto-summary  

配置完成之后R4与R5能够互相学习到对方的loopback0地址,

  1. R4#show ip eigrp neighbors  
  2. IP-EIGRP neighbors for process 100  
  3. H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq  
  4.                                             (sec)         (ms)       Cnt Num  
  5. 1   155.1.0.5               Se0/0            165 00:39:59  196  1176  0  27  
  6. 0   155.1.45.5              Se0/1             14 00:42:27   67  2280  0  28  

第二步:接下来的配置

  1. R5:  
  2. interface Loopback1  
  3. ip address 150.1.55.55 255.255.255.0  
  4. !  
  5. interface Loopback2  
  6. ip address 150.1.155.155 255.255.255.0  
  7. !  
  8. router eigrp 100  
  9. redistribute connected route-map CONNECTED_TO_EIGRP  
  10. route-map CONNECTED_TO_EIGRP permit 10  
  11. match interface Loopback1  
  12. set tag 100  
  13. route-map CONNECTED_TO_EIGRP permit 20  
  14. match interface Loopback2  
  15.   
  16.    
  17. R4:  
  18. route-map FILTER_EIGRP 10  
  19. match tag 100  
  20. !  
  21. router eigrp 100  
  22. distribute-list route-map FILTER_EIGRP in serial 0/1  
  23. distribute-list route-map FILTER_EIGRP in serial 0/0  

【验证配置】

配置过滤之前

  1. R4#show ip route eigrp  
  2. 150.1.0.0/24 is subnetted, 4 subnets  
  3. D EX 150.1.155.0 [170/10639872] via 155.1.0.5, 00:00:05, Serial0/0  
  4. D 150.1.5.0 [90/10639872] via 155.1.0.5, 01:18:07, Serial0/0  
  5. D EX 150.1.55.0 [170/10639872] via 155.1.0.5, 00:00:56, Serial0/0  

配置过滤之后:

  1. R4#show ip route eigrp  
  2. 150.1.0.0/24 is subnetted, 2 subnets  
  3. D EX 150.1.55.0 [170/10639872] via 155.1.0.5, 00:02:59, Serial0/0  
标签:

给我留言