subnetting formula – Expert Network Consultant https://www.expertnetworkconsultant.com Networking | Cloud | DevOps | IaC Fri, 10 Mar 2023 13:39:27 +0000 en-GB hourly 1 https://wordpress.org/?v=6.3.2 Subnetting Cheat Sheet: The Ultimate Guide https://www.expertnetworkconsultant.com/expert-approach-in-successfully-networking-devices/subnetting-cheat-sheet-the-ultimate-guide/ Sun, 19 Mar 2023 05:03:41 +0000 http://www.expertnetworkconsultant.com/?p=5901 Continue readingSubnetting Cheat Sheet: The Ultimate Guide]]> Subnetting is a process of dividing a larger network into smaller networks or subnets. It is an essential concept in computer networking, particularly for network administrators and engineers. Subnetting allows efficient use of IP addresses, better network performance, and improved security. However, subnetting can be a bit overwhelming, especially for beginners. That’s why we’ve created this comprehensive subnetting cheat sheet to help you understand the basics of subnetting and become a subnetting pro.

What is Subnetting?

Subnetting is the process of dividing a larger network into smaller networks or subnets. It is accomplished by borrowing bits from the host portion of an IP address and using them to create subnets. The subnet mask is used to determine the network and host portions of an IP address. The subnet mask is a 32-bit number that consists of a series of ones followed by a series of zeros. The ones represent the network portion of the address, and the zeros represent the host portion of the address.

Why Subnetting is Important?

Subnetting is essential for the following reasons:

Efficient use of IP addresses: Subnetting allows you to use IP addresses more efficiently by dividing a larger network into smaller networks. This way, you can allocate IP addresses only to devices that need them, and avoid wasting IP addresses.

Better network performance: Subnetting can improve network performance by reducing network congestion and improving network efficiency.

Improved security: Subnetting can enhance network security by isolating different segments of a network and restricting access to specific devices.

Subnetting Cheat Sheet

The following subnetting cheat sheet will help you understand the basics of subnetting:

Subnet Mask: A subnet mask is a 32-bit number that determines the network and host portions of an IP address.

Network Address: The network address is the first address in a subnet and is used to identify the network.

Broadcast Address: The broadcast address is the last address in a subnet and is used to send a message to all devices on the network.

IP Address Range: The IP address range is the set of IP addresses available for use in a subnet.

CIDR Notation: CIDR notation is a shorthand notation for representing subnet masks. It is written as a slash (/) followed by the number of bits in the subnet mask.

Subnetting Formula: The subnetting formula is used to calculate the number of subnets and hosts per subnet. The formula is 2^n, where n is the number of bits borrowed for the subnet.

Subnetting Example: To subnet a network, follow these steps:

a. Choose the number of subnets required.
b. Choose the number of host bits required per subnet.
c. Calculate the subnet mask.
d. Calculate the network address and broadcast address.
e. Determine the IP address range.

Subnet Mask	CIDR Notation	Binary Value	Decimal Value
255.255.255.0	/24	11111111.11111111.11111111.00000000	255.255.255.0
255.255.255.128	/25	11111111.11111111.11111111.10000000	255.255.255.128
255.255.255.192	/26	11111111.11111111.11111111.11000000	255.255.255.192
255.255.255.224	/27	11111111.11111111.11111111.11100000	255.255.255.224
255.255.255.240	/28	11111111.11111111.11111111.11110000	255.255.255.240
255.255.255.248	/29	11111111.11111111.11111111.11111000	255.255.255.248
255.255.255.252	/30	11111111.11111111.11111111.11111100	255.255.255.252

Conclusion:

Subnetting is an essential concept in computer networking. It allows you to divide a larger network into smaller networks, use IP addresses more efficiently, improve network performance, and enhance network security. The subnetting cheat sheet provided in this article will help you understand the basics of subnetting and become a subnetting pro. Remember to use the subnetting formula and follow the subnetting example to subnet a network successfully.

]]>
How to Calculate Subnet Mask from IP Address Step by Step https://www.expertnetworkconsultant.com/expert-approach-in-successfully-networking-devices/how-to-calculate-subnet-mask-from-ip-address-step-by-step/ Wed, 06 May 2020 20:46:30 +0000 http://www.expertnetworkconsultant.com/?p=3742 Continue readingHow to Calculate Subnet Mask from IP Address Step by Step]]> In as much as there are a great number of articles on the subject of subnetting, I have also taken a bold step in creating a step by step guide “How to Calculate Subnet Mask from IP Address Step by Step” to bring you the understanding I have gained in the real world where subnetting is concerned.





Have you been faced with a task laced with many prefixes you find intimidating? Well, you are in the right place at the right time to improve your understanding of subnetting once and for all.

You can read more on the subject broadly from Cisco’s website here.

Step by step guide to IP Subnetting Video

Below is a simple 6 step by step method I use to perform subnetting calculations.

Let us look at this question below;

1: You have been given an IP Address 10.20.4.13/29 and been asked to find out the following pieces;

  1. Subnet Address
  2. First Valid Host Address
  3. Last Valid Host Address
  4. Broadcast Address
  5. Subnet Mask

How to Calculate Subnet Mask from IP Address Step by Step

Step 1: Find Subnet Number
Subtract Prefix Number from /32
32-29=3

Calculate Subnet Mask
8 Bits – 3 Bits = 5 Bits(Network Bits Turned On)

You might be asking why 8 Bits, 8 Bits are required for each octet.

128 64 32 16 8 4 2 1
1 1 1 1 1 0 0 0
128 + 64 + 32 + 16 + 8 = 248

Subnet Mask = 255.255.255.248

Step 2: Find Subnet Size
Raise 2 to the power of deduction (8-3 =5 Bits). Let’s call the bits n!
2**n = Subnet Size
2**5 = Subnet Sizes for each subnet.
2*2*2 = 8

Note: 8 is the block size for the subnet so for example, the increments will now be 0 8 16 32 40 and so on!

Step 3: Find Broadcast Address
Subnet Size – 1
(2**n) – 1 = Broadcast Address
(2**3) – 1 = (8-1) = 7

Step 4: Locate IP Address Subnet
Identify Subnet Block for IP Address:
Where in each increment is the address 10.20.4.13/29 located 0 8 16 32 40?

13 falls between 8 and 16 and therefore the address is in the valid host range of the subnet 10.20.4.8/29

Step 5: Calculate Valid Hosts | How to calculate number of hosts in the subnet
2**n – 2 = Valid Host Range
2**3 – 2 = (8-2) = 6

Answer for question now is as follows;

Subnet Address: 10.20.4.8/29
Min Host Address: 10.20.4.9/29
Max Host Address: 10.20.4.14/29
Broadcast Address: 10.20.4.15/29

There you have it. A simple 6 step by step guide to subnetting effectively.

Variable Length Subnets Mask Table

Prefix size Network mask Usable hosts per subnet
/1 128.0.0.0 2,147,483,646
/2 192.0.0.0 1,073,741,822
/3 224.0.0.0 536,870,910
/4 240.0.0.0 268,435,454
/5 248.0.0.0 134,217,726
/6 252.0.0.0 67,108,862
/7 254.0.0.0 33,554,430
Class A
/8 255.0.0.0 16,777,214
/9 255.128.0.0 8,388,606
/10 255.192.0.0 4,194,302
/11 255.224.0.0 2,097,150
/12 255.240.0.0 1,048,574
/13 255.248.0.0 524,286
/14 255.252.0.0 262,142
/15 255.254.0.0 131,070
Class B
/16 255.255.0.0 65,534
/17 255.255.128.0 32,766
/18 255.255.192.0 16,382
/19 255.255.224.0 8,190
/20 255.255.240.0 4,094
/21 255.255.248.0 2,046
/22 255.255.252.0 1,022
/23 255.255.254.0 510
Class C
/24 255.255.255.0 254
/25 255.255.255.128 126
/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
/31 255.255.255.254 0
/32 255.255.255.255 0
    Related Posts:

How to connect GNS3 to a Physical Network Step by Step

]]>