R1
[R1]int e0/0/0
[R1-Ethernet0/0/0]ip ad 12.1.1.1 24
[R1-Ethernet0/0/0]q
[R1]ospf router-id 1.1.1.1
[R1-ospf-1]a 0
[R1-ospf-1-area-0.0.0.0]net 12.1.1.0 0.0.0.255
R2
[R2]int e0/0/1
[R2-Ethernet0/0/1]ip ad 23.1.1.1 24
[R2-Ethernet0/0/1]int e0/0/0
[R2-Ethernet0/0/0]ip ad 12.1.1.2 24
[R2-Ethernet0/0/0]q
[R2]ospf router-id 2.2.2.2
[R2-ospf-1]a 0
[R2-ospf-1-area-0.0.0.0]net 12.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]q
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]net 23.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]vlink-peer 4.4.4.4
R3
[R3]int e0/0/0
[R3-Ethernet0/0/0]ip ad 23.1.1.2 24
[R3-Ethernet0/0/0]int e0/0/1
[R3-Ethernet0/0/1]ip ad 34.1.1.1 24
[R3-Ethernet0/0/1]q
[R3]ospf router-id 3.3.3.3
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]net 23.1.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]net 34.1.1.0 0.0.0.255
R4
[R4]int e0/0/0
[R4-Ethernet0/0/0]ip ad 34.1.1.2 24
[R4-Ethernet0/0/0]int e0/0/1
[R4-Ethernet0/0/1]ip ad 45.1.1.1 24
[R4-Ethernet0/0/1]q
[R4]ospf router-id 4.4.4.4
[R4-ospf-1]a 1
[R4-ospf-1-area-0.0.0.1]net 34.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.1]q
[R4-ospf-1]a 2
[R4-ospf-1-area-0.0.0.2]net 45.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.2]q
[R4-ospf-1]a 1
[R4-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2
R5
[R5]int e0/0/0
[R5-Ethernet0/0/0]ip ad 45.1.1.2 24
[R5-Ethernet0/0/0]int e0/0/1
[R5-Ethernet0/0/1]ip ad 56.1.1.1 24
[R5-Ethernet0/0/1]q
[R5]ospf router-id 5.5.5.5
[R5-ospf-1]a 2
[R5-ospf-1-area-0.0.0.2]net 45.1.1.0 0.0.0.255
[R5-ospf-1-area-0.0.0.2]net 56.1.1.0 0.0.0.255