GATE Previous Year Questions
Classless Addressing in IP Addressing
The Network address identifies a network on the internet. Using this, we can find a range of addresses in the network and total possible number of hosts in the network.
Mask is a 32-bit binary number that gives the network address in the address block when AND operation is bitwise applied on the mask and any IP address of the block.
The default masks in different classes are :
- Class A – 255.0.0.0
- Class B – 255.255.0.0
- Class C – 255.255.255.0
Question: Given IP address 132.6.17.85 and default class B mask, find the beginning address (network address).
Solution: The default mask is 255.255.0.0, which means that only the first 2 bytes are preserved and the other 2 bytes are set to 0. Therefore, the network address is 132.6.0.0.