IPV4 Subnetting
IPV4 Subnetting
Subnetting
It allows you to take one larger network and break it into a bunch of smaller networks.
Advantages of Subnetting:
1. Reduced network traffic – Routers create broadcast domains. The more broadcast domains you
create, the smaller the broadcast domains and the less network traffic on each network
segment.
3. Simplified management – It’s easier to identify and isolate network problem in a group of
smaller connected networks than within one gigantic network.
4. Facilitated spanning of large geographical distances - A single large network that spans long
distances can create problem in every area. Connecting multiple smaller networks makes the
system more efficient.
Subnet Mask
A mask used to determine what subnet an IP address belongs to. An IP address has two components,
the network address and the host address.
2 power of 10 = 1,024
2 power of 11 = 2,048
2 power of 12 = 4,096
2 power of 13 = 8,192
2 power of 14 = 16,384
Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0
/8 255.0.0.0 16,777,214
/9 255.128.0.0 8,388,352
/10 255.192.0.0 4,194,176
/11 255.224.0.0 2,097,088
/12 255.240.0.0 1,048,544
/13 255.248.0.0 524,272
/14 255.252.0.0 262,136
/15 255.254.0.0 131,068
/16 255.255.0.0 65,024
/17 255.255.128.0 32,512
/18 255.255.192.0 16,256
/19 255.255.224.0 8,128
/20 255.255.240.0 4,064
/21 255.255.248.0 2,032
/22 255.255.252.0 1,016
/23 255.255.254.0 508
/24 255.255.255.0 254
/25 255.255.255.128 124
/26 255.255.255.192 62
/27 255.255.255.224 30
/28 255.255.255.240 14
/29 255.255.255.248 6
/30 255.255.255.252 2
We can’t use a /31 or /32 because we have to have at least 2 host bits for assigning IP address to hosts.
IPv4 SubNetting
Number of subnets = 2x
11000000
22 = 4
Number of host = 2y - 2
26 – 2 = 62
An example would be 256 – 192 = 64. The block size of a 192 mask is always 64. Start counting at
zero in blocks of 64 until you reach the subnet mask value and these are your subnets.
The broadcast address is always the number right before the next subnet. The 0 subnet has a
broadcast address of 63 because the next subnet is 64. The 64 subnet has a broadcast address of
127 because the next subnet is 128, etc.
Valid hosts are the numbers between the subnets, omitting all the 0s and all 1s. For example, if 64
are 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.
What are the Broadcast address = for 0 subnet 127, for 128 subnet 255.
Subnet 0 128
First Host 1 129
Last Host 126 254
Broadcast 127 255
How many subnets? Since 192 are 2 bits on (11000000), the answer would be 22 = 4
How many hosts per subnet? We have 6 host bits off (11000000), so the equation would be 26 – 2 = 62
hosts.
What are the valid subnets? 256 – 192 = 64. Remember, we start at zero and count in our block size, so
our subnets are 0, 64, 128, and 192.
What’s the broadcast address for each subnet? The number right before the value of the next subnet is
all host bits turned on and equals the broadcast address. 63,127,191,255.
What are the valid hosts? These are the numbers between the subnet and broadcast address. The
easiest way to find the hosts is to write out the subnet address and the broadcast address. This way, the
valid hosts are obvious. The following table shows the 0, 64, 128, and 192 subnets, the valid host ranges
of each, and the broadcast address of each subnet:
Example 3: 192.168.10.0/27
How many subnets? 224 are 11100000, so our equation would be 23=8.
What are the valid subnets? 256 – 224 = 32. We just start at zero and count to the subnet mask value in
blocks (increments) of 32: 0, 32, 64, 96, 128, 160, 192, and 224.
IPv4 SubNetting
Example 4: 192.168.10.0/28
Subnet 0 16 240
First Host 1 17 241
Last Host 14 30 254
Broadcast 15 31 255
Example 5: 192.168.10.0/29
Subnet 0 8 248
First Host 1 9 249
Last Host 6 14 254
Broadcast 7 15 255
Example 6: 192.168.10.0/30
Subnet 0 4 252
First Host 1 5 253
Last Host 2 6 254
Broadcast 3 7 255
IPv4 SubNetting
Class B Subnetting
Example 1: 172.16.0.0/17
Remember that Subnetting is performed in the third octet, so the subnet numbers are really 0.0, and
128.0, as shown on the above table.
Example 2: 172.16.0.0/18
Example 3: 172.16.0.0/20
Example 4: 172.16.0.0/23
Example 5: 172.16.0.0/24
Example 7: 172.16.0.0/26
Class A Subnetting
Example 1: 10.0.0.0/16
Subnets = 28 = 256
Hosts = 216 – 2 = 65,534
Valid Subnets 256-255 = 1.0, 1, 2, 3, 4 etc.
Example 3: 10.0.0.0/26
Valid Subnets? In the second and third octet, the block size is 1, and in the fourth octet, the block size is
64.
VLSM
A way to take one network and create many networks using subnet masks of different lengths on
different types of network designs.
Summarization
Summarization, also called route aggregation, allows routing protocols to advertise many networks as
one address. The purpose of this is to reduce the size of routing tables on routers to save memory.