# How do you convert an IP address to a decimal?

## How do you convert an IP address to a decimal?

The computer views the IP addresses as binary code, so to convert the code to decimal format, a mathematical equation must be used. Convert the binary to decimal by placing a value of 0 on all the 0 bits in the number. 1s get a value of 2 to the power of the bit’s location.

## What is binary to decimal IP address?

In binary notation, all four octets are written in binary format. In decimal notation, all four octets are written in decimal format. A decimal equivalent value of the bits is used in each octet….Converting decimal number in binary number.

Operation In Decimal In Binary
Skip Skip position value Set bit to 0

## How do you convert binary notation to dotted-decimal notation?

In the dotted-decimal notation, periods are used to divide the four octets. In the binary notation, spaces are used to separate the four octets. If you want to convert a binary number to a decimal number, add the value of each bit position set to 1.

## How do you write a subnet mask in binary?

For example, to write the IPv4 address 192.168. 42.23 with a subnet mask of 255.255. 255.0 in slash notation: Convert the subnet mask to binary….IPv4.

255.255.255.248 /29
255.255.255.252 /30
255.255.255.254 /31
255.255.255.255 /32

## How do I find the subnet mask of an IP address?

1. In the Windows search fields, type cmd, to open command prompt.
2. Press Enter.
3. Type ipconfig/all press Enter.