1. Change the following IPv4 addresses from dotted-decimal notation to binary notation
a. 111.56.45.78
b. 221.34.7.82
Answers
Answer:
a. 111.56.45.78 :
-> 001101111 000111000 000101101 001001110
b. 221.34.7.82 :
-> 011011101 000100010 000000111 001010010
The binary form of the given IP addresses 111.56.45.78 and 221.34.7.82 are 01101111 00111000 00101101 01001110 and 11011101 00100010 00000111 01010010 respectively.
Explanation:
- IPv4 has a 32-bit address which is used to identify the devices on the network.
- Here we are given two IPv4 addresses in decimal dotted form which are needed to be converted into binary notation.
- Address 1: 111.56.45.78
Step 1 : convert all 4 decimal numbers into 8 bit binary.
Step 2 : merge/concatenate all binary forms.
111.56.45.78 --> 01101111 00111000 00101101 01001110
- Address 2: 221.34.7.82
Step 1 : convert all 4 decimal numbers into 8 bit binary.
Step 2 : merge/concatenate all binary forms.
221.34.7.82 --> 11011101 00100010 00000111 01010010
Thus, the binary form of the given IP addresses 111.56.45.78 and 221.34.7.82 are 01101111 00111000 00101101 01001110 and 11011101 00100010 00000111 01010010 respectively.