[Lab environment]
Powerful fireworks
The C3640-IK9O3S-M Version 12.4 (10)
Veryhuo.com
[PURPOSE]
Liehuo.net
Multi-process bidirectional redistribution solves the problem of OSPF region segmentation
Veryhuo.com
[Experiment topology]
Veryhuo.com
Fire net
[Experiment description] liehuo.net
Area 2 and Area 0 are not directly connected. Different OSPF processes are created on R2 to declare S0/0 and S0/1 respectively, and then the areas are re-distributed to solve the problem of Area segmentation. Lie-fire-network
[Experiment step] gwang.com
1. R1 basic configuration liehuo.net
!
Interface Loopback0
Ip address 1.1.1.1 255.255.255.255
!
Interface Serial0/0
Ip address 12.0.0.1 255.255.255.0
Clock rate 64000
!
Router ospf 110
Router-id 1.1.1.1
Network 1.1.1.1 0.0.0.0 area 0
Network 12.0.0.0 0.0.0.255 area 1
! Veryhuo.com
2. R2 basic configuration liehuo.net
!
Interface Serial0/0
Ip address 12.0.0.2 255.255.255.0
!
Interface Serial0/1
Ip address 23.0.0.1 255.255.255.0
Clock rate 64000
! Liehuo.net
3. R3 basic configuration veryhuo.com
!
Interface Loopback0
Ip address 3.3.3.3 255.255.255.255
!
Interface Serial0/1
Ip address 23.0.0.2 255.255.255.0
!
Router ospf 110
Router-id 3.3.3.3
Log-adjacency-changes
Network 3.3.3.3 0.0.0.0 area 2
Network 23.0.0.0 0.0.0.255 area 2
!
Liehuo.net
4. Create OSPF 110 on R2 and declare the 12.0.0.0/24 network segment on Area 1.
Liehuo.net
Router ospf 110
Router-id 2.2.2.2
Network 12.0.0.0 0.0.0.255 area 1
Veryhuo.com
5. Create OSPF 120 on R2 and declare the 23.0.0.0/24 network segment veryhuo.com on Area 2.
Router ospf 120
// Different OSPF processes need to be configured with different Router-IDS
Router-id 2.2.2.23
Network 23.0.0.0 0.0.0.255 area 2 liehuo.net
6. re-distribute OSPF 110 route entries to OSPF 120
Veryhuo.com
Router ospf 110
// Use the E1 type for redistribution
Redistribute ospf 120 metric-type 1 subnets veryhuo.com
7. Route entries of OSPF 120 are heavily distributed to OSPF 110.
Router ospf 120
Redistribute ospf 110 metric-type 1 subnets fire net
8. Check the R1 route table
// You can see that the route entry of Area 2 appears as E1 in the routing table liehuo.net
R1 # sh ip ro liehuo.net
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O E1 3.3.3.3 [110/129] via 12.0.0.2, 00:13:08, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
O E1 23.0.0.0 [110/128] via 12.0.0.2, 00:13:08, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial0/0 veryhuo.com
9. Check the R3 route table
// You can see that the route entries of Area 0 and Area 1 appear in the routing table veryhuo.com with E1
R3 # sh ip ro veryhuo.com
1.0.0.0/32 is subnetted, 1 subnets
O E1 1.1.1.1 [110/129] via 23.0.0.1, 00:13:20, Serial0/1
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.0.0.0 is directly connected, Serial0/1
12.0.0.0/24 is subnetted, 1 subnets
O E1 12.0.0.0 [110/128] via 23.0.0.1, 00:13:20, Serial0/1 liehuo.net