eHow launches Android app: Get the best of eHow on the go.

How To

How to Calculate a Subnet Address

Contributor
By eHow Contributing Writer
(0 Ratings)
Figure 1
Figure 1
Author's personal collection

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.

Difficulty: Moderately Easy
Instructions

    Calculating Subnet IP Address

  1. Step 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. Step 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. Step 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. Step 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.

  5. Getting the Binary IP from the Decimal-dot IP

  6. Step 1

    Browse to the IP Converter using the link in Resources.

  7. Step 2

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

  8. Step 3

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

  9. Getting the Decimal-dot IP from the Binary IP

  10. Step 1

    Browse to the IP Converter using the link in Resources.

  11. Step 2

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

  12. Step 3

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

Resources
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics