Subnetting
Subnetting
Subnet Example
Network address 172.19.0.0 with /16 network mask
Using Subnets: subnet mask 255.255.255.0
or /24
Network Network Subnet Host
• You can only subnet the host portion, you do not have control of the
network portion.
• Subnetting does not give you more hosts, it only allows you to divide your
larger network into smaller networks.
• When subnetting, you will actually lose host adresses:
– For each subnet you lose the address of that subnet
– For each subnet you lose the broadcast address of that subnet
– You “may” lose the first and last subnets
Step 1:
Translate Host IP Address and Subnet Mask into binary notation
Step 2: Find the Subnet Address
138. 101. 114. 250
IP Address 10001010 01100101 01110010 11111010
Mask 11111111 11111111 11111111 11000000
Network 10001010 01100101 01110010 11000000
138 101 114 192
Step 2:
Determine the Network (or Subnet) where this Host address lives:
1. Draw a line under the mask
2. Perform a bit-wise AND operation on the IP Address and the Subnet
Mask
Note: 1 AND 1 results in a 1, 0 AND anything results in a 0
3. Express the result in Dotted Decimal Notation
4. The result is the Subnet Address of this Subnet or “Wire” which is
138.101.114.192
Step 4: First Host / Last Host
G.D. S.D.
Host Portion
• Subnet Address: all 0’s
• First Host: all 0’s and a 1
• Last Host: all 1’s and a 0
• Broadcast: all 1’s
Step 5: Total Number of Subnets
• TotalFirst
number
Host of 10001010
subnets 01100101 01110010 11 000001
138 101 114 193
– Number of subnet bits 10
Last Host 10001010 01100101 01110010 11 111110
– 210 = 1,024 138 101 114 254
– 1,024 total subnets
Broadcast 10001010 01100101 01110010 11 111111
138 101 114 255
Step 6: Total Number of Hosts per Subnet
G.D. S.D.
• TotalFirst
number
Host of 10001010
hosts per subnet
01100101 01110010 11 000001
138 101 114 193
– Number of host bits 6
Last Host 10001010 01100101 01110010 11 111110
– 26 = 64 138 101 114 254
– 64Broadcast
host per subnets
10001010 01100101 01110010 11 111111
• Subtract one138 101
for the subnet address114 255