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!