In this lab I will show you OSPF Multi Area Configuration of 2 Routers
Table of Contents
VLSM
Given Network: 180.80.0.0
Host Requirement on Router 1: 1000
Host Requirement on Router 2: 500

Router 1<= 1000
1000<= 2n – 2
1000<= 210 – 2
1000<= 1024 – 2
1000<= 1022
Total number of network bit = 32
32 – n = 32 – 10 = 22 (CIDR of Router 1 network i.e. Given network)
i.e. 180.80.0.0/22
N.S.M = 11111111.11111111.11111100.00000000
= 255.255.252.0
Block Size = 256 – N.S.M
= 256 – 252 = 4
Note: Add this block size in given network so that we can get our new network for Router 2.
so the new network is 180.80.4.0/?
Now find FVH, LVH and Broadcast address
Given Network | 180 | 80 | 0 | 0 |
First Valid Host-FVH | 180 | 80 | 0 | 1 |
Last Valid Host-LVH | 180 | 80 | 3 | 254 |
Broadcast | 180 | 80 | 3 | 255 |
New Network | 180 | 80 | 4 | 0 |
Router 2<= 500
500 <= 2n – 2
500 <= 29 – 2
500 <= 512 – 2
500 <= 510
Total number of network bits = 32
32 – n = 32 – 9 = 23 (CIDR of Router 2 network i.e. New network)
i.e. 180.80.4.0/23
N.S.M = 11111111.11111111.11111110.00000000
= 255.255.254.0
Block Size = 256 – N.S.M
= 256 – 254 = 2
Note: Add this block size in given network so that we can get our new network for Router 1 and 2 (Virtual Network).
so the new network is 180.80.6.0?
Now find FVH, LVH and Broadcast address
Given Network | 180 | 80 | 4 | 0 |
First Valid Host-FVH | 180 | 80 | 4 | 1 |
Last Valid Host-LVH | 180 | 80 | 5 | 254 |
Broadcast | 180 | 80 | 5 | 255 |
New Network | 180 | 80 | 6 | 0 |
Router 1 and Router 2 <= 2 (we required only two IP to connect two routers)
2 <= 2n – 2
2 <= 22 – 2
2 <= 4 – 2
2 <= 2
Total number of network bits = 32
32 – n = 32 – 2 = 30 (CIDR of Virtual network (R1&R2))
i.e. 180.80.6.0
N.S.M = 11111111.11111111.11111111.11111100
= 255.255.255.252
Block Size = 256 – N.S.M
= 256 – 252 = 4
Note: Add this block size in given network so that we can get our new network for Router 3. This network can be used in future.
so the new network is 180.80.6.4/?
Now find FVH, LVH and Broadcast address
Given Network | 180 | 80 | 6 | 0 |
First Valid Host-FVH | 180 | 80 | 6 | 1 |
Last Valid Host-LVH | 180 | 80 | 6 | 2 |
Broadcast | 180 | 80 | 6 | 3 |
New Network | 180 | 80 | 6 | 4 |
Basic Configuration on Router 1
Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address 180.80.0.1 255.255.252.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/0/0 R1(config-if)#ip address 180.80.6.1 255.255.255.252 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#exit R1#write |
Basic Configuration on Router 2
Router>enable Router#configure terminal Router(config)#hostname R2 R2(config)#interface fastEthernet 0/0 R2(config-if)#ip address 180.80.4.1 255.255.254.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/1/0 R2(config-if)#ip address 180.80.6.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#exit R2#write |

OSPF Multi Area Configuration on Router 1
R1>enable R1#configure terminal R1(config)#router ospf 30 R1(config-router)#network 180.80.0.1 0.0.0.0 area 1 R1(config-router)#network 180.80.6.1 0.0.0.0 area 0 R1(config-router)#exit R1(config)#exit R1#write |
OSPF Multi Area Configuration on Router 2
R2>enable R2#configure terminal R2(config)#router ospf 30 R2(config-router)#network 180.80.4.1 0.0.0.0 area 2 R2(config-router)#network 180.80.6.2 0.0.0.0 area 0 R2(config-router)#exit R2(config)#exit R2#write |
Verification on Router 1
R1#show ip route 180.80.0.0/16 is variably subnetted, 3 subnets, 3 masks C 180.80.0.0/22 is directly connected, FastEthernet0/0 O IA 180.80.4.0/23 [110/65] via 180.80.6.2, 00:01:27, Serial0/0/0 C 180.80.6.0/30 is directly connected, Serial0/0/0 |
Verification on Router 2
R2#show ip route 180.80.0.0/16 is variably subnetted, 3 subnets, 3 masks O IA 180.80.0.0/22 [110/65] via 180.80.6.1, 00:01:52, Serial0/1/0 C 180.80.4.0/23 is directly connected, FastEthernet0/0 C 180.80.6.0/30 is directly connected, Serial0/1/0 |
