network:mac_and_ipv4_arp

MAC アドレスを調べる ARP

TCP/IP において、IP パケットを送受信するためには、下位のデータリンク層のアドレスを取得する必要があり、MAC アドレスが必要な場合に ARP(Address Resolution Protocol) が用いられる。 イーサネットの場合論理的な IP アドレスを物理的なハードウェア・アドレスである MAC アドレスに変換する必要がある。
Address Resolution Protocol - Wikipediaより

IPv6 では ARP ではなく、ICMPv6 の「近隣探索プロトコル」を用いる。
近隣探索プロトコル(きんりんたんさくプロトコル)は、IPv6 (インターネット・プロトコル・バージョン 6) における近隣者を発見する(Neighbor Discovery) ためのプロトコルである。NDP と略称される。
近隣探索プロトコル - Wikipediaより

ルータの ARP キャッシュの表示

# arp -a
mixture.tomoyan.local (192.168.1.90) at eb:d8:87:e4:14:01 [ether]  on br0
android-b3ce9ad35c4925a2.tomoyan.local (192.168.1.139) at 3b:dc:ea:0c:8e:d4 [ether]  on br0
android-2a93972dc2f7186f.tomoyan.local (192.168.1.111) at 69:7a:bc:71:4e:31 [ether]  on br0
cmon.tomoyan.local (192.168.1.80) at 68:96:7b:07:21:55 [ether]  on br0
cmon1.tomoyan.local (192.168.1.81) at 1b:c9:49:8d:74:83 [ether]  on br0
  • network/mac_and_ipv4_arp.txt
  • 最終更新: 2019/08/19 07:18
  • by ともやん