- 论坛徽章:
- 0
|
配置RIP的重分布、路由过滤和控制
实验内容
l 按图4-3配置路由器。
l 路由器R2、R3和R5之间使用RIP路由协议。
l R5和R4之间使用EIGRP,自治系统号为2001。
l 在R5上将EIGRP和RIP进行相互重分布,保证网络全连接。
l 配置R5使来自R3的路由管理距离为5。
l 配置路由过滤防止R5上的172.16.5.0/24访问R2和R3。
l 本次实验的LAN均使用loopback接口模拟。
实验拓扑
图4-3是本次实验的示意拓扑,R5和R2、R3、R4之间的WAN协议为帧中继协议。
图4-3 RIP和EIGRP重分布
所需设备
l 路由器5台,一台做帧中继交换机使用。
l 背对背线缆4对。
l PC一台
实验步骤
第1步 配置帧中继部分(略)
第2步 配置RIP
第3步 配置EIGRP
第4步 配置R5上的RIP和EIGRP路由相互重分布。
第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-15 完整的路由配置
hostname R5
!
interface Loopback1
ip address 172.16.5.1 255.255.255.255
!
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.255
!
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.255
!
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.255
!
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
验证配置
l ping
l show ip route
l sho ip protocols
l show ip eigrp neighbor
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/25383/showart_391901.html |
|