In this lab, I will show Default Configuration of 3 Routers
Table of Contents
VLSM
Given Network: 150.100.0.0
Required host on Router 1= 30,000
Required host on Router 2= 8,000
Required host on Router 3= 2000

R1<=30,000
30,000 <=2n – 2
30,000 <=215 – 2
30,000<=32,768 – 2
30,000<=32,766
Total number of network bits = 32
32 – n = 32 – 15 = 17 (CIDR value of Router 1 i.e. Given network)
i.e. 150.100.0.0/17
N.S.M = 11111111.11111111.10000000.00000000
= 255.255.128.0
Block Size = 256 – N.S.M
= 256 – 128 = 128
Note: Add this block size in given network so that we can get our new network for Router 2.
so the new network is 150.100.128.0/?
Now find FVH, LVH and Broadcast address
Given Network | 150 | 100 | 0 | 0 |
First Valid Host-FVH | 150 | 100 | 0 | 1 |
Last Valid Host-LVH | 150 | 100 | 127 | 254 |
Broadcast | 150 | 100 | 127 | 255 |
New Network | 150 | 100 | 128 | 0 |
R2<=8,000
8,000<=2n – 2
8,000<=213 – 2
8,000<=8,192 – 2
8,000<=8,190
Total number of network bits = 32
32 – n = 32 – 13 = 19 (CIDR value of Router 2 i.e. New network)
i.e. 150.100.128.0/19
N.S.M = 11111111.11111111.111 00000.00000000
= 255.255.224.0
Block Size = 256 – N.S.M
= 256 – 224 = 32
Note: Add this block size in given network so that we can get our new network for Router 3.
so the new network is 150.100.160.0/?
Now find FVH, LVH and Broadcast address
Given Network | 150 | 100 | 128 | 0 |
First Valid Host-FVH | 150 | 100 | 128 | 1 |
Last Valid Host-LVH | 150 | 100 | 159 | 254 |
Broadcast | 150 | 100 | 159 | 255 |
New Network | 150 | 100 | 160 | 0 |
R3<=2,000
2,000<=2n – 2
2,000<=211 – 2
2,000<=2,048 – 2
2,000<=2,046
Total number of network bits = 32
32 – n = 32 – 11 = 21 (CIDR value of Router 3 i.e. New network)
i.e. 150.100.160.0/21
N.S.M = 11111111.11111111.11111000.00000000
= 255.255.248.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 1 and Router 2 (Virtual Network).
so the new network is 150.100.168.0/?
Now find FVH, LVH and Broadcast address
Given Network | 150 | 100 | 160 | 0 |
First Valid Host-FVH | 150 | 100 | 160 | 1 |
Last Valid Host-LVH | 150 | 100 | 167 | 254 |
Broadcast | 150 | 100 | 167 | 255 |
New Network | 150 | 100 | 168 | 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. 150.100.168.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 2 and Router 3 (Virtual Network). so the new network is 150.100.168.4/30?
Now find FVH, LVH and Broadcast address
Given Network | 150 | 100 | 168 | 0 |
First Valid Host-FVH | 150 | 100 | 168 | 1 |
Last Valid Host-LVH | 150 | 100 | 168 | 2 |
Broadcast | 150 | 100 | 168 | 3 |
New Network | 150 | 100 | 168 | 4 |
2 and Router 3 <= 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 (R2&R3))
i.e. 150.100.168.4/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 4. This network can be used in future.
so the new network is 150.100.168.8/?
Now find FVH, LVH and Broadcast address
Given Network | 150 | 100 | 168 | 4 |
First Valid Host-FVH | 150 | 100 | 168 | 5 |
Last Valid Host-LVH | 150 | 100 | 168 | 6 |
Broadcast | 150 | 100 | 168 | 7 |
New Network | 150 | 100 | 168 | 8 |

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 150.100.0.1 255.255.128.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/0/0 R1(config-if)#ip address 150.100.168.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 150.100.128.1 255.255.224.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/1/0 R2(config-if)#ip address 150.100.168.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/0/0 R2(config-if)#ip address 150.100.168.5 255.255.255.252 R2(config-if)#clock rate 64000 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#exit R2#write |
Basic Configuration on Router 3
Router>enable Router#configure terminal Router(config)#hostname R3 R3(config)#interface fastEthernet 0/0 R3(config-if)#ip address 150.100.160.1 255.255.248.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 0/1/0 R3(config-if)#ip address 150.100.168.6 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#exit R3#write |
Default Configuration on Router 1
R1>enable R1#configure terminal R1(config)#ip route 0.0.0.0 0.0.0.0 150.100.168.2 R1(config)#exit R1#write |
Static Configuration on Router 2
R2>enable R2#configure terminal R2(config)#ip route 150.100.0.0 255.255.128.0 150.100.168.1 R2(config)#ip route 150.100.160.0 255.255.248.0 150.100.168.6 R2(config)# R2(config)#ip route 150.100.168.0 255.255.255.252 150.100.168.1 R2(config)#ip route 150.100.168.4 255.255.255.252 150.100.168.6 R2(config)#exit R2#write |
Default Configuration on Router 3
R3>enable R3#configure terminal R3(config)#ip route 0.0.0.0 0.0.0.0 150.100.168.5 R3(config)#exit R3#write |
Verification on Router 1
R1#show ip route 150.100.0.0/16 is variably subnetted, 2 subnets, 2 masks C 150.100.0.0/17 is directly connected, FastEthernet0/0 C 150.100.168.0/30 is directly connected, Serial0/0/0 S* 0.0.0.0/0 [1/0] via 150.100.168.2 |
Verification on Router 2
R2#show ip route 150.100.0.0/16 is variably subnetted, 5 subnets, 4 masks S 150.100.0.0/17 [1/0] via 150.100.168.1 C 150.100.128.0/19 is directly connected, FastEthernet0/0 S 150.100.160.0/21 [1/0] via 150.100.168.6 C 150.100.168.0/30 is directly connected, Serial0/1/0 C 150.100.168.4/30 is directly connected, Serial0/0/0 |
Verification on Router 3
R3#show ip route 150.100.0.0/16 is variably subnetted, 2 subnets, 2 masks C 150.100.160.0/21 is directly connected, FastEthernet0/0 C 150.100.168.4/30 is directly connected, Serial0/1/0 S* 0.0.0.0/0 [1/0] via 150.100.168.5 |
