Given Network = 192.168.0.0
Required hosts for Router 1 = 25
Required hosts for Router 2 = 10
Required hosts for Router 3 = 54
Required hosts for Router 4 = 4
Required hosts for Router 5 = 14
Router 1 >= 25 hosts
25 >= 2n – 2
25 >= 25 – 2
25 >= 32 – 2
25 >= 30
Total number of network bits = 32
32 – n = 32 – = 27 (CIDR of Router 1 network i.e Given network )
i.e 192.168.0.0/27
N.S.M = 11111111.11111111.11111111.11100000
= 255.255.255.224
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 2.
so the new network is 192.168.0.32/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .0
FVH 192 .168 .0 .1
LVH 192 .168 .0 .30
Broadcast 192 .168 .0 .31
New network 192 .168 .0 .32
Router 2 >= 10 hosts
10 >= 2n – 2
10 >= 24 – 2
10 >= 16 – 2
10 >= 14
Total number of network bits = 32
32 – n = 32 – 4 = 28 (CIDR of Router 2 network i.e New network )
i.e 192.168.0.32 /28
N.S.M = 11111111.11111111.11111111.11110000
= 255.255.255.240
Block Size = 256 – N.S.M
= 256 – 240 = 16
Note: Add this block size in given network so that we can get our new network for Router 3.
so the new network is 192.168.0.48/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .32
FVH 192 .168 .0 .33
LVH 192 .168 .0 .46
Broadcast 192 .168 .0 .47
New network 192 .168 .0 .48
Router 3 >= 6 hosts
6 >= 2n – 2
6 >= 23 – 2
6 >= 8 – 2
6 >= 6
Total number of network bits = 32
32 – n = 32 – 3 = 29 (CIDR of Router 3 network i.e New network )
i.e 192.168.0.48/29
N.S.M = 11111111.11111111.11111111.11111000
= 255.255.255.248
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 4.
so the new network is 192.168.0.56 /?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .48
FVH 192 .168 .0 .49
LVH 192 .168 .0 .56
Broadcast 192 .168 .0 .57
New network 192 .168 .0 .56
Router 4 >= 4 hosts
4 >= 2n – 2
4 >= 23 – 2
4 >= 8 – 2
4 >= 6
Total number of network bits = 32
32 – n = 32 – 3 = 29 (CIDR of Router 4 network i.e New network )
i.e 192.168.0.56 /29
N.S.M = 11111111.11111111.11111111.11111000
= 255.255.255.248
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 5.
so the new network is 192.168.0.64 /?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .56
FVH 192 .168 .0 .57
LVH 192 .168 .0 .62
Broadcast 192 .168 .0 .63
New network 192 .168 .0 .64
Router 5 >= 14 hosts
14 >= 2n – 2
14 >= 24 – 2
14 >= 16 – 2
14 >= 14
Total number of network bits = 32
32 – n = 32 – 4 = 28 (CIDR of Router 5 network i.e New network )
i.e 192.168.0.64/28
N.S.M = 11111111.11111111.11111111.11110000
= 255.255.255.240
Block Size = 256 – N.S.M
= 256 – 240 = 16
Note: Add this block size in given network so that we can get our new network for Router 1 and Router2 (Virtual Network).
so the new network is 192.168.0.80 /?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .64
FVH 192 .168 .0 .65
LVH 192 .168 .0 .78
Broadcast 192 .168 .0 .79
New network 192 .168 .0 .80
Router 1 & 2 >= 2 hosts (we required only two ip to connect 2 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 Virtrual network (R1&R2))
i.e 192.168.0.80/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 192.168.0.84/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .80
FVH 192 .168 .0 .81
LVH 192 .168 .0 .82
Broadcast 192 .168 .0 .83
New network 192 .168 .0 .84
Router 2 & 3 >= 2 hosts (we required only two ip to connect 2 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 Virtrual network (R1&R2))
i.e 192.168.0.84/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 192.168.0.88/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .84
FVH 192 .168 .0 .85
LVH 192 .168 .0 .86
Broadcast 192 .168 .0 .87
New network 192 .168 .0 .88
Router 3 & 4 >= 2 hosts (we required only two ip to connect 2 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 Virtrual network (R1&R2))
i.e 192.168.0.88/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 192.168.0.92/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .88
FVH 192 .168 .0 .89
LVH 192 .168 .0 .90
Broadcast 192 .168 .0 .91
New network 192 .168 .0 .92
Router 4 & 5 >= 2 hosts (we required only two ip to connect 2 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 Virtrual network (R1&R2))
i.e 192.168.0.92/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 192.168.0.96/?
Now find FVH, LVH and Broadcast address
Given network 192 .168 .0 .92
FVH 192 .168 .0 .93
LVH 192 .168 .0 .94
Broadcast 192 .168 .0 .95
New network 192 .168 .0 .96
Basic Configuration on Router 1
R1>enable
R1#configure terminal
R1#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip add 192.168.0.1 255.255.255.224
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip add 192.168.0.81 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
R2>enable
R2#configure terminal
R2#hostname R2
R2config)#interface fastEthernet 0/0
R2(config-if)#ip add 192.168.0.33 255.255.255.240
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/1/0
R2(config-if)#ip add 192.168.0.82 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip add 192.168.0.85 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
R3>enable
R3#configure terminal
R3#hostname R3
R3config)#interface fastEthernet 0/0
R3(config-if)#ip add 192.168.0.49 255.255.255.248
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 0/1/0
R3(config-if)#ip add 192.168.0.86 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 0/0/0
R3(config-if)#ip add 192.168.0.89 255.255.255.252
R3(config-if)#clock rate 64000
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#exit
R3#write
Basic Configuration on Router 4
R4>enable
R4#configure terminal
R4#hostname R4
R4config)#interface fastEthernet 0/0
R4(config-if)#ip add 192.168.0.56 255.255.255.248
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface serial 0/1/0
R4(config-if)#ip add 192.168.0.90 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface serial 0/0/0
R4(config-if)#ip add 192.168.0.93 255.255.255.252
R4(config-if)#clock rate 64000
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#exit
R4#write
Basic Configuration on Router 5
R5>enable
R5#configure terminal
R5#hostname R5
R5config)#interface fastEthernet 0/0
R5(config-if)#ip add 192.168.0.65 255.255.255.240
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface serial 0/1/0
R5(config-if)#ip add 192.168.0.94 255.255.255.252
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#exit
R5#write
Static Configuration on Router 1
R1>enable
R1#configure terminal
R1(config)#ip route 192.168.0.32 255.255.255.240 192.168.0.82
R1(config)#ip route 192.168.0.48 255.255.255.248 192.168.0.82
R1(config)#ip route 192.168.0.56 255.255.255.248 192.168.0.82
R1(config)#ip route 192.168.0.64 255.255.255.240 192.168.0.82
R1(config)#exit
R1#write
Static Configuration on Router 2
R2>enable
R2#configure terminal
R2(config)#ip route 192.168.0.0 255.255.255.224 192.168.0.81
R2(config)#ip route 192.168.0.48 255.255.255.248 192.168.0.86
R2(config)#ip route 192.168.0.56 255.255.255.248 192.168.0.86
R2(config)#ip route 192.168.0.64 255.255.255.240 192.168.0.86
R2(config)#exit
R2#write
Static Configuration on Router 3
R3>enable
R3#configure terminal
R3(config)#ip route 192.168.0.32 255.255.255.240 192.168.0.85
R3(config)#ip route 192.168.0.0 255.255.255.224 192.168.0.85
R3(config)#ip route 192.168.0.56 255.255.255.248 192.168.0.90
R3(config)#ip route 192.168.0.64 255.255.255.240 192.168.0.90
R3(config)#exit
R3#write
Static Configuration on Router 4
R4>enable
R4#configure terminal
R4(config)#ip route 192.168.0.48 255.255.255.248 192.168.0.89
R4(config)#ip route 192.168.0.32 255.255.255.240 192.168.0.89
R4(config)#ip route 192.168.0.0 255.255.255.224 192.168.0.89
R4(config)#ip route 192.168.0.64 255.255.255.240 192.168.0.94
R4(config)#exit
R4#write
Static Configuration on Router 5
R5>enable
R5#configure terminal
R5(config)#ip route 192.168.0.56 255.255.255.248 192.168.0.93
R5(config)#ip route 192.168.0.48 255.255.255.248 192.168.0.93
R5(config)#ip route 192.168.0.32 255.255.255.240 192.168.0.93
R5(config)#ip route 192.168.0.0 255.255.255.224 192.168.0.93
R5(config)#exit
R5#write
Verification on Router 1
R1#show ip route
192.168.0.0/24 is variably subnetted, 6 subnets, 4 masks
C 192.168.0.0/27 is directly connected, FastEthernet0/0
S 192.168.0.32/28 [1/0] via 192.168.0.82
S 192.168.0.48/29 [1/0] via 192.168.0.82
S 192.168.0.56/29 [1/0] via 192.168.0.82
S 192.168.0.64/28 [1/0] via 192.168.0.82
C 192.168.0.80/30 is directly connected, Serial0/0/0
Verification on Router 2
R2#show ip route
192.168.0.0/24 is variably subnetted, 7 subnets, 4 masks
S 192.168.0.0/27 [1/0] via 192.168.0.81
C 192.168.0.32/28 is directly connected, FastEthernet0/0
S 192.168.0.48/29 [1/0] via 192.168.0.86
S 192.168.0.56/29 [1/0] via 192.168.0.86
S 192.168.0.64/28 [1/0] via 192.168.0.86
C 192.168.0.80/30 is directly connected, Serial0/1/0
C 192.168.0.84/30 is directly connected, Serial0/0/0
Verification on Router 3
R3#show ip route
192.168.0.0/24 is variably subnetted, 7 subnets, 4 masks
S 192.168.0.0/27 [1/0] via 192.168.0.85
S 192.168.0.32/28 [1/0] via 192.168.0.85
C 192.168.0.48/29 is directly connected, FastEthernet0/0
S 192.168.0.56/29 [1/0] via 192.168.0.90
S 192.168.0.64/28 [1/0] via 192.168.0.90
C 192.168.0.84/30 is directly connected, Serial0/1/0
C 192.168.0.88/30 is directly connected, Serial0/0/0
Verification on Router 4
R4#show ip route
192.168.0.0/24 is variably subnetted, 7 subnets, 4 masks
S 192.168.0.0/27 [1/0] via 192.168.0.89
S 192.168.0.32/28 [1/0] via 192.168.0.89
S 192.168.0.48/29 [1/0] via 192.168.0.89
C 192.168.0.56/29 is directly connected, FastEthernet0/0
S 192.168.0.64/28 [1/0] via 192.168.0.94
C 192.168.0.88/30 is directly connected, Serial0/1/0
C 192.168.0.92/30 is directly connected, Serial0/0/0
Verification on Router 5
R5#show ip route
192.168.0.0/24 is variably subnetted, 6 subnets, 4 masks
S 192.168.0.0/27 [1/0] via 192.168.0.93
S 192.168.0.32/28 [1/0] via 192.168.0.93
S 192.168.0.48/29 [1/0] via 192.168.0.93
S 192.168.0.56/29 [1/0] via 192.168.0.93
C 192.168.0.64/28 is directly connected, FastEthernet0/0
C 192.168.0.92/30 is directly connected, Serial0/1/0