In the previous posts, we looked at what an IPv4 address is and how it is used. Subnetting builds on that foundation and plays a major role in IP addressing, but many learners find it challenging at first.I was in the same boat at first. Now, it is a breeze. What has helped me, and how can you fly through subnetting? In this post, we will specifically focus on how classless addressing and variable length subnet masking is implemented within networks.
If you would like to learn more about subnetting or need a refresher, see my other posts Subnets: Key to Network Organization and Subnetting Tips.
Classful vs Classless
How do we meet the needs of each department? Classless addressing uses CIDR notation to do this. When you see a slash followed by a number, such as /24, it shows the number of network bits. Think of CIDR as the clothing label that tells you which part of the address is fixed. The network bits are like the size printed on the tag, which sets the main fit. The remaining bits, or host bits, give you room for individual device addresses.
- IPv4 addresses have 32 bits.
- CIDR notation (/24, /30, /22, /16, /10) tells you the number of bits within your network - giving you the network ID.
- Host bits: 32 - CIDR
- Total number of IP addresses: 2host bits
- Subtract 2 from the total number of IP addresses to find the number of available hosts.
- Subnet masks are longhand versions of CIDR values.
Variable Length Subnet Mask
- IT: 160 devices
- Research & Development (R & D): 90 devices
- HR: 50 devices
- Legal: 30 devices
Step 1: Understand the Block (/22)
- Last full boundary: /16
- /16 means the first two octets of the subnet masks are filled: 255.255.x.x
- IP Block: 10.1.0.0
- Subnet Mask: 255.255.x.x
- Network ID: 10.1.0.0
- Host bits: 32 - 22 = 10
Once you have the number of host bits, use that as the exponent.
- Total addresses = 2^10 = 1024
- Subtract 2 to find the number of hosts, which is 1022.
Recap:
/22 Overview
IP Address Block
10.1.0.0/22
Subnet Mask
255.255.252.0
Network ID
10.1.0.0
Step 2: Create your subnets
IT (160 devices)
CIDR:Number of IPs:
Usable Hosts:
Subnet:
First Host:
Last Host:
Broadcast:
Research & Development (90 devices)
CIDR:Number of IPs:
Usable Hosts:
Subnet:
First Host:
Last Host:
Broadcast:
HR (50 devices)
CIDR:Number of IPs:
Usable Hosts:
Subnet:
First Host:
Last Host:
Broadcast:
Legal (30 devices)
CIDR:Number of IPs:
Usable Hosts:
Subnet:
First Host:
Last Host:
Broadcast:
- Do you have enough of an address space? Subnets are only as good as its address space. If the block of addresses is not sufficient, then it limits how many devices can get on the network.
- Do you have too much space within a network? Extra space can be helpful because it gives the network room to grow and supports DHCP. It can also be risky because unused space can become wasteful or allow unauthorized devices. It begins with knowing how many devices your organization will need. If possible, break up that subnet even more.
- Do you have too little space? The Legal department has just enough IPs, but it will not allow for growth. Consider your network plan if this is intentional or may need redesigning for future growth.
- In this scenario, the four departments do not use the entire /22 block. Realistically, companies are not limited to four departments. You can even create subnets within subnets. For example, the IT department might set aside a smaller block for VoIP phones. It all depends on your company needs.
Summary
We are nearing the end of IPv4 and stepping closer to IPv6. How do you feel about subnetting now? If you still use pencil and paper, that is normal. Managing subnets at scale always requires documentation. As time goes on, you will find tiny tricks that can save you time. One such trick is a subnet calculator. In the next post, you will find an interactive calculator to see the breakdown that goes into subnetting.
As the IPv4 section draws to an end, we will look at special types of IPv4 addresses and what can be done with the limited space it has.

Comments
Post a Comment