OSPF Single Area Configuration

conf t
ho R1
int g0/0
ip add 192.168.1.1 255.255.255.252
no sh
exit


int loopback 1
ip address 1.1.1.1 255.255.255.0
int loopback 2
ip address 1.1.2.1 255.255.255.0
exit

router ospf 1
network 192.168.1.0 0.0.0.3 area 0
network 1.1.1.0 0.0.0.255 area 0
network 1.1.2.0 0.0.0.255 area 0
end
-------------------------------
conf t
ho R2
int g0/0
ip add 192.168.1.2 255.255.255.252
no sh
int g0/1
ip add 192.168.1.5 255.255.255.252
no sh
exit


int loopback 1
ip address 2.2.2.1 255.255.255.0
int loopback 2
ip address 2.2.3.1 255.255.255.0
exit

router ospf 1
network 192.168.1.0 0.0.0.3 area 0
network 192.168.1.4 0.0.0.3 area 0
network 2.2.2.0 0.0.0.255 area 0
network 2.2.3.0 0.0.0.255 area 0
end

--------------------------------
conf t
ho R3
int g0/0
ip add 192.168.1.6 255.255.255.252
no sh
int g0/1
ip add 192.168.1.9 255.255.255.252
no sh
exit


int loopback 1
ip address 3.3.3.1 255.255.255.0
int loopback 2
ip address 3.3.4.1 255.255.255.0
exit

router ospf 1
network 192.168.1.4 0.0.0.3 area 0
network 192.168.1.8 0.0.0.3 area 0
network 3.3.3.0 0.0.0.255 area 0
network 3.3.4.0 0.0.0.255 area 0
end
------------------------
conf t
ho R4
int g0/0
ip add 192.168.1.10 255.255.255.252
no sh
exit

int loopback 1
ip address 4.4.4.1 255.255.255.0
int loopback 2
ip address 4.4.5.1 255.255.255.0
exit

router ospf 1
network 192.168.1.8 0.0.0.3 area 0
network 4.4.4.0 0.0.0.255 area 0
network 4.4.5.0 0.0.0.255 area 0
end