26 апр 2025 · 19:41    
{"document": [{"text": [{"type": "string", "attributes": {}, "string": "В этом учебном году я не смог понять из объяснений учителя информатики новую тему. По ней планировалась контрольная, так что мне надо было срочно понять её. Нормальных инструкций в интернете я не нашел, собирал её с сайту по нитке. Информацию собрал, попрактиковался и получил пять"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Сейчас вот решил опубликовать эту информацию здесь"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Безвкусно, но поделать нечего", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия130_20250426193848.png", "filesize": 151736, "height": 1280, "pic_id": 982591, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F130_20250426193848.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T163911Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9165a156e0206359fea2fbb04fd0ac0a71a1884b7148894fea5ff50aa88ace8d", "width": 1280}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "ТЕМА: РАССЧЕТ IP-АДРЕСОВ (АЙПИ-АДРЕСОВ) (какой версии айпи - я не помню)"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Вам дан айпи-адрес. Допустим, он выглядит так:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 13. 45. 76/15"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Наш адрес", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия129_20250426181116.png", "filesize": 48806, "height": 720, "pic_id": 982545, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F129_20250426181116.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T151145Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0f6c41a5681aa51356e30f84ff91c639702bca259c4c01a34c9ba90df86b4194", "width": 1280}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Вам задано найти МАСКУ (NETMASK). Это самое легкое задание. Взглянем на число после слэша (этой / палочки). Наше число - 15."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Теперь вспомним, что каждое из четырех первых чисел в айпи-адресе не может быть больше 255. В двоичном представлении каждое из четырех этих чисел выглядит как сборище восьми цифр, каждое из которых может быть нулём или единицей. Умножим четыре на восемь. Получаем 32 - столько цифр в двоичном представлении имеет наша айпи-адрес. Число после слэша не может быть больше 32 именно из-за этого"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Давайте запишем 32 нуля, после каждой восьмёрки нулей будем ставить точку"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "00000000. 00000000. 00000000. 00000000"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия132_20250426182024.png", "filesize": 19166, "height": 200, "pic_id": 982552, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F132_20250426182024.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T152039Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f8ad3dd457462dab88c8522e78ed180376eeba9b0a5dc72a63d2641e457c70e0", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Теперь вспомним, что у нас после айпи-адреса через слэш записано число 15. Именно столько [15] единиц нам сейчас надо будет записать. Мы заменим ими первые 15 нулей в айпи-адресе. А все остальные нули оставим в покое"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "11111111. 11111110."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "00000000. 00000000"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Маска двоичная", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия132_20250426181942.png", "filesize": 20741, "height": 200, "pic_id": 982551, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F132_20250426181942.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T151952Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=de09ad83f4d535f05e4e6760740dd010e24a143e131ae450f5ea30f5c89c4c05", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Записали. Что дальше? Дальше преобразуем двоичный код в десятичный. 8 единиц - 255, 7 единиц - 254, где всё по нулям - 0"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Соответственно, наша маска приобретет такой вид:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "255. 254. 0. 0"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Маска десятичная", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426182218.png", "filesize": 59763, "height": 500, "pic_id": 982554, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426182218.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T152333Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=006ddc806236331b20442fc795cb964bcf8859d8942f30b99a9b19b26df8f055", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Вот мы и нашли маску. С её помощью найдем NETIP (network IP) и BCIP (broadcast IP). Начнём с NETIP"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Запишем наш айпи-адрес:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 13. 45. 76"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Преобразуем его двоичную форму"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "01101000. 00001101. 00101101. 01001100"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Двоичная форма IP-адреса", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия132_20250426183118.png", "filesize": 21639, "height": 200, "pic_id": 982555, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F132_20250426183118.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T153133Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fb699e177d9f5366a3e0622781fe4e564f388abc125181313b69d46b12a9c1e1", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Первые цифры переписываем отдельно без изменений. Всё остальное обращается в нуль. Количество цифр определяет наша маска. Какому числу равно количество единиц (число после слэша), столько первых цифр мы и переписываем без изменений, а остальные - в нуль. Если после слэша 17 - оставляем 17 цифр, если 15, как в нашем случае - оставляем 15. Давайте проделаем это действие с нашим адресом. "}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Вот", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия133_20250426184125.png", "filesize": 47827, "height": 300, "pic_id": 982558, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F133_20250426184125_DEWEhAJ.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T154239Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f5e6d0af23f358a21ac26f6354ce9ebfe9dcfa5fd149ed347c6fd5d00d72a9e3", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Оставляем лишь 15 цифр, а остальное обращаем в нуль. Получаем:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "01101000. 00001100. 00000000. 00000000"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия132_20250426184320.png", "filesize": 21299, "height": 200, "pic_id": 982561, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F132_20250426184320_7e0soJ0.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T154348Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=1de271f916cf06bc50f258c1417865793615cb3fc46e3835a8481109c5301b30", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Далее переводим в десятичную систему счисления. Получаем:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 12. 0. 0 - это наш NETIP."}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "NETIP", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426184444.png", "filesize": 49512, "height": 500, "pic_id": 982562, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426184444.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T154454Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ee974c03df01ee2e4eb1eb112636434d116d141ea184f9720d6f67624021f4c6", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "С его помощью можно найти HOSTmin. Для этого надо к NETIP к концу добавить единицу. 0+1 = 1. Получаем:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 12. 0. 1 - HOSTmin"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "HOSTmin", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426191205.png", "filesize": 50488, "height": 500, "pic_id": 982578, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426191205.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T161217Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=33e2f843f462931724dc3146790693325c408089409e2fd65205430d56c1e490", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Теперь давайте найдём broadcast IP. Для этого снова запишем наш двоичный адрес в двоичном варианте"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "01101000. 00001101. 00101101. 01001100"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Как и при поиске NETIP, мы первые 15 цифр оставим без изменений. Всё остальное обращаем в единицы"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Получаем:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "01101000. 00001101. 11111111. 11111111"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия132_20250426191311.png", "filesize": 20735, "height": 200, "pic_id": 982579, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F132_20250426191311.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T161321Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ad75a24ff73f16a7c55fe59e1682466d35736208e6377bf4891ad3d8367fb7ec", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Преобразуем полученный результат в десятичный вариант:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 13. 255. 255"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "BCIP", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426191422.png", "filesize": 65694, "height": 500, "pic_id": 982580, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426191422.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T161433Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=3d5db71e4e9c5f8674c7e2d9fa41b427825a11e9299469658d072982c276e074", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Чтобы найти HOSTmax, нам надо отнять единицу от полученного BCIP. 255 - 1 = 254. Получаем:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "104. 13. 255. 254"}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "HOSTmax", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426191452.png", "filesize": 66536, "height": 500, "pic_id": 982581, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426191452.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T161459Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=e513a9622d6e79ad7b17a8dc085f2784918b4c5d779b5f9ba0e3f849d764b379", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "И последнее: найдём количество рабочих адресов для хостов. Это вторая самая простая вещь. Для этого мы возводим двойку в степень n, а из результата отнимаем двойку. "}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"caption": "Количество рабочих адресов", "presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426191827.png", "filesize": 58014, "height": 500, "pic_id": 982583, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426191827.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T161834Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=169f745bb3f557f72f8533fc34a45126351270abcd4be0d1bee8490b17b2d0af", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "n = 32 - mask. mask у нас равно 15. 32 - 15 = 17. "}], "attributes": []}, {"text": [{"type": "attachment", "attributes": {"presentation": "gallery"}, "attachment": {"caption": "", "contentType": "image/png", "filename": "Без названия131_20250426192137.png", "filesize": 48848, "height": 500, "pic_id": 982584, "url": "http://storage.yandexcloud.net/pabliko.files/article_cloud_image/2025/04/26/%D0%91%D0%B5%D0%B7_%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F131_20250426192137.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=YCAJEsyjwo6hiq7G6SgeBEL-l%2F20250426%2Fru-central1%2Fs3%2Faws4_request&X-Amz-Date=20250426T162158Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=6391a41a926a5f92b33945b236ea7127e3b4c1fd05b79f22be13f42c323ee8cb", "width": 1500}}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "2 в 17-й степени - 131072. Отнимаем два - получаем 131070. "}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Почему отнимаем 2? Потому что первый и последний адреса - NETIP и BCIP - использовать нельзя. Остальные можно. Мы ищем только те, которые использовать можно, поэтому два и отнимаем"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Итого:"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "IP - 104. 13. 45. 76/15"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "NetMask - 255. 254. 0. 0"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "NETIP - 104. 12. 0. 0"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "BCIP - 104. 13. 255. 255"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "HOSTmin - 104. 12. 0. 1"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "HOSTmax - 104. 13. 255. 254"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Количество рабочих адресов - 131070"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "Всё. Надеюсь, я помог вам получить хорошую оценку. Если нужна еще какая-то теория по какому-то предмету - пишите в комментарии об этом. Может, помогу"}], "attributes": []}], "selectedRange": [373, 373]}
Комментарии 0