Home | Computers

Convert Binary Ip Addesses to Decimal

By: Nils Hyatt


Read More About Computers

With the ability to convert binary ip addresses to decimal form, or from a decimal ip address to binary is essential in passing your Cisco CCNA exam. Binary numbers is the language of computer systems, which consists of ones and zeros. In a binary code those symbolize a on change, while the zeros signify a off switch. The reason it is important to learn to convert binary to decimal is because you have to this skill with a purpose to go you CCNA exam, plus troubleshooting subnets in the actual world.To begin this off you must first understand that a ip address consists of 32 bits of information. A bit is one binary digit, either a one or a zero. Now every ip address is damaged up into a dotted quad or dotted decimal format, which each decimal represents eight bits of knowledge (8 bits occasions 4 decimal = 32 bits). For example for those who took the ip address 192.168.1.1:

* 192 = 8 bits
* 168 = 8 bits
* 1 = 8 bits
* 1 = 8 bits
* The binary address should be 11000000101100000000000100000001

Now you could be questioning how I used to be in a position to convert the decimal address to binary? I'll example how I was in a position to convert a decimal ip address to binary in simply moment. For now jsut take a look at the table below.

Decimal
128 64 32 16 8 4 2 1
Binary
bit bit bit bit bit bit bit bit

Convert Binary Ip Address to Decimal

So as to convert a ip handle from the decimal format to a binary format, let's first check out how one can convert the binary address to a decimal address. In the instance above the binary address is 11000000101100000000000100000001, to be able to convert this to decimal type first break the binary ip address into 4 sections, for example 11000000 10101000 00000001 00000001. Now all it's a must to do, this place a 1 within the table corresponding to the decimal value.

We are going to first start with the 11000000, so what you'd do is place a place a one beneath the 128 and the 64. You'd then place a zero beneath the 32, 16, 8, four, 2, and 1. Once you have placed the binary (bits) underneath the decimal numbers, simply add the decimal numbers where there are binary one's. So 128 + sixty four = 192. Remember at all times to begin from left to right.

Decimal
128 64 32 16 8 4 2 1
Binary
1 1 0 0 0 0 0 0

You'd then do the exact same factor to the 10101000. 128 + 32 + 8 = 168

Decimal
128 64 32 16 8 4 2 1
Binary
1 0 1 0 1 0 0 0

Convert Decimal Ip Address to Binary

So now let's take this a bit of bit additional now, let's me show you how you can convert a ip address into a binary address. In this example I will use the ip address of 176.18.25.20. To get the binary address of 176.18.25.20 break the ip address once more into four totally different sections. So utilizing what you discovered above, let's solve the problem.

We are going to first begin with the first part of the ip address, which is the 176. Utilizing the chart above, you would place a one underneath the 128 (176-128=48). Since we now have a price of 48, we obviously cannot take 64 from 48, so we would place a zero in that spot. We are going to then transfer onto the subsequent decimal quantity which is 32. Since we can subtract 32 from forty eight (48-32=sixteen) we will place a one underneath the 32. Now all we now have left over is 16 and since sixteen within the next spot within the chart (16-16=0) we will place a one underneath the 16. Since we at the moment are at zero, we will then place a zero beneath the 8, 4, 2, and 1. So all you must do now is write down the one's and zeros, which would be 10110000.

Decimal
128 64 32 16 8 4 2 1
Binary
1 0 1 1 0 0 0 0

Repeating the process above, we will now work with the second part of the ip address, which is 18. Since you can't get 128 from 18 (18-128), or 64 (18-sixty four) or 32 (18-32), we will place a zero underneath the 128, 64, and 32. Now we will get 16 from 18 (18-16=2), so we will place a one underneath the 16. Once more we can't get 8 from 2 (2-eight) or 4 from 2 (2-four), however we can get 2 from 2 (2-2=zero). I am guessing and hoping you're beginning to recognize the sample, so after all you'd place a one beneath the 2. And finally since we are now at 0, you will place a zero beneath the 1. The finally binary value for the decimal type of 18 is 00010010.

Decimal
128 64 32 16 8 4 2 1
Binary
0 0 0 1 0 0 1 0

You will then must repeat the process over to find out what the binary worth is for the 25 and the 20 for the ip address of 166.18.25.20. Ultimately the binary address of 176.18.25.20 is 10110000 00010010 00011001 00010100 or 10110000000100100001100100010100.

Article Source: http://depositarticles.com/

Change Binary Ip Address to Decimal

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Computers Articles Via RSS!

counter easy hit

Powered by Article Dashboard