交换路由CCIE之路——路由策略

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验路由策略

一实验拓扑图1

实验一

实验要求:原本网络使用EIGRP现在要求用OSPF来发现网络拓扑。

实验分析:要是网络平滑过渡可先将OSPF配置好,然后理由改变EIGRP的管理距离使OSPF替换EIGRP进路由表,等到全网为OSPF后,去掉EIGRP.

实验操作及结果:首先全网为EIGRP如下

r1#show ip route

192.168.12.0/30 is subnetted, 1 subnets

C 192.168.12.0 is directly connected, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

D 192.168.23.0 [90/2681856] via 192.168.12.2, 00:01:48, Serial0/0

C 192.168.1.0/24 is directly connected, Ethernet3/0

D 192.168.3.0/24 [90/2707456] via 192.168.12.2, 00:00:13, Serial0/0

r2#show ip route

192.168.12.0/30 is subnetted, 1 subnets

C 192.168.12.0 is directly connected, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

C 192.168.23.0 is directly connected, Serial0/2

D 192.168.1.0/24 [90/2195456] via 192.168.12.1, 00:02:56, Serial0/0 D 192.168.3.0/24 [90/2195456] via 192.168.23.2, 00:01:16, Serial0/2 r3#show ip route

192.168.12.0/30 is subnetted, 1 subnets

D 192.168.12.0 [90/2681856] via 192.168.23.1, 00:01:21, Serial0/0 192.168.23.0/30 is subnetted, 1 subnets

C 192.168.23.0 is directly connected, Serial0/0

D 192.168.1.0/24 [90/2707456] via 192.168.23.1, 00:01:21, Serial0/0 C 192.168.3.0/24 is directly connected, Ethernet3/0

现在在每个路由器都配置OSPF能发现都建立邻居,但没进路由表r1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 192.168.23.1 0 FULL/ - 00:00:32 192.168.12.2 Serial0/0 r2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 192.168.23.2 0 FULL/ - 00:00:35 192.168.23.2 Serial0/2 192.168.12.1 0 FULL/ - 00:00:31 192.168.12.1 Serial0/0 r3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 192.168.23.1 0 FULL/ - 00:00:32 192.168.23.1 Serial0/0 r1#show ip route

192.168.12.0/30 is subnetted, 1 subnets

C 192.168.12.0 is directly connected, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

D 192.168.23.0 [90/2681856] via 192.168.12.2, 00:01:48, Serial0/0

C 192.168.1.0/24 is directly connected, Ethernet3/0

D 192.168.3.0/24 [90/2707456] via 192.168.12.2, 00:00:13, Serial0/0

192.168.12.0/30 is subnetted, 1 subnets

C 192.168.12.0 is directly connected, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

C 192.168.23.0 is directly connected, Serial0/2

D 192.168.1.0/24 [90/2195456] via 192.168.12.1, 00:02:56, Serial0/0

D 192.168.3.0/24 [90/2195456] via 192.168.23.2, 00:01:16, Serial0/2

r3#show ip route

192.168.12.0/30 is subnetted, 1 subnets

D 192.168.12.0 [90/2681856] via 192.168.23.1, 00:01:21, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

C 192.168.23.0 is directly connected, Serial0/0

D 192.168.1.0/24 [90/2707456] via 192.168.23.1, 00:01:21, Serial0/0

C 192.168.3.0/24 is directly connected, Ethernet3/0

主要原因是OSPF管理距离比EIGRP大,所以没有进入路由表,这时候将EIGRP的管理距离加大到120,这时候路由表就发生改变了,但EIGRP邻居依然存在

r1(config)#router eigrp 10

r1(config-router)#distance eigrp 120 170 //将eigrp内部管理距离改为120>110

r1(config-router)#exit

r2(config)#router eigrp 10

r2(config-router)#distance eigrp 120 170

r3(config)#router eigrp 10

r3(config-router)#distance eigrp 120 170

r3(config-router)#exit

重新查看路由表,发现OSPF进了路由表

r1#show ip route

192.168.12.0/30 is subnetted, 1 subnets

C 192.168.12.0 is directly connected, Serial0/0

192.168.23.0/30 is subnetted, 1 subnets

O 192.168.23.0 [110/128] via 192.168.12.2, 00:03:18, Serial0/0

C 192.168.1.0/24 is directly connected, Ethernet3/0

O 192.168.3.0/24 [110/138] via 192.168.12.2, 00:03:18, Serial0/0

相关文档
最新文档