Ccnp Experiment 6: Modify the route management distance of OSPF neighbor sources

Source: Internet
Author: User

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3E/97/wKiom1PHdzWxPXdfAADWgpERqZk989.jpg "Title =" 111111.jpg" alt = "wkiom1phdzwxpxdfaadwgperqzk989.jpg"/>

I. basic configuration

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

 

2. Modify the route management distance of a specific neighbor Source

 

R2 (config) # router OSPF 1

R2 (config-router) # distance 122 1.1.2.1 0.0.0.0Be sure to writeRIDAnd anti-Mask

 

R2 # Show IP Ro OS

1.0.0.0/32 is subnetted, 2 subnets

O Ia 1.1.1.1 [122/65] via 12.1.1.1, 00:00:04, serial1/0

O Ia 1.1.2.1 [122/65] via 12.1.1.1, 00:00:04, 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:04, serial1/1

O 3.1.1.1 [110/65] via 23.1.1.2, 00:00:04, serial1/1

10.0.0.0/24 is subnetted, 1 subnets

O E2 10.1.1.0 [122/20] via 12.1.1.1, 00:00:04, 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:04, serial1/1

 

Thoughts:

R2 (config) # router OSPF 1

R2 (config-router) # distance 122 12.1.1.1 0.0.0.0Use the neighbor interface addressYes?

 

 

R2 (config) # router OSPF 1

R2 (config-router) # distance 122 12.1.1.1 255.255.255.255Can I use the RID and mask?


This article is from the "Cisco technical exchange" blog. For more information, contact the author!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.