How to Calculate a Subnet Address

How to Calculate a Subnet Address thumbnail
Figure 1

An IP address is a 32-bit binary numeric code written in the decimal-dot form that contains network and host parts. The host bits define a computer, while the network prefix determines a network. Subnetting organizes a large network by breaking it into several subnets. To define such subnets, bits are taken from the host portion of IP address, hence extending the network prefix (see Figure). Each network has a subnet mask that explicitly defines host and network bits as "0" and "1" respectively. As an example, you can calculate the subnet address of a computer that has IP address 192.35.128.93 and the subnet mask of this network is 255.255.255.224.

Instructions

  1. Calculating Subnet IP Address

    • 1

      Work through Section 2 to obtain the computer IP address in the binary form. In our example, IP 192.35.128.93 converts to 11000000.00100011.10000000.01011101.

    • 2

      Complete Section 2 to obtain the subnet mask in the binary form. In our example, the binary form of the subnet mask 255.255.255.224 is 11111111.11111111.11111111.11100000.

    • 3

      Line up the binary forms of the computer IP and the subnet mask. In the computer IP, substitute all bits with "0," if there are "0" in the corresponding positions in the subnet mask. In our example,the last five bits of the subnet mask are "0" hence the last five bits in the computer IP has to be "0" to calculate the subnet IP.
      11000000.00100011.10000000.01011101 ---> IP address
      11111111.11111111.11111111.11100000 ---> Subnet mask
      ----------------------------------------------------------
      11000000.00100011.10000000.01000000 ---> Subnet IP address

    • 4

      Work through Section 3 to get the subnet IP in the decimal-dot form using its binary form (Step 3). In our example, the subnet IP would be 192.35.128.64.

    Getting the Binary IP from the Decimal-dot IP

    • 5

      Browse to the IP Converter using the link in Resources.

    • 6

      Type the IP address in the text field "Enter IP address" and click "Submit."

    • 7

      Read the binary IP address in the string "Binary Conversion."

    Getting the Decimal-dot IP from the Binary IP

    • 8

      Browse to the IP Converter using the link in Resources.

    • 9

      Type the binary IP address in the text field "Enter Binary Address" and click "Submit."

    • 10

      Read an IP address in the decimal-dot form in the string "IPv4 Conversion."

Related Searches:

References

Resources

  • Photo Credit Author's personal collection

Comments

You May Also Like

  • How to Calculate an IP Subnet Mask

    An IP address is a 32-bit binary code (often written in the decimal-dot form) that contains network and host parts. The host...

  • What Is My IP Address' Subnet Mask?

    An IP address is composed of a network ID and a host ID. A subnet mask conceals the host, and while it...

  • How to Find My Subnet Mask Address

    In networking, a subnet mask is an individually defined portion of a network. In your home, all of the computers on your...

  • How to Calculate the Number of Subnets

    Calculating subnets is a method used to determine how many host machine IP addresses are available. Subnet masks allow administrators to segment...

  • How to Find the Subnet Address

    Subnet addresses are typically used on larger networks, consisting of multiple computers connecting to the Internet. Subnet addresses allow multiple computers to...

  • How to Calculate Subnet From an IP

    A subnet is sometimes also called a subnet mask. It is written in the same format as an IP address, which consists...

  • How to Calculate Subnet Bits

    An Internet protocol (IPv4) address consists of 32 bits, separated into four 8-bit binary words. When calculating subnet bits, you are attempting...

  • How to Calculate Subnetting

    Subnetting is a method of breaking apart the available IP addresses on your network into smaller pieces. Subnetting creates better network implementation...

Related Ads

Featured