Upgrade to Pro — share decks privately, control downloads, hide ads and more …

IPアドレス(IPv4)の仕組み/overview-of-ipaddress

nishina
March 26, 2018

 IPアドレス(IPv4)の仕組み/overview-of-ipaddress

nishina

March 26, 2018
Tweet

More Decks by nishina

Other Decks in Programming

Transcript

  1. ϩʔΧϧωοτϫʔΫ಺ͰׂΓ౰ͯΔ͜ͱͷͰ͖ΔΞυϨεͷ͜ͱ ϓϥΠϕʔτΞυϨεͱͯ͠࢖͑ΔIPΞυϨε͸ܾ·͍ͬͯΔ 10.0.0.1 ʙ10.255.255.254 (10.0.0.0/8) 172.16.0.1 ʙ172.31.255.254 (172.16.0.0/16) 192.168.0.1 ʙ192.168.255.254

    (192.168.0.0/24) ϓϥΠϕʔτΞυϨε  IPΞυϨεΛϗετ͝ͱͰ͸ͳ͘ωοτϫʔΫʹׂΓ౰ͯΔ͜ͱͰ ωοτϫʔΫؒͷϗετͰIPΛڞ༗͠ɺ4294967296(2ͷ32৐)Ҏ্ ͷίϯϐϡʔλʔ͕ΠϯλʔωοτΛར༻͢Δ͜ͱ͕Ͱ͖Δ
  2. άϩʔόϧΞυϨεͱϓϥΠϕʔτΞυϨε  134.234.0.1 134.234.0.2 134.234.0.3 134.234.xxx.xxx 172.16.0.1 172.16.0.2 172.16.0.2 172.16.0.0

    172.16.0.4 172.16.0.5 172.16.0.6 άϩʔόϧΞυϨε ϓϥΠϕʔτΞυϨε ϓϥΠϕʔτΞυϨεʹΑΓωοτϫʔΫ୯ҐͰάϩʔόϧΞυϨεΛڞ༗
  3. ϓϥΠϕʔτΞυϨεͷܾ·Γ  134.234.0.1 134.234.0.2 134.234.0.3 134.234.xxx.xxx 172.16.0.1 172.16.0.2 172.16.0.3 172.16.0.0

    172.16.0.1 172.16.0.2 172.16.0.3 172.16.0.0 ωοτϫʔΫ͕ҟͳΕ͹ϓϥΠϕʔτΞυϨε͸ಉ͡Ͱ΋ྑ͍
  4. Ϋϥεͷৄࡉ  ΫϥεA ΫϥεB ΫϥεC ωοτϫʔΫن໛ େن໛޲͚ தن໛޲͚ খن໛޲͚ ωοτϫʔΫ෦

    ্ҐϏοτ  ্ҐϏοτ  ্ҐϏοτ  ωοτϫʔΫ਺  ͷ৐  ͷ৐  ͷ৐ ϗετ෦ ԼҐϏοτ ԼҐϏοτ ԼҐϏοτ ϗετ਺  ͷ৐  ͷ৐  ͷ৐ άϩόʔϧΞυϨε ʙ ʙ ʙ ϓϥΠϕʔτΞυϨε ʙ  ʙ  ʙ 
  5. αϒωοτͷ۩ମྫ  10101100 00010100 00000000 00000000 ϗετ෦ ωοτϫʔΫ෦ 172.20.0.0/16 16ܻ

    Ϋϥεͷ৔߹ 10101100 00010100 00000000 00000000 ϗετ෦ ωοτϫʔΫ෦ 172.20.0.0/24 24ܻ αϒωοτͷ৔߹ 10101100 00010100 111111111 00000000 ϗετ෦ ωοτϫʔΫ෦ 172.20.1.0/24 24ܻ
  6. IPΞυϨεͱαϒωοτϚεΫͷରԠ  10101100 00010100 00000000 00000000 ϗετ෦ ωοτϫʔΫ෦ 172.20.0.0/24 24ܻ

    IPΞυϨε 111111111 111111111 111111111 00000000 ϗετ෦ ωοτϫʔΫ෦ 255.255.255.0 24ܻ αϒωοτϚεΫ ɾωοτϫʔΫ෦Λ1, ϗετ෦Λ0Ͱදݱͨ͠2ਐ਺Λ10ਐ਺ʹ͢Δ ͱαϒωοτϚεΫͷ஋ͱͳΔ
 ɾαϒωοτϚεΫΛݟΕ͹ωοτϫʔΫͷن໛͕Θ͔Δɻ