Net Mask

D' Sandy

A network mask helps you know which portion of the address identifies the network and which portion of the address identifies the node. Class A, B, and C networks have default masks, also known as natural masks, as shown here:

Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0

An IP address on a Class A network that has not been subnetted would have an address/mask pair similar to: 8.20.15.1 255.0.0.0. To see how the mask helps you identify the network and node parts of the address, convert the address and mask to binary numbers.


8.20.15.1 = 00001000.00010100.00001111.00000001
255.0.0.0 = 11111111.00000000.00000000.00000000

Once you have the address and the mask represented in binary, then identifying the network and host ID is easier. Any address bits which have corresponding mask bits set to 1 represent the network ID. Any address bits that have corresponding mask bits set to 0 represent the node ID.

8.20.15.1 = 00001000.00010100.00001111.00000001
255.0.0.0 = 11111111.00000000.00000000.00000000
-----------------------------------
net id | host id

netid = 00001000 = 8
hostid = 00010100.00001111.00000001 = 20.15.1

Related Posts



5 Responses to "Net Mask"
Anonymous said :
14 January 2009 at 00:13
It's an interesting post, to introduce how the network works.
But it will more informative if you put some pictures to draw the flow of the ip address.

Cheers, frizzy2008.
Anonymous said :
19 December 2009 at 17:48
if id 196.88.111.0/24 required subnet id 17
6 August 2021 at 21:30
NTRCA Job Circular 2021 will be released by the Authority. Non Government Teacher Registration & Certificate (NTRCA) official page: ntrca.gov.bd Otherwise our website can easily find all details found.

Post a Comment