インターネット層
~ IP(v4)アドレス ~
情報ネットワーク演習教材
@twikaz
階層とプロトコル
参考)TCP/IPの基礎(マイコミ)
イーサネット
ネットワーク
インターフェース層
OSPF, IP, ICPM, ARPインターネット層
TCP, UDPトランスポート層
FTP, HTTP, DNS
アドレスクラス(IPv4)
●クラスA
●クラスB
●クラスC
●クラスD(マルチキャストアドレス)
●クラスE(実験用、将来使用)
INTERNET PROTOCOL
http://tools.ietf.org/html/rfc791
アドレスクラス(rfc)
High Order Bits Format Class
--------------- ------------------------------- -----
0 7 bits of net, 24 bits of host a
10 14 bits of net, 16 bits of host b
110 21 bits of net, 8 bits of host c
     111 escape to extended addressing mode
INTERNET PROTOCOL
http://tools.ietf.org/html/rfc791
特別な用途のアドレス
http://tools.ietf.org/html/rfc3330
Address Block Present Use Reference
---------------------------------------------------------------------
0.0.0.0/8 "This" Network [RFC1700, page 4]
10.0.0.0/8 Private-Use Networks [RFC1918]
14.0.0.0/8 Public-Data Networks [RFC1700, page 181]
24.0.0.0/8 Cable Television Networks --
39.0.0.0/8 Reserved but subject
to allocation [RFC1797]
127.0.0.0/8 Loopback [RFC1700, page 5]
128.0.0.0/16 Reserved but subject
to allocation --
169.254.0.0/16 Link Local --
172.16.0.0/12 Private-Use Networks [RFC1918]
191.255.0.0/16 Reserved but subject
to allocation --
192.0.0.0/24 Reserved but subject
to allocation --
192.0.2.0/24 Test-Net
192.88.99.0/24 6to4 Relay Anycast [RFC3068]
192.168.0.0/16 Private-Use Networks [RFC1918]
198.18.0.0/15 Network Interconnect
Device Benchmark Testing [RFC2544]
223.255.255.0/24 Reserved but subject
to allocation --
224.0.0.0/4 Multicast [RFC3171]
240.0.0.0/4 Reserved for Future Use [RFC1700, page 4]
特別な用途のアドレス
Address Block Present Use Reference
---------------------------------------------------------------------
0.0.0.0/8 "This" Network [RFC1700, page 4]
10.0.0.0/8 Private-Use Networks [RFC1918]
14.0.0.0/8 Public-Data Networks [RFC1700, page 181]
24.0.0.0/8 Cable Television Networks --
39.0.0.0/8 Reserved but subject
to allocation [RFC1797]
127.0.0.0/8 Loopback [RFC1700, page 5]
128.0.0.0/16 Reserved but subject
to allocation --
169.254.0.0/16 Link Local --
172.16.0.0/12 Private-Use Networks [RFC1918]
191.255.0.0/16 Reserved but subject
to allocation --
192.0.0.0/24 Reserved but subject
to allocation --
192.0.2.0/24 Test-Net
192.88.99.0/24 6to4 Relay Anycast [RFC3068]
192.168.0.0/16 Private-Use Networks [RFC1918]
198.18.0.0/15 Network Interconnect
Device Benchmark Testing [RFC2544]
223.255.255.0/24 Reserved but subject
to allocation --
224.0.0.0/4 Multicast [RFC3171]
240.0.0.0/4 Reserved for Future Use [RFC1700, page 4]
特別な用途のアドレス
169.254.0.0/16 Link Local
APIPA
http://ja.wikipedia.org/wiki/APIPA
DHCPでアドレスが取得できない場合など
確認方法
すべてのインターフェースのアドレス
netsh interface ipv4 show address
"接続名"のアドレス
netsh interface ipv4 show address "接続名"
PowerShell(コマンドレット)
Get-NetIPAddress | Select-Object IPAddress
プライベートアドレス
Address Allocation for Private Internets
http://tools.ietf.org/html/rfc1918
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
「グローバルに割り当てられていない」 (Wikipedia)
http://bit.ly/hOTatT
かつて予約されていたアドレス
RFC 5735 Special Use IPv4 Addresses
January 2010
http://tools.ietf.org/html/rfc5735
上記により割り当て可能となった。
14.0.0.0/8
24.0.0.0/8
39.0.0.0/8
128.0.0.0/16
191.255.0.0/16
223.255.255.0/24
例示用のアドレス
IPv4 Address Blocks Reserved for Documentation
January 2010
http://tools.ietf.org/html/rfc5737
192.0.2.0/24 (TEST-NET-1)
198.51.100.0/24 (TEST-NET-2)
203.0.113.0/24 (TEST-NET-3)
例示用のドメイン
Reserved Top Level DNS Names
http://tools.ietf.org/html/rfc2606
.test
.example
.invalid
.localhost
Reserved Example Second Level Domain Names
example.com
example.net
example.org
クラスA
0 ・・・ ・・・ ・・・
7ビット 24ビット
ネットワークアドレスの数
1つのネットワークアドレス内のホストアドレスの数
最小のホストアドレス
最大のホストアドレス
クラスB
1 0 ・・・ ・・・ ・・・
16ビット 16ビット
ネットワークアドレスの数
1つのネットワークアドレス内のホストアドレスの数
最小のホストアドレス
最大のホストアドレス
クラスC
1 1 0 ・・・ ・・・ ・・・
24ビット 8ビット
ネットワークアドレスの数
1つのネットワークアドレス内のホストアドレスの数
最小のホストアドレス
最大のホストアドレス

IPv4 address