How To Get Subnet Mask

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

How to get Subnet Mask (SM)?

Rules for Subnet Mask (SM) / Net-mask / IP-mask :


1. All of Network or Subnetwork bits must be 1’s.
2. All of Host bits must be 0’s.

Produce Decimal SM based on /SM and Binary SM.


Slashed SM Binary SM Decimal SM Comments
/SM
/24 11111111. 11111111. 11111111. 00000000 255.255.255.0
/25 11111111. 11111111. 11111111. 10000000 255.255.255.128 128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 0
/26 11111111. 11111111. 11111111. 11000000 255.255.255.192 128 64 32 16 8 4 2 1

128+64 = 192
/27 11111111. 11111111. 11111111. 11100000 255.255.255.224 128 64 32 16 8 4 2 1

128+64+32 = 224
/28 11111111. 11111111. 11111111. 11110000 255.255.255.240 128 64 32 16 8 4 2 1

128+64+32+16 = 240
/29 11111111. 11111111. 11111111. 11111000 255.255.255.248 128 64 32 16 8 4 2 1

/30 11111111. 11111111. 11111111. 11111100 255.255.255.252 128 64 32 16 8 4 2 1

/31 11111111. 11111111. 11111111. 11111110 255.255.255.254 /31 and /32 SM are not used in
production network.

/32 11111111. 11111111. 11111111. 255.255.255.255 /31 and /32 SM are not used in
11111111 production network.
How to get Subnet Mask (SM)?

Rules for Subnet Mask (SM) / Net-mask / IP-mask :


1. All of Network or Subnetwork bits must be 1’s.
2. All of Host bits must be 0’s.

Produce Binary SM and Decimal SM based on /SM.


Slashed SM Binary SM Decimal SM Comments
/SM
/8 11111111. 00000000. 00000000. 255.0.0.0
00000000
/9
/10
/11
/12
/13
/14
/15
/16

How to get Subnet Mask (SM)?


Rules for Subnet Mask (SM) / Net-mask / IP-mask :
1. All of Network or Subnetwork bits must be 1’s.
2. All of Host bits must be 0’s.

Produce Binary SM and Decimal SM based on /SM.


Slashed SM Binary SM Decimal SM Comments
/SM
/16 11111111. 11111111. 00000000.
00000000
/17
/18
/29
/20
/21
/22
/23
/24

You might also like