CCNA视频:CCNP实验七:修改OSPF特定路由条目的管理距离

wKioL1PHeLqR0jSXAADWgpERqZk042.jpg

一:基本配置

r1(config)#router ospf 1

r1(config-router)#net 1.1.0.0 0.0.255.255 area 1

r1(config-router)#net 12.1.1.1 0.0.0.0 area 0

r1(config-router)#redistribute connected subnets

 

r2(config)#router ospf 1

r2(config-router)#net 12.1.1.2 0.0.0.0 area 0

r2(config-router)#net 2.2.2.2 0.0.0.0 area 0

r2(config-router)#net 23.1.1.1 0.0.0.0 area 2

 

r3(config)#router ospf 1

r3(config-router)#net 0.0.0.0 255.255.255.255 area 2

 

r2#show ip ro os

     1.0.0.0/32 is subnetted, 2 subnets

O IA    1.1.1.1 [110/65] via 12.1.1.1, 00:00:32, Serial1/0

O IA    1.1.2.1 [110/65] via 12.1.1.1, 00:00:32, Serial1/0

     3.0.0.0/32 is subnetted, 2 subnets

O       3.1.2.1 [110/65] via 23.1.1.2, 00:00:32, Serial1/1

O       3.1.1.1 [110/65] via 23.1.1.2, 00:00:32, Serial1/1

     10.0.0.0/24 is subnetted, 1 subnets

O E2    10.1.1.0 [110/20] via 12.1.1.1, 00:00:32, Serial1/0

     30.0.0.0/32 is subnetted, 1 subnets

O       30.1.1.1 [110/65] via 23.1.1.2, 00:00:32, Serial1/1

 

二,修改特定路由的管理距离

 

r2(config)#access-list 1 permit 1.1.1.0 0.0.0.255

 

r2(config)#router ospf 1

r2(config-router)#distance 111 1.1.2.1 0.0.0.0 1  注意:一定要写源的RID

 

 

r2#show ip ro os

     1.0.0.0/32 is subnetted, 2 subnets

O IA    1.1.1.1 [111/65] via 12.1.1.1, 00:00:09, Serial1/0

O IA    1.1.2.1 [110/65] via 12.1.1.1, 00:00:09, Serial1/0

     3.0.0.0/32 is subnetted, 2 subnets

O       3.1.2.1 [110/65] via 23.1.1.2, 00:00:09, Serial1/1

O       3.1.1.1 [110/65] via 23.1.1.2, 00:00:09, Serial1/1

     10.0.0.0/24 is subnetted, 1 subnets

O E2    10.1.1.0 [110/20] via 12.1.1.1, 00:00:09, Serial1/0

     30.0.0.0/32 is subnetted, 1 subnets

O       30.1.1.1 [110/65] via 23.1.1.2, 00:00:09, Serial1/1


本文出自 “思科技术交流” 博客,转载请与作者联系!

你可能感兴趣的:(CCNA视频教程,CCNA视频,CCNP视频,思科CCNA,晁海江)