CCIE实验笔记之-第4章 RIP 之四

www.net130.com     日期:2007-7-4    浏览次数:
作者:烦尘子    出处:http://ghostlover.2288.org

k: _Toc151281295">4.7         实验7:配置RIP的重分布、路由过滤和控制

4.7.1         实验内容

l         按图4-3配置路由器。

l         路由器R2R3R5之间使用RIP路由协议。

l         R5R4之间使用EIGRP,自治系统号为2001

l         R5上将EIGRPRIP进行相互重分布,保证网络全连接。

l         配置R5使来自R3的路由管理距离为5

l         配置路由过滤防止R5上的172.16.5.0/24访问R2R3

l         本次实验的LAN均使用loopback接口模拟。

4.7.2         实验拓扑

4-3是本次实验的示意拓扑,R5R2R3R4之间的WAN协议为帧中继协议。

4-3 RIPEIGRP重分布

4.7.3         所需设备

l         路由器5台,一台做帧中继交换机使用。

l         背对背线缆4对。

l         PC一台

 

4.7.4         实验步骤

1步  配置帧中继部分(略)

2步  配置RIP

3步  配置EIGRP

4步  配置R5上的RIPEIGRP路由相互重分布。

5步  配置路由过滤

6步  检查路由。

 

例10-11         R5上的路由配置

R5(config-router)#router eigrp 2001

R5(config-router)#redistribute rip    <-把RIP重分布到EIGRP 2001

R5(config-router)#passive-interface loopback 1  <-防止EIGRP广播路由

R5(config-router)#passive-interface s1/0.1

R5(config-router)#network 172.16.0.0

R5(config-router)#default-metric 100000 100 254 1 1500   <-配置重分布后的度量值

!

R5(config)#router rip   

R5(config-router)#redistribute eigrp 2001    <-把EIGRP重分布进RIP路由协议

R5(config-router)#passive-interface s1/0.2

R5(config-router)#network 172.16.0.0

R5(config-router)#default-metric 2

4.7.5         完整配置

4-15 完整的路由配置

hostname R5

!

interface Loopback1

 ip address 172.16.5.1 255.255.255.0

!

interface Serial1/0

 no ip address

 encapsulation frame-relay

 no fair-queue

 serial restart_delay 0

!

interface Serial1/0.1 multipoint

 ip address 172.16.1.5 255.255.255.0

 no ip split-horizon

 frame-relay map ip 172.16.1.3 503 broadcast

 frame-relay map ip 172.16.1.2 502 broadcast

!

interface Serial1/0.2 multipoint

 ip address 172.16.16.5 255.255.255.252

 frame-relay interface-dlci 504

!

router eigrp 2001

 redistribute rip

 passive-interface Serial1/0.1

 passive-interface Loopback1

 network 172.16.0.0

 default-metric 100000 100 254 1 1500

 auto-summary

 no eigrp log-neighbor-changes

!

router rip

 redistribute eigrp 2001

 passive-interface Serial1/0.2

 network 172.16.0.0

 default-metric 2

 distribute-list 10 out

 distance 5 0.0.0.0 255.255.255.0

 distance 5 172.16.1.3 0.0.0.0 11

――――――――――――――――――――

hostname R2

!

interface Loopback1

 ip address 172.16.2.1 255.255.255.0

!

interface FastEthernet0/0

 no ip address

 duplex auto

 speed auto

!

interface Serial1/0

 ip address 172.16.1.2 255.255.255.0

 encapsulation frame-relay

 serial restart_delay 0

 no arp frame-relay

 frame-relay map ip 172.16.1.3 205 broadcast

 frame-relay map ip 172.16.1.5 205 broadcast

 no frame-relay inverse-arp

!

router rip

 network 172.16.0.0

――――――――――――――――――――――――――

hostname R3

!

interface Loopback1

 ip address 172.16.3.1 255.255.255.0

!

interface Serial1/0

 ip address 172.16.1.3 255.255.255.0

 encapsulation frame-relay

 serial restart_delay 0

 no arp frame-relay

 frame-relay map ip 172.16.1.5 305 broadcast

 frame-relay map ip 172.16.1.2 305 broadcast

 no frame-relay inverse-arp

!

router rip

 network 172.16.0.0

――――――――――――――――――――――――――――

hostname R4

!

interface Loopback1

 ip address 172.16.4.1 255.255.255.0

!

interface Serial1/0

 ip address 172.16.16.6 255.255.255.252

 encapsulation frame-relay

 ip summary-address eigrp 2001 172.16.16.0 255.255.255.0 5

 serial restart_delay 0

 frame-relay interface-dlci 405

!

router eigrp 2001

 network 172.16.0.0

 auto-summary

 no eigrp log-neighbor-changes

4.7.6         验证配置

l         show ip route

l         show ip eigrp neighbor

l         sho ip protocols

l         ping

相关新闻
推荐文章