You are on page 1of 12

Class Full Subnet

1. As an administrator of an organization, you are provided with the block of 215.200.190.0.


Now you need to allocate this block into 5 different subnetworks.
Given:
Block of ip:215.200.190.0
Number of subnet=5
Since this block belong to class c, default subnet mask=255.255.255.0
Network id=
215.200.190.0=1101 0111. 1100 1000. 1011 1110. 0000 0000
255.255.255.0=1111 1111. 1111 1111. 1111 1111. 0000 0000
1101 0111. 1100 1000. 1011 1110. 0000 0000
Network id:215.200.190.0

Required subnet=5
2?-2=5
23-2=5(approx.)
Bit to be borrowed=3
Number of block=23-2=6
Networkbit=24+3=27
Custom subnetmask=1111 1111. 1111 1111. 1111 1111. 1110 0000
Custom subnetmask=255.255.255.224
Host bit=32-27=5
Host per subnet=25=32

IP allocation
Since 1st subnet and last subnet is not used in classical subnetting we can only allocate this
block of ips into 6 department

1st department
Prefix: 001
Starting ip:0010 0000=32(215.200.190.32)
Ending ip: 0011 1111=63 (215.200.190.63)
Subnet mask=255.255.255.224
Networkid:215.200.190.32
Gateway:215.200.190.33
Broadcasted:215.200.190.63
Total host=32
Useable host=32-2

2nd department
Prefix: 010
Starting ip:0100 0000=64(215.200.190.64)
Ending ip: 0101 1111=95 (215.200.190.95)
Subnet mask=255.255.255.224
Networkid:215.200.190.64
Gateway:215.200.190.65
Broadcasted:215.200.190.95
Total host=32
Useable host=32-2
3rd department
Prefix: 011
Starting ip:0110 0000=96(215.200.190.96)
Ending ip: 0111 1111=127 (215.200.190.127)
Subnet mask=255.255.255.224
Networkid:215.200.190.96
Gateway:215.200.190.97
Broadcasted:215.200.190.127
Total host=32
Useable host=32-2

4nd department
Prefix: 100
Starting ip:1000 0000=128(215.200.190.128)
Ending ip: 1001 1111=159 (215.200.190.95)
Subnet mask=255.255.255.224
Networkid:215.200.190.128
Gateway:215.200.190.129
Broadcasted:215.200.190.159
Total host=32
Useable host=32-2

5th department
Prefix: 101
Starting ip:1010 0000=160(215.200.190.160)
Ending ip: 1011 1111=191 (215.200.190.191)
Subnet mask=255.255.255.224
Networkid:215.200.190.160
Gateway:215.200.190.161
Broadcasted:215.200.190.191
Total host=32
Useable host=32-2

Allocation Table

Depart Prefix Starting ip Ending ip Subnetmask Networked Broadcasted Gateway


1 001 215.200.190.32 215.200.190.63 255.255.255.224 215.200.190.32 215.200.190.63 215.200.190.33
2 010 215.200.190.64 215.200.190.95 255.255.255.224 215.200.190.64 215.200.190.95 215.200.190.65
3
4
5
2. As an administrator of an organization, you are provided with the block of 215.200.190.0.
Now you need to allocate 10 ip in each department.

Given:
Block of ip:215.200.190.0
Nos of host per subnet=10
Since this block belong to class c, default subnet mask=255.255.255.0
Network id=
215.200.190.0=1101 0111. 1100 1000. 1011 1110. 0000 0000
255.255.255.0=1111 1111. 1111 1111. 1111 1111. 0000 0000
1101 0111. 1100 1000. 1011 1110. 0000 0000
Network id:215.200.190.0

Host per subnet=10


2?-2=10
24-2=10(approx.)
Host bit= 4
Networkbit=32-4=28
Custom subnetmask=1111 1111. 1111 1111. 1111 1111. 1111 0000
Custom subnetmask=255.255.255.240
Host per subnet=24=16

IP allocation
Since 1st subnet and last subnet is not used in classical subnetting we can only allocate this ip
address into 14(24-2) departments

1st department
Prefix: 001
Starting ip:0001 0000=16 (215.200.190.16)
Ending ip: 0001 1111= 31(215.200.190.)
Subnet mask=255.255.255.240
Networkid:215.200.190.16
Gateway:215.200.190.17
Broadcasted:215.200.190.31
Total host=16(24=16)
Useable host=24-2=14
Remaining:
Sip:215.200.190.32
Eip:215.200.190.255

2nd department
Prefix: 0010
Starting ip:0010 0000=32 (215.200.190.32)
Ending ip: 0010 1111= 47(215.200.190.)
Subnet mask=255.255.255.240
Networkid:215.200.190.32
Gateway:215.200.190.33
Broadcasted:215.200.190.47
Total host=16(24=16)
Useable host=24-2=14
Remaining:
Sip:215.200.190.48
Eip:215.200.190.255
Depart Prefix Starting ip Ending ip Subnetmask Networked Broadcasted Gateway
1 0001 215.200.190.16 215.200.190.31 255.255.255.240 215.200.190.16 215.200.190.31 215.200.190.17
2 0010 215.200.190.32 215.200.190.47 255.255.255.240 215.200.190.32 215.200.190.47 215.200.190.33
3
4
5
CIDR: Class Less interdomain route
1. As an administrator of an organization, you are provided with the block of 15.20.190.0/24
Now you need to allocate IP as follows.
For dep a=10,b=25,c=100,d=5,e=50

Solution:

Network id=
15.20.190.0=0000 1111. 0001 0100. 1011 1110. 0000 0000
/24= 1111 1111. 1111 1111. 1111 1111. 0000 0000
0000 1111. 0001 0100. 1011 1110. 0000 0000
Network id:15.20.190.0

Arrange it into descending order


C=100,e=50,b=25,a=10,d=5

Allocation
For “C”
Req host=100
2?=100
27=100(approx.)
Host bit=7
Network bit=32-7=25
/notation=/25
Snm= 1111 1111. 1111 1111. 1111 1111.1000 0000
Snm=255.255.255.128
Total host per subnet=27=128
Useable host=27-2=126
Sip:15.20.190.0
Eip:15.20.190.127(0+128-1)
Gateway:15.20.190.1
Network id:15.20.190.0/25
Broadcast:15.20.190.127
Remaining ip
Sip:15.20.190.128
Eip:15.20.190.255
Network Id:15.20.128/25

For “E”
Req host=50
2?=50
26=50(approx.)
Host bit=6
Network bit=32-6=26
/notaion=/26
Snm= 1111 1111. 1111 1111. 1111 1111.1100 0000
Snm=255.255.255.192
Total host per subnet=26=64
Useable host=26-2=62
Sip:15.20.190.128
Eip:15.20.190.191(128+64-1)
Gateway:15.20.190.129
Network id:15.20.190.128/26
Broadcast:15.20.190.191
Remaining ip
Sip:15.20.190.192
Eip:15.20.190.255
Networkid:15.20.190.192/26
For “B”
Req host=25
2?=25
25=25(approx.)
Host bit=5
Network bit=32-5=27
/notation=/27
Snm= 1111 1111. 1111 1111. 1111 1111.1110 0000
Snm=255.255.255.224
Total host per subnet=25=32
Useable host=25-2=30
Sip: 15.20.190.192
Eip:15.20.190.223(192+32-1)
Gateway:15.20.190.193
Network id:15.20.190.192/27
Broadcast:15.20.190.223
Remaining ip
Sip:15.20.190.224
Eip:15.20.190.255
Networked:15.20.190.224/27

For “a”
Req host=10
2?=10
24=10 (approx.)
Host bit=4
Network bit=32-4=28
/notation=/28
Snm= 1111 1111. 1111 1111. 1111 1111.1111 0000
Snm=255.255.255.240
Total host per subnet=24=16
Useable host=24-2=14
Sip:15.20.190.224
Eip:15.20.190.239(224+16-1)
Gateway:15.20.190.225
Network id:15.20.190.224/28
Broadcast:15.20.190.239
Remaining ip
Sip:15.20.190.240
Eip:15.20.190.255
NetworkID:15.20.190.240/28

For “e”
Req host=5
2?=5
23=5(approx.)
Host bit=3
Network bit=32-3=29
Snm= 1111 1111. 1111 1111. 1111 1111.1111 1000
Snm=255.255.255.248
Total host per subnet=23=8
Useable host=23-2=6
Sip:15.20.190.240
Eip:15.20.190.247(240+8-1)
Gateway:15.20.190.241
Network id:15.20.190.240/29
Broadcast:15.20.190.247
Remaining ip
Sip:15.20.190.248
Eip:15.20.190.255
Networked:15.20.190.248/29
sUBNET HOST /notation Starting ip Ending ip Subnetmask Networke Broadcasted Gateway
d
A 10 /28 .224 .239 255.255.255.240
B 50 /26 .128 .191 255.255.255.192
C 100 /25 15.20.190.0 15.200.190.127 255.255.255.128
D 25 /27 .192 .223 255.255.255.224
E 5 /29 .240 .247 255.255.255.248
remainin /29 .248 255
g

Suppose you are an administrator of the organization and you need to manage block of ip address
5.109.100.155/25 as following.
for department b=10 host, for department c=26 host, for d=50 for department e=5 host
solution:
Block:5.109.100.155/25
Network id:
5.109.100.155:0000 0101.0110 1101. 0110 0100. 1001 1011
Mask /25: 1111 1111. 1111 1111.1111 1111. 1000 0000
0000 0101.0110 1101. 0110 0100. 1000 0000
5.109.100.128/25
Arranging into descending order
D=50, c=26,b=10, e=5
Network bit=25
Hostbit=32-25=7
Total host =27=128(5.109.100.128 to5.109.100.255)

Allocation
For “D”
Req host=50
2?=50
26=50(approx.)
Host bit=6
Network bit=32-6=26
/notation=/26
Snm= 1111 1111. 1111 1111. 1111 1111.1100 0000
Snm=255.255.255.192
Total host per subnet=26=64
Useable host=26-2=62
Sip:5.109.100.128
Eip:5.109.100.191(128+64-1)
Gateway:5.109.100.129
Network id:5.109.100.128/26
Broadcast: 5.109.100.191
Remaining ip
Sip: 5.109.100.192
Eip:5.109.100.255
Networked: 5.109.100.192/26

For “C”
Req host=26
2?=26
25=26(approx.)
Host bit=5
Network bit=32-5=27
/notation=/27
Snm= 1111 1111. 1111 1111. 1111 1111.1110 0000
Snm=255.255.255.224
Total host per subnet=25=32
Useable host=25-2=30
Sip:5.109.100.192
Eip:5.109.100.223(192+32-1)
Gateway:5.109.100.193
Network id:5.109.100.192/27
Broadcast: 5.109.100.223
Remaining ip
Sip: 5.109.100.224
Eip:5.109.100.255
Networked: 5.109.100.224/26

sUBNET HOST /notation Starting ip Ending ip Subnetmask Networked Broadcasted Gateway

D 50 /26 .128 .191 255.255.255.192


C 26 /27 .192 .223 255.255.255.224
B 10 /28 224 239 255.255.255.240
E 5 /29 .240 .247 255.255.255.248
remainin /29 .248 255
g
Suppose you are an administrator of the organization and you need to manage block of ip address
101.5.9.10/20 as following.
for department b=2000 a=500,c=1000 d=20,e=100,f=50,g=200

solution:
Block:101.5.9.10/20
Network id:
101.5.9.10: 0110 0101.0000 0101.0000 1001.0000 1010
Mask /20: 1111 1111. 1111 1111.1111 0000.0000 0000
0110 0101.0000 0101. 0000 0000.0000 0000
101.5.0.0/20
Snm=1111 1111.1111 1111.1111 0000.000 0000
Snm=255.255.240.0

Host bit=32-20=12
Total host=212=4096
Total block=4096/256=16
Starting block=101.5.0.0
Ending block=101.5.15 .0(0+16-1=15)

Arranging into descending order


B=2000, c=1000,a=500,g=200,e=100,f=50 and d=20

Allocation
For “B”
Req host=2000
2?=2000
211=2000(approx.)
Host bit=11
Network bit=32-11=21
/notation=/21
Snm= 1111 1111. 1111 1111. 1111 1000.0000
Snm=255.255.248.0
Total host per subnet=211=2048
Useable host=211-2=2046
Number of block=2048/256=8
Starting block=101.5.0.0
Ending block=101.5.7.0(0+8-1=7)
Sip: 101.5.0.0
Eip:101.5.7.255
Network id:101.5.0.0/21
Remaining Block:
Starting block=101.5.8.0
Ending block=101.5.15.0
SIP: 101.5.8.0
Eip: 101.5.15.255
NetworkId: 101.5.8.0/21

For c=1000
Req host=1000
2?=1000
210=1000(approx.)
Host bit=10
Network bit=32-10=22
/notation=/22
Snm= 1111 1111. 1111 1111. 1111 1100.0000 0000
Snm=255.255.252.0
Total host per subnet=210=1024
Number of block=1024/256=4
Starting block=101.5.8.0
Ending block=101.5.11.0(8+4-1=11)
Sip: 101.5.8.0
Eip:101.5.11.255
Network id:101.5.8.0/22
Remaining Block:
Starting block=101.5.12.0
Ending block=101.5.15.0
SIP: 101.5.12.0
Eip: 101.5.15.255
NetworkId: 101.5.12.0/22

For a=500
Req host=500
2?=500
29=500(approx.)
Host bit=9
Network bit=32-9=23
/notation=/23
Snm= 1111 1111. 1111 1111. 1111 1110.0000 0000
Snm=255.255.254.0
Total host per subnet=29=512
Number of block=512/256=2
Starting block=101.5.12.0
Ending block=101.5.13.0(12+2-1=13)
Sip: 101.5.12.0
Eip:101.5.13.255
Network id:101.5.12.0/23
Remaining Block:
Starting block=101.5.14.0
Ending block=101.5.15.0
SIP: 101.5.14.0
Eip: 101.5.15.255
NetworkId: 101.5.14.0/23

For g=200
Req host=200
2?=200
28=200(approx.)
Host bit=8
Network bit=32-8=24
/notation=/24
Snm= 1111 1111. 1111 1111. 1111 1111.0000 0000
Snm=255.255.255.0
Total host per subnet=28=256
Number of block=256/256=1
Starting block=101.5.14.0
Ending block=101.5.14.0(14+1-1=14)
Sip: 101.5.14.0
Eip:101.5.14.255
Network id:101.5.14.0/24
Remaining Block:
Starting block=101.5.15.0
Ending block=101.5.15.0
SIP: 101.5.15.0
Eip: 101.5.15.255
NetworkId: 101.5.15.0/24

For e =100
Req host=100
2?=100
27=100(approx.)
Host bit=7
Network bit=32-7=25
/notation=/25
Snm= 1111 1111. 1111 1111. 1111 1111 1000 0000
Snm=255.255.252.128
Total host per subnet=27=128
Sip: 101.5.15.0
Eip:101.5.15.127(0+128-1=127)
Network id:101.5.15.0/25
Remaining Block:
SIP: 101.5.15.128
Eip: 101.5.15.255
NetworkId: 101.5.15.128/25

f=50
Req host=50
2?=50
26=50(approx.)
Host bit=6
Network bit=32-6=26
/notation=/26
Snm= 1111 1111. 1111 1111. 1111 1111 1100 0000
Snm=255.255.252.192
Total host per subnet=26=64
Sip: 101.5.15.128
Eip:101.5.15.191(128+64-1=191)
Network id:101.5.15.128/26
Remaining Block:
SIP: 101.5.15.192
Eip: 101.5.15.255
NetworkId: 101.5.15.192/26

d=20
Req host=20
2?=20
25=20(approx.)
Host bit=5
Network bit=32-5=27
/notation=/27
Snm= 1111 1111. 1111 1111. 1111 1111 1110 0000
Snm=255.255.252.224
Total host per subnet=25=32
Sip: 101.5.15.192
Eip:101.5.15.223(192+32-1=223)
Network id:101.5.15.192/27
Remaining Block:
SIP: 101.5.15.224
Eip: 101.5.15.255
NetworkId: 101.5.15.192/27

You might also like