CSC263 Computer Networks

Computer NetworksTU Board 2082

Write the subnet ID, broadcast address and address range of each subnet if you divide a class C network 193.168.2.0/24 into 8 different subnets. What is the new subnet mask?

5

Answer

The network is 193.168.2.0/24 (a class C network with 256 addresses). To make 8 subnets we borrow 3 bits from the host part, because 2³ = 8.

  • New prefix: /24 + 3 = /27
  • New subnet mask: 255.255.255.224 (11111111.11111111.11111111.11100000)
  • Host bits left: 5, so each subnet has 2⁵ = 32 addresses, of which 30 are usable hosts.
  • Block size: 256 − 224 = 32
Subnet Subnet ID Usable host range Broadcast address
1 193.168.2.0 193.168.2.1 – 193.168.2.30 193.168.2.31
2 193.168.2.32 193.168.2.33 – 193.168.2.62 193.168.2.63
3 193.168.2.64 193.168.2.65 – 193.168.2.94 193.168.2.95
4 193.168.2.96 193.168.2.97 – 193.168.2.126 193.168.2.127
5 193.168.2.128 193.168.2.129 – 193.168.2.158 193.168.2.159
6 193.168.2.160 193.168.2.161 – 193.168.2.190 193.168.2.191
7 193.168.2.192 193.168.2.193 – 193.168.2.222 193.168.2.223
8 193.168.2.224 193.168.2.225 – 193.168.2.254 193.168.2.255

The subnet ID (all host bits 0) and the broadcast address (all host bits 1) of each subnet cannot be given to a host.

Discussion

Loading…

More Computer Networks questions

All Computer Networks old questions