In this lab, I will show you the OSPF Single Area Combination of Class C and Class A on 2 Routers
Table of Contents
VLSM
Given Network: 207.0.0.0
Host Requirement on Router 1: 500,000
Host Requirement on Router 2: 250,000

Router 1<= 500,000
500,000<= 2n – 2
500,000<= 219 – 2
500,000<= 524,288 – 2
500,000<= 524,286
Total number of network bit = 32
32 – n = 32 – 19 = 13 (CIDR of Router 1 network i.e. Given network)
i.e. 207.0.0.0/13
N.S.M = 11111111.11111000.00000000.00000000
= 255.248.0.0
Block Size = 256 – N.S.M
= 256 – 248 = 8
Note: Add this block size in given network so that we can get our new network for Router 2.
so the new network is 207.8.0.0/?
Now find FVH, LVH and Broadcast address
Given Network | 207 | 0 | 0 | 0 |
First Valid Host-FVH | 207 | 0 | 0 | 1 |
Last Valid Host-LVH | 207 | 7 | 255 | 254 |
Broadcast | 207 | 7 | 255 | 255 |
New Network | 207 | 8 | 0 | 0 |
Router 2<= 250,000
250,000 <= 2n – 2
250,000<= 218 – 2
250,000<= 262,144 – 2
250,000<= 262,142
Total number of network bits = 32
32 – n = 32 – 18 = 14 (CIDR of Router 2 network i.e. New network)
i.e. 207.8.0.0/14
N.S.M = 11111111.11111100.00000000.00000000
= 255.252.0.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 1 and 2 (Virtual Network).
so the new network is 207.12.0.0/?
Now find FVH, LVH and Broadcast address
Given Network | 207 | 8 | 0 | 0 |
First Valid Host-FVH | 207 | 8 | 0 | 1 |
Last Valid Host-LVH | 207 | 11 | 255 | 254 |
Broadcast | 207 | 11 | 255 | 255 |
New Network | 207 | 12 | 0 | 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. 207.12.0.0/30
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 207.12.0.4/?
Now find FVH, LVH and Broadcast address
Given Network | 207 | 12 | 0 | 0 |
First Valid Host-FVH | 207 | 12 | 0 | 1 |
Last Valid Host-LVH | 207 | 12 | 0 | 2 |
Broadcast | 207 | 12 | 0 | 3 |
New Network | 207 | 12 | 0 | 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 207.0.0.1 255.248.0.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/0/0 R1(config-if)#ip address 207.12.0.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 207.8.0.1 255.252.0.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/1/0 R2(config-if)#ip address 207.12.0.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#exit R2#write |
OSPF Single Area Configuration on Router 1
R1>enable R1#show ip route connected C 207.0.0.0/13 is directly connected, FastEthernet0/0 C 207.12.0.0/30 is directly connected, Serial0/0/0 R1#configure terminal R1(config)#router ospf 20 R1(config-router)#network 207.0.0.0 255.248.0.0 area 1 R1(config-router)#network 207.12.0.0 255.255.255.252 area 1 R1(config-router)#exit R1(config)#exit R1#write |
OSPF Single Area Configuration on Router 2
R2>enable R2#show ip route connected C 207.8.0.0/14 is directly connected, FastEthernet0/0 C 207.12.0.0/30 is directly connected, Serial0/1/0 R2#configure terminal R2(config)#router ospf 20 R2(config-router)#network 207.8.0.0 255.252.0.0 area 1 R2(config-router)#network 207.12.0.0 255.255.255.252 area 1 R2(config-router)#exit R2(config)#exit R2#write |
Verification on Router 1
R1#show ip route C 207.0.0.0/13 is directly connected, FastEthernet0/0 O 207.8.0.0/14 [110/65] via 207.12.0.2, 00:00:13, Serial0/0/0 207.12.0.0/30 is subnetted, 1 subnets C 207.12.0.0 is directly connected, Serial0/0/0 |
Verification on Router 2
R2#show ip route O 207.0.0.0/13 [110/65] via 207.12.0.1, 00:00:28, Serial0/1/0 C 207.8.0.0/14 is directly connected, FastEthernet0/0 207.12.0.0/30 is subnetted, 1 subnets C 207.12.0.0 is directly connected, Serial0/1/0 |
