Переведення IP-адрес в 2 та 10 систему числення
21 приклад адрес IP з 10 -> 2 систему числення:
Клас А:
·
95.156.148.15
95.156.148.15
= 01011111.10011100.10010100.00001111
·
82.231.74.23
82.231.74.23 = 01010010.11100111.01001010.00010111
·
56.186.57.24
56.186.57.24 = 00111000.10111010.00111001.00011000
·
121.128.162.14
121.128.162.14 = 01111001.10000000.10100010.00001110
·
28.48.87.111
28.48.87.111 = 00011100.00110000.01010111.01101111
·
69.66.99.0
69.66.99.0 = 01000101.01000010.01100011.00000000
·
14.88.19.27
14.88.19.27 = 00001110.01011000.00010011.00011011
Клас B:
·
128.36.222.14
128.36.22.14
= 10000000.00100100.00010110.00001110
·
159.157.248.66
159.157.248.66
= 10011111.10011101.11111000.01000010
·
182.168.75.57
182.168.75.57
= 10110110.10101000.01001011.00111001
·
144.199.47.73
144.199.47.73
= 10010000.11000111.00101111.01001001
·
137.92.48.69
137.92.48.69
= 10001001.01011100.00110000.01000101
·
170.148.252.101
170.148.252.101
=10101010.10010100.111111000.01100101
·
169.157.49.37
169.157.49.37
= 10101001.10011101.00110001.00100101
Клас C:
·
192.168.11.72
192.168.11.72
= 11000000.10101000.00001011.01001000
·
201.54.73.143
201.54.73.143
= 11001001.00110110.01001001.10001111
·
198.173.18.4
198.173.18.4
= 11000110.10101101.00010010.00000100
·
217.246.34.211
217.246.34.211
= 11011001.11110110.00100010.11010011
·
220.80.170.12
220.80.170.12
=11011100.01010000.10101010.00001100
·
214.31.59.26
214.31.59.26
=11010110.00011111.00111011.00011010
·
222.255.234.75
222.255.234.75
=11011110.11111111.11101010.01001011
21 приклад адрес IP з 2 -> 10 систему числення:
Клас А:
·
01110110.11100101.00100100.01000011
64+32+16+4+2=118
128+64+32+4+1=229
32+4 =36
64+2+1=67
01110110.11100101.00100100.01000011 =
118.229.36.67
·
00011001.11100010.11101001.01111001
16+8+1=25
128+64+32+2=226
128+64+32+8+1=233
64+32+16+8+1=121
00011001.11100010.11101001.01111001
= 25.226.233.121
·
00111010.00011011.11100101.10111000
32+16+8+2
= 58
16+8+2+1
= 27
128+64+32+4+1
= 229
128+32+16+8
= 184
00111010.00011011.11100101.10111000
= 58.27.229.184
·
00001101.11101100.00010110.01110101
8+4+1
= 13
128+64+32+8+4
= 236
16+4+2
= 22
64+32+16+4+1
= 117
00001101.11101100.00010110.01110101 = 13.236.22.117
·
01011110.11011000.10101100.00101110
64
+ 16 + 8 + 4 + 2 = 94
128
+ 64 + 16 + 8 =216
128
+ 32 + 8 + 4 = 172
32
+ 8 + 4 + 2 =46
01011110.11011000.10101100.00101110
= 94.216.172.46
·
01000011.11010000.11110110.00100110
64
+ 2 + 1 = 67
128
+ 64 + 16 = 208
128
+ 64 + 32 + 16 + 4 + 2 = 246
32
+ 4 + 2 = 38
01000011.11010000.11110110.00100110
= 67.208.246.38
·
00000010.10010110.00011010.11101101
2
128
+ 16 + 4 + 2 = 150
16
+ 8 + 2 = 26
128
+ 64 + 32 + 8 + 4 + 1 = 237
00000010.10010110.00011010.11101101
= 2.150.26.237
Клас B:
·
10111010.11101100.11100010.00010110
128
+ 32 + 16 + 8 + 2 = 186
128
+ 64 + 32 + 8 + 4 = 236
128
+ 64 + 32 + 2 = 226
16
+ 4 + 2 = 22
10111010.11101100.11100010.00010110
= 186.236.226.22
·
10101101.01101010.00101100.00111011
128
+ 32 + 8 + 4 + 1 = 173
64
+ 32 + 8 + 2 = 106
32
+ 8 + 4 = 44
32
+ 16 + 8 + 2 + 1 = 59
10101101.01101010.00101100.00111011
= 173.106.44.59
·
10011000.10011100.01101010.10110110
128
+ 16 + 8 = 152
128
+ 16 + 8 + 4 = 156
64
+ 32 + 8 + 2 = 106
128
+ 32 + 16 + 4 + 2 = 182
10011000.10011100.01101010.10110110
= 152.156.106.182
·
10001101.11100110.11011110.00011001
128
+ 8 + 4 + 1 = 141
128
+ 64 + 32 + 4 + 2 = 230
128
+ 64 + 16 + 8 + 4 + 2 = 222
16
+ 8 + 1 = 25
10001101.11100110.11011110.00011001
= 141.230.222.25
·
10100011.11001111.11000011.10001110
128
+ 32 + 2 + 1 = 163
128
+ 64 + 8 + 4 + 2 + 1 = 207
128
+ 64 + 2 + 1 = 195
128
+ 8 + 4 + 2 = 142
10100011.11001111.11000011.10001110
= 163.207.195.142
·
10111111.00101110.00111011.00101101
128
+ 32 + 16 + 8 + 4 + 2 + 1 = 191
32
+ 8 + 4 + 2 = 46
32
+ 16 + 8 + 2 + 1 = 59
32
+ 8 + 4 + 1 = 45
10111111.00101110.00111011.00101101
= 191.46.59.45
·
10011010.10000100.10001101.01010110
128
+ 16 + 8 + 2 = 154
128
+ 4 + = 132
128
+ 8 + 4 + 1 = 141
64
+ 16 + 4 + 2 = 86
10011010.10000100.10001101.01010110
= 154.132.141.86
Клас C:
·
11010011.01011100.11101110.10000101
128
+ 64 + 16 + 2 + 1 = 211
64
+ 16 + 8 + 4 = 92
128
+ 64 + 32 + 8 + 4 + 2 = 238
128
+ 4 + 1 = 133
11010011.01011100.11101110.10000101
= 211.92.238.133
·
11001011.11011101.01010111.11101101
128
+ 64 + 8 + 2 + 1 = 203
128
+ 64 + 16 + 8 + 4 + 1 = 221
64
+ 16 + 4 + 2 + 1 = 87
128
+ 64 + 32 + 8 + 4 + 1 = 237
11001011.11011101.01010111.11101101
= 203.221.87.237
·
11011111.11101001.00010110.00101110
128
+ 64 +16 + 8 + 4 + 2 + 1 = 223
128
+ 64 + 32 + 8 + 1 = 233
16
+ 4 + 2 = 22
32
+ 8 + 4 + 2 = 46
11011111.11101001.00010110.00101110
=223.233.22.46
·
11001010.00111101.01110110.11011010
128
+ 64 + 8 + 2 = 202
32
+ 16 + 8 + 4 + 1 = 61
64
+ 32 + 16 + 4 + 2 = 118
128
+ 64 + 16 + 8 + 2 = 218
11001010.00111101.01110110.11011010
= 202.61.118.218
·
11011011.00111011.01110111.11000000
128
+ 64 + 16 + 8 + 2 + 1 = 219
32
+ 16 + 8 + 2 + 1 = 59
64
+ 32 + 16 + 4 + 2 + 1 = 119
128
+ 64 = 192
11011011.00111011.01110111.11000000
= 219.59.119.192
·
11000001.00111100.11110000.00011100
128
+ 64 + 1 = 193
32
+ 16 + 8 + 4 = 60
128
+ 64 + 32 + 16 = 240
16
+ 8 + 4 = 28
11000001.00111100.11110000.00011100
= 193.60.240.28
Коментарі
Дописати коментар