Courses / HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates

7.2 IP Addressing and Subnetting

Area 7 – Computer Networks & Cloud Computing (10%) · 50 min read · 48 MCQs to check yourself

IPv4

32 bits written as four octets: 192.168.10.25. MAC address = 48-bit hardware address (e.g. 00:1A:2B:3C:4D:5E); ARP maps IP → MAC.

Class First octet Default mask
A 1–126 /8 (255.0.0.0)
B 128–191 /16 (255.255.0.0)
C 192–223 /24 (255.255.255.0)
D 224–239 Multicast
127.x.x.x = loopback. Private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 – reach the Internet through NAT.

Subnetting in 4 steps (CIDR /n)

  1. Host bits = 32 − n.
  2. Usable hosts = 2^(host bits) − 2 (network and broadcast addresses are reserved).
  3. Block size = 256 − (mask value in the interesting octet).
  4. Network address = address rounded down to a multiple of the block; broadcast = next block − 1.
CIDR Mask Block (last octet) Usable hosts
/24 255.255.255.0 256 254
/25 255.255.255.128 128 126
/26 255.255.255.192 64 62
/27 255.255.255.224 32 30
/28 255.255.255.240 16 14
/29 255.255.255.248 8 6
/30 255.255.255.252 4 2
Example: 192.168.1.77/26 → block 64 → network 192.168.1.64, broadcast 192.168.1.127, hosts .65–.126.

IPv6

128 bits, hexadecimal, e.g. 2001:db8::1 (:: replaces consecutive zero groups once). Huge address space, no NAT needed, built-in autoconfiguration. DHCP gives devices IP address, mask, gateway and DNS automatically.

Subnet mask explained (PowerCert Animated Videos)

This lesson ends with a quiz of 48 MCQs. Open the lesson on PrepOasis to take it and save your progress.

Previous: 7.1 Network Basics, OSI and TCP/IP Models · Next: 7.3 Transport, Routing and Application Protocols

All lessons in HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates