Unit Vi
Unit Vi
Unit Vi
A network.node.node.node 255.0.0.0
B network.network.node.node 255.255.0.0
C network.network.network.node 255.255.255.0
Subnetting
Determining the number of subnets, valid hosts,
and broadcast addresses of a subnet that the
mask provides, all you need to do is answer five
simple questions:
How many subnets? = number of subnets. x is
the number of masked bits, or the 1s. For
example, in 11000000, the number of ones gives
us 22 subnets. In this example, there are 4
subnets.
How many hosts per subnet? – 2 = number of hosts
per subnet. y is the number of unmasked bits, or the 0s.
For example, in 11000000, the number of zeros gives
us 26 – 2 hosts.
What are the valid subnets? 256 – subnet mask = block
size, or increment number. An example would be 256 –
192 = 64. The block size of a 192 mask is always 64.
What’s the broadcast address for each subnet? the
broadcast address is always the number right before
the next subnet. And remember, the broadcast of the
last subnet (the subnet with the same interesting
octets as the mask) is always 255 for Class C.
What are the valid hosts? Valid hosts are the
numbers between the subnets, omitting all the 0s
and all 1s.
For example, if 64 is the subnet number and 127 is the
broadcast address, then 65–126 is the valid host
range it’s always the numbers between the
subnet address and the broadcast address.
Practice Examples:
1. 255.255.255.192 /26
2. 255.255.255.224 /27
3. 198.168.11.0/26
4. 255.255.255.240 /28
Subnetting Class B Addresses
The process of subnetting a Class B network
is pretty much the same as it is for a Class C,
except that you just have more host bits.
Use the same subnet numbers for the third
octet with Class B that you used for the
fourth octet with Class C, but add a zero to
the network portion and a 255 to the
broadcast section in the fourth octet.
Example 255.255.192.0 /18
172.16.0.0 = Network address
255.255.192.0 = Subnet mask
Subnets? = 4.
Hosts? – 2 = 16,382 (6 bits in the third octet,
and 8 in the fourth).
Valid subnets? 256 – 192 = 64. 0, 64, 128, 192.
Remember the subnetting is performed in the
third octet, so the subnet numbers are really 0.0,
64.0, 128.0, and 192.0, as shown in the next
table.
Subnet 0.0 64.0 128.0 192.0
First host 0.1 64.1 128.1 192.1
Last host 63.254 127. 254 191.254 255.254
Broadcast 63.255 127.255 191.255 255.255
Example 2: 255.255.240.0 (/20)
172.16.0.0 = Network address
255.255.240.0 = Subnet mask
Subnets = 16.
Hosts – 2 = 4094.
Valid subnets? 256 – 240 = 0, 16, 32, 48, etc., up
to 240.
The following table shows the first four subnets,
valid hosts, and broadcast addresses in a Class B
255.255.240.0 mask:
Subnet 0.0 16.0 32.0 48.0
First host 0.1 16.1 32.1 48.1
Last host 15.254 31.254 47.254 63.254
Broadcast 15.255 31.255 47.255 63.255
Practice Example
a) 255.255.248.0 (/21) 172.16.0.0 = Network
address
b) 255.255.252.0 (/22) 172.16.0.0 = Network
address