Chinaunix首页 | 论坛 | 博客
  • 博客访问: 781879
  • 博文数量: 256
  • 博客积分: 3502
  • 博客等级: 中校
  • 技术积分: 3988
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(256)

文章存档

2014年(11)

2013年(134)

2012年(111)

我的朋友

分类: 系统运维

2013-08-26 13:27:03

实验 :RIP、 和 重分布

 

实验 :RIP、EIGRP 和 OSPF 重分布

1.实验目的

通过本实验可以掌握

(1)种子度量值的配置

(2)路由重分布参数的配置

(3)静态路由重分布

(4)RIP 和 EIGRP 的重分布

(5)EIGRP 和 OSPF 的重分布

(6)重分布路由的查看和调试

2.拓扑结构

实验拓扑如图 11-1 所示。


图 11-1 RIP、EIGRP 和 OSPF 重分布

3.实验步骤

图 11-1 RIP、EIGRP 和 OSPF 重分布

(1)步骤 1:配置路由器 R1

R1(config)#router rip

R1()#version 2

R1(config-router)#no auto-summary

R1(config-router)#network 192.168.12.0

R1(config-router)#redistribute static metric 3 //重分布静态路由

R1(config)#ip route 0.0.0.0 0.0.0.0 Serial0/0/1

【注意】

在向 RIP 区域重分布路由的时候,必须指定度量值,或者通过“default-metric”命

令设置缺省种子度量值,因为 RIP 默认种子度量值为无限大,但是只有重分布静态特殊,可

以不指定种子度量值。

(2)步骤 2:配置路由器 R2

R2(config)#router eigrp 1

R2(config-router)#no auto-summary

R2(config-router)#network 192.168.23.0

R2(config-router)#redistribute rip metric 1000 100 255 1 1500

//将 RIP 重分布到 EIGRP 中

【提示】

因为 EIGRP 的度量相对复杂,所以重分布时需要分别指定带宽、延迟、可靠性、负载以

及 MTU 参数的值。

R2(config)#router rip

R2(config-router)#version 2

R2(config-router)#no auto-summary

R2(config-router)#network 192.168.12.0

R2(config-router)#redistribute eigrp 1 //将 EIGRP 重分布到 RIP 中

R2(config-router)#default-metric 4 //配置默认种子度量值

【注意】

在“redistribute”命令中用参数“metric”指定的种子度量值优先于路由模式下使

用“default-metric”命令设定的缺省的种子度量值。

(3)步骤 3:配置路由器 R3

R3(config)#router eigrp 1

R3(config-router)#no auto-summary

R3(config-router)#network 3.3.3.0 0.0.0.255

R3(config-router)#network 192.168.23.0

R3(config-router)#redistribute ospf 1 metric 1000 100 255 1 1500

//将 OSPF 重分布到 EIGRP 中

 

R3(config)#router ospf 1

R3(config-router)#router-id 3.3.3.3

R3(config-router)#network 192.168.34.0 0.0.0.255 area 0

R3(config-router)#redistribute eigrp 1 metric 30 metric-type 1 subnets

//将 EIGRP 重分布到 OSPF 中

R3(config-router)#default-information originate always

(4)步骤 4:配置路由器 R4

R4(config)#router ospf 1

R4(config-router)#router-id 4.4.4.4

R4(config-router)#network 4.4.4.0 0.0.0.255 area 0

R4(config-router)#network 192.168.34.0 0.0.0.255 area 0

4.实验调试

(1)在 R1 上查看路由表:

R1#show ip route

Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

C 192.168.12.0/24 is directly connected, Serial0/0/0

3.0.0.0/24 is subnetted, 1 subnets

R 3.3.3.0 [111/4] via 192.168.12.2, 00:00:08, Serial0/0/0

4.0.0.0/32 is subnetted, 1 subnets

R 4.4.4.4 [111/4] via 192.168.12.2, 00:00:08, Serial0/0/0

C 112.96.134.0/24 is directly connected, Serial0/0/1

R 192.168.23.0/24 [111/4] via 192.168.12.2, 00:00:08, Serial0/0/0

R 192.168.34.0/24 [111/4] via 192.168.12.2, 00:00:08, Serial0/0/0

S* 0.0.0.0/0 is directly connected, Serial0/0/1

以上输出表明路由器 R1 通过 RIPv2 学到从路由器 R2 重分布进 RIP 的路由。
阅读(1483) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~