Computer Science, asked by muhammadrestu199, 8 months ago

1. Change the following IPv4 addresses from dotted-decimal notation to binary notation
a. 111.56.45.78
b. 221.34.7.82

Answers

Answered by getprograms
7

Answer:

a. 111.56.45.78 :

-> 001101111 000111000 000101101 001001110

b. 221.34.7.82 :

-> 011011101 000100010 000000111 001010010

Answered by anjalin
3

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.

        (111)_{10} -- > (01101111)_2

        (56)_{10} -- > (00111000)_2

        (45)_{10} -- > (00101101)_2

        (78)_{10} -- > (01001110)_2

        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.

        (221)_{10} -- > (11011101)_2

        (34)_{10} -- > (00100010)_2

        (7)_{10} -- > (00000111)_2

        (82)_{10} -- > (01010010)_2

        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.

Similar questions