R1#show run
interface Loopback1
ip address 1.1.1.1 255.255.255.0
interface Serial0/0
ip address 192.168.1.1 255.255.255.0
serial restart-delay 0
!router ospf 1
router-id 192.168.1.1
log-adjacency-changes
network 1.1.1.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
R1#SHOW IP ROUTE
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback1
2.0.0.0/24 is subnetted, 1 subnets
O E1 2.2.2.0 [110/212] via 192.168.1.2, 00:03:33, Serial0/0
O E1 192.168.4.0/24 [110/212] via 192.168.1.2, 00:03:33, Serial0/0
C 192.168.1.0/24 is directly connected, Serial0/0
O IA 192.168.2.0/24 [110/128] via 192.168.1.2, 00:19:47, Serial0/0
O IA 192.168.3.0/24 [110/192] via 192.168.1.2, 00:19:47, Serial0/0
R1#show ip ospf database
OSPF Router with ID (192.168.1.1) (Process ID 1)
LSA1 Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 898 0x80000004 0x002350 3
192.168.2.1 192.168.2.1 350 0x80000005 0x00D6AD 2
LSA3 Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
192.168.2.0 192.168.2.1 350 0x80000002 0x002202
192.168.3.0 192.168.2.1 350 0x80000002 0x009949
LSA4 Summary ASB Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
192.168.4.1 192.168.2.1 1690 0x80000001 0x007868
LSA5 Type-5 AS External Link States()
Link ID ADV Router Age Seq# Checksum Tag
2.2.2.0 192.168.4.1 1408 0x80000001 0x00EDBE 0
192.168.4.0 192.168.4.1 1411 0x80000001 0x0058EC 0
R2#show run
interface Serial0/0
ip address 192.168.1.2 255.255.255.0
serial restart-delay 0
!interface Serial0/1
ip address 192.168.2.1 255.255.255.0
serial restart-delay 0
!router ospf 1
router-id 192.168.2.1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 0
R2#show ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 192.168.1.1, 00:16:26, Serial0/0
2.0.0.0/24 is subnetted, 1 subnets
O E1 2.2.2.0 [110/148] via 192.168.2.2, 00:00:11, Serial0/1
O E1 192.168.4.0/24 [110/148] via 192.168.2.2, 00:00:11, Serial0/1
C 192.168.1.0/24 is directly connected, Serial0/0
C 192.168.2.0/24 is directly connected, Serial0/1
O IA 192.168.3.0/24 [110/128] via 192.168.2.2, 00:16:26, Serial0/1
R3#show run
interface Serial0/1
ip address 192.168.2.2 255.255.255.0
serial restart-delay 0
!interface Serial0/2
ip address 192.168.3.1 255.255.255.0
serial restart-delay 0
router ospf 1
router-id 192.168.3.1
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 2
R3#show ip route
C 1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/129] via 192.168.2.1, 00:05:01, Serial0/1
2.0.0.0/24 is subnetted, 1 subnets
O E1 2.2.2.0 [110/84] via 192.168.3.2, 00:00:17, Serial0/2
O E1 192.168.4.0/24 [110/84] via 192.168.3.2, 00:00:18, Serial0/2
O IA 192.168.1.0/24 [110/128] via 192.168.2.1, 00:05:01, Serial0/1
C 192.168.2.0/24 is directly connected, Serial0/1
C 192.168.3.0/24 is directly connected, Serial0/2
R4#show run
interface Serial0/2
ip address 192.168.3.2 255.255.255.0
serial restart-delay 0
!interface Serial0/3
ip address 192.168.4.1 255.255.255.0
serial restart-delay 0
router ospf 1
router-id 192.168.4.1
log-adjacency-changes
redistribute rip metric-type 1 subnets
network 192.168.3.0 0.0.0.255 area 2
!router rip
version 2
redistribute ospf 1 metric 4
network 192.168.4.0
R4#show ip route
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/193] via 192.168.3.1, 00:24:34, Serial0/2
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 192.168.4.2, 00:00:01, Serial0/3
C 192.168.4.0/24 is directly connected, Serial0/3
O IA 192.168.1.0/24 [110/192] via 192.168.3.1, 00:24:34, Serial0/2
O IA 192.168.2.0/24 [110/128] via 192.168.3.1, 00:24:34, Serial0/2
C 192.168.3.0/24 is directly connected, Serial0/2
R5#show run
interface Loopback1
ip address 2.2.2.2 255.255.255.0
interface Serial0/3
ip address 192.168.4.2 255.255.255.0
serial restart-delay 0
router rip
version 2
network 2.0.0.0
network 192.168.4.0
no auto-summary
R5#show ip route
R 1.0.0.0/8 [120/4] via 192.168.4.1, 00:00:11, Serial0/3
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback1
C 192.168.4.0/24 is directly connected, Serial0/3
R 192.168.1.0/24 [120/4] via 192.168.4.1, 00:00:11, Serial0/3
R 192.168.2.0/24 [120/4] via 192.168.4.1, 00:00:11, Serial0/3
R 192.168.3.0/24 [120/4] via 192.168.4.1, 00:00:11, Serial0/3