R1
sys
sys R1
int lo 0
ip add 1.1.1.1 32
int g0/0/0
ip add 12.1.1.1 24
quit
ospf 1 router 1.1.1.1
area 1
network 1.1.1.1 0.0.0.0
network 12.1.1.0 0.0.0.255
R2
sys
sys R2
int g0/0/0
ip add 12.1.1.2 24
int g0/0/1
ip add 23.1.1.2 24
quit
ospf 1 router 2.2.2.2
area 0
network 23.1.1.0 0.0.0.255
area 1
network 12.1.1.0 0.0.0.255
R3
sys
sys R3
int g0/0/0
ip add 23.1.1.3 24
int g0/0/1
ip add 34.1.1.3 24
quit
ospf 1 router 3.3.3.3
area 0
network 23.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
R4
sys
sys R4
int g0/0/0
ip add 34.1.1.4 24
int g0/0/1
ip add 45.1.1.4 24
quit
ospf 1 router 4.4.4.4
area 0
network 34.1.1.0 0.0.0.255
area 2
network 45.1.1.0 0.0.0.255
R5
sys
sys R5
int lo 0
ip add 5.5.5.5 32
int g0/0/0
ip add 45.1.1.5 24
quit
ospf 1 router 5.5.5.5
area 2
network 45.1.1.0 0.0.0.255
network 5.5.5.5 0.0.0.0