{"schema":"article/1","id":"art_b78c508f88","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"同じネットワークの中では、宛先 MAC が相手そのものを指す","rawTitle":"同じネットワークの中では、宛先 MAC が相手そのものを指す","slug":"nw-basics-02-same-network","file":"ネットワーク_02_同じネットワークの中","relPath":"content/published/ネットワーク_02_同じネットワークの中.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","arp","スイッチ","concept"],"summary":"図 1 の土台に PC-A から PC-B への通信を 1 本流し、空だった ARP テーブルと MAC アドレステーブルが、どのフローで何を覚えて育つのかを 5 つの番号で追う","date":"2026-09-14","updated":"2026-09-14","links":["nw-basics-index","nw-basics-00-three-layers","nw-basics-01-baseline","nw-basics-03-vlan"],"blocks":[{"id":"blk_46e435","type":"paragraph","markdown":"図 1 では、スイッチの MAC アドレステーブルも ARP テーブルも空のままでした。表は通信が流れてから育ちます。そこで、この 2 本目では 1 本だけ流します。","text":"図 1 では、スイッチの MAC アドレステーブルも ARP テーブルも空のままでした。表は通信が流れてから育ちます。そこで、この 2 本目では 1 本だけ流します。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d212e4","type":"paragraph","markdown":"流すのは PC-A から PC-B へ、同じネットワークの中の通信です。同じネットワークとは、ルータを通さず直接届く範囲のことです。","text":"流すのは PC-A から PC-B へ、同じネットワークの中の通信です。同じネットワークとは、ルータを通さず直接届く範囲のことです。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c70ca9","type":"paragraph","markdown":"この連載は、ネットワークの言葉をもの（物理と論理）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 層に置いています。ここで動くのは、結びつきの層のうち自動の 2 つです。","text":"この連載は、ネットワークの言葉をもの（物理と論理）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 層に置いています。ここで動くのは、結びつきの層のうち自動の 2 つです。","line":6,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34ba84","type":"heading","depth":2,"markdown":"## 登場するもの","text":"登場するもの","line":8,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_729ee8","type":"paragraph","markdown":"新しい「もの」は増えません。箱もケーブルも図 1 と同じです。","text":"新しい「もの」は増えません。箱もケーブルも図 1 と同じです。","line":10,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_da7d3b","type":"paragraph","markdown":"動くのは 2 つの表です。MAC アドレステーブルは、MAC アドレスとその先の物理ポートの対応をスイッチが持つものです。ARP テーブルは、IP アドレスと MAC アドレスの対応を PC やルータが持つものです。どちらも論理で、自動で育ちます。","text":"動くのは 2 つの表です。MAC アドレステーブルは、MAC アドレスとその先の物理ポートの対応をスイッチが持つものです。ARP テーブルは、IP アドレスと MAC アドレスの対応を PC やルータが持つものです。どちらも論理で、自動で育ちます。","line":12,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":14,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_90413a","type":"heading","depth":4,"markdown":"#### IP アドレス ⇄ MAC アドレス（ARP）","text":"IP アドレス ⇄ MAC アドレス（ARP）","line":16,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9c2749","type":"paragraph","markdown":"PC-A は PC-B の IP アドレスを知っていても、MAC アドレスを知りません。届けるには相手の MAC アドレスが要ります。そこで全員あてで問い合わせます。ARP 要求はブロードキャスト、ARP 応答はユニキャストです。","text":"PC-A は PC-B の IP アドレスを知っていても、MAC アドレスを知りません。届けるには相手の MAC アドレスが要ります。そこで全員あてで問い合わせます。ARP 要求はブロードキャスト、ARP 応答はユニキャストです。","line":18,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3a0cd5","type":"paragraph","markdown":"要求を受け取った側も、その中に入っている送信元の IP アドレスと MAC アドレスを自分の表に書きます（RFC 826）。だから PC-B は返事のときに ARP を引き直しません。","text":"要求を受け取った側も、その中に入っている送信元の IP アドレスと MAC アドレスを自分の表に書きます（RFC 826）。だから PC-B は返事のときに ARP を引き直しません。","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d6ca90","type":"heading","depth":4,"markdown":"#### MAC アドレス ⇄ 物理ポート","text":"MAC アドレス ⇄ 物理ポート","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d02e5d","type":"paragraph","markdown":"スイッチは、フレームが入ってきたその瞬間に、送信元 MAC アドレスと受信した物理ポートの対応を表に書きます。宛先 MAC アドレスが表に無ければ受信ポート以外の全ポートへ流し、有ればその物理ポートだけへ出します。","text":"スイッチは、フレームが入ってきたその瞬間に、送信元 MAC アドレスと受信した物理ポートの対応を表に書きます。宛先 MAC アドレスが表に無ければ受信ポート以外の全ポートへ流し、有ればその物理ポートだけへ出します。","line":24,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_93882f","type":"paragraph","markdown":"① PC-A が「192.168.10.20 の MAC は？」を全員あてに送ります。スイッチはこのとき MAC A がポート 1 の先だと覚えます。","text":"① PC-A が「192.168.10.20 の MAC は？」を全員あてに送ります。スイッチはこのとき MAC A がポート 1 の先だと覚えます。","line":28,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f23a45","type":"paragraph","markdown":"② スイッチは受信ポート以外の全ポートへ流します。PC-B にも PC-D にも届きます。","text":"② スイッチは受信ポート以外の全ポートへ流します。PC-B にも PC-D にも届きます。","line":30,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d2b1b9","type":"paragraph","markdown":"③ PC-B だけが「私の MAC は B」と PC-A に返します。スイッチはこのとき MAC B がポート 2 の先だと覚えます。","text":"③ PC-B だけが「私の MAC は B」と PC-A に返します。スイッチはこのとき MAC B がポート 2 の先だと覚えます。","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b75c84","type":"paragraph","markdown":"④ ここまでで表に 2 行が育ちました。この番号では新しいフレームは流れず、① と ③ で覚えた 2 行を確認するだけです。","text":"④ ここまでで表に 2 行が育ちました。この番号では新しいフレームは流れず、① と ③ で覚えた 2 行を確認するだけです。","line":34,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5c3bb4","type":"paragraph","markdown":"⑤ PC-A は PC-B の MAC アドレスを宛先にして送ります。スイッチは表を見て、ポート 2 だけへ出します。","text":"⑤ PC-A は PC-B の MAC アドレスを宛先にして送ります。スイッチは表を見て、ポート 2 だけへ出します。","line":36,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2b1c45","type":"paragraph","markdown":"スイッチは IP を見ていません。ただし送り出す PC-A は、相手が自分のネットワークの中かどうかを IP アドレスとサブネットマスクで判断してから ARP を出しています。","text":"スイッチは IP を見ていません。ただし送り出す PC-A は、相手が自分のネットワークの中かどうかを IP アドレスとサブネットマスクで判断してから ARP を出しています。","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e84ef4","type":"paragraph","markdown":"同じネットワークの中では、宛先 MAC アドレスが相手そのものを指します。IP アドレスと MAC アドレスが同じ相手を指している状態です。ルータをまたぐとこの一致が崩れますが、それは図 5 で見ます。","text":"同じネットワークの中では、宛先 MAC アドレスが相手そのものを指します。IP アドレスと MAC アドレスが同じ相手を指している状態です。ルータをまたぐとこの一致が崩れますが、それは図 5 で見ます。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d62d9e","type":"heading","depth":2,"markdown":"## 図 2","text":"図 2","line":42,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3f4761","type":"paragraph","markdown":"上が構成図で、番号のバッジが ①〜⑤ に対応します。下の帯は左が各表の推移（どのフローで行が増えたか）、右が通信の中身の推移（フローごとのフレームとパケット）です。","text":"上が構成図で、番号のバッジが ①〜⑤ に対応します。下の帯は左が各表の推移（どのフローで行が増えたか）、右が通信の中身の推移（フローごとのフレームとパケット）です。","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f68f93","type":"html","markdown":"<svg viewBox=\"0 0 900 1078\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（フローあり・VLAN 前）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"1078\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN なし：A → B の通信（同じネットワークの中）</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">ルータの口（ポート 8）は省略。同じネットワークの中だけを描く</text>\n  <rect x=\"120\" y=\"110\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"132\" y=\"132\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"132\" y=\"156\" font-size=\"11\" fill=\"#374151\">MAC アドレステーブル（自動で育つ）</text>\n  <text x=\"132\" y=\"174\" font-size=\"11\" fill=\"#0a7aff\" font-weight=\"700\">A → ポート 1、B → ポート 2</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">3</text>\n  <line x1=\"180\" y1=\"209\" x2=\"180\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"280\" y1=\"209\" x2=\"280\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"380\" y1=\"209\" x2=\"380\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"135\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"180\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"180\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC A</text>\n  <rect x=\"235\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-B</text>\n  <text x=\"280\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.20</text>\n  <text x=\"280\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC B</text>\n  <rect x=\"335\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-D</text>\n  <text x=\"380\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.30</text>\n  <text x=\"380\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC D</text>\n  <line x1=\"164\" y1=\"300\" x2=\"164\" y2=\"220\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"159,221 169,221 164,212\" fill=\"#0a7aff\"/>\n  <circle cx=\"164\" cy=\"232\" r=\"9\" fill=\"#0a7aff\"/><text x=\"164\" y=\"236\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"266\" y1=\"209\" x2=\"266\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"261,287 271,287 266,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"266\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"266\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"366\" y1=\"209\" x2=\"366\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"361,287 371,287 366,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"366\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"366\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"294\" y1=\"300\" x2=\"294\" y2=\"220\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/><polygon points=\"289,221 299,221 294,212\" fill=\"#0a7aff\"/>\n  <circle cx=\"294\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"294\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <line x1=\"196\" y1=\"209\" x2=\"196\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/><polygon points=\"191,287 201,287 196,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"196\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"196\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <line x1=\"212\" y1=\"300\" x2=\"212\" y2=\"220\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"207,221 217,221 212,212\" fill=\"#1f2937\"/>\n  <circle cx=\"212\" cy=\"284\" r=\"9\" fill=\"#1f2937\"/><text x=\"212\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <line x1=\"310\" y1=\"209\" x2=\"310\" y2=\"288\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"305,287 315,287 310,296\" fill=\"#1f2937\"/>\n  <circle cx=\"310\" cy=\"284\" r=\"9\" fill=\"#1f2937\"/><text x=\"310\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <rect x=\"500\" y=\"110\" width=\"380\" height=\"250\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"516\" y=\"136\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"516\" y=\"162\" font-size=\"11\" fill=\"#374151\">① A が「192.168.10.20 の MAC は？」を全員あてに</text>\n  <text x=\"530\" y=\"178\" font-size=\"11\" fill=\"#374151\">送る（ARP）。スイッチは MAC A → ポート 1 を覚える</text>\n  <text x=\"516\" y=\"202\" font-size=\"11\" fill=\"#374151\">② スイッチは受信ポート以外の全ポートへ流す</text>\n  <text x=\"530\" y=\"218\" font-size=\"11\" fill=\"#374151\">→ B にも D にも届く</text>\n  <text x=\"516\" y=\"242\" font-size=\"11\" fill=\"#374151\">③ B だけが「私の MAC は B」と A に返す。</text>\n  <text x=\"530\" y=\"258\" font-size=\"11\" fill=\"#374151\">スイッチは MAC B → ポート 2 を覚える</text>\n  <text x=\"516\" y=\"282\" font-size=\"11\" fill=\"#374151\">④ ここまでで育ったテーブル（① と ③ で覚えた 2 行）</text>\n  <text x=\"516\" y=\"306\" font-size=\"11\" fill=\"#374151\">⑤ A は宛先 MAC ＝ B で送る。スイッチは</text>\n  <text x=\"530\" y=\"322\" font-size=\"11\" fill=\"#374151\">テーブルを見てポート 2 だけへ出す</text>\n  <line x1=\"516\" y1=\"346\" x2=\"546\" y2=\"346\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <text x=\"552\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">全員あて（①②）</text>\n  <line x1=\"650\" y1=\"346\" x2=\"680\" y2=\"346\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/>\n  <text x=\"686\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">返事（③）</text>\n  <line x1=\"760\" y1=\"346\" x2=\"790\" y2=\"346\" stroke=\"#1f2937\" stroke-width=\"2\"/>\n  <text x=\"796\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">本番（⑤）</text>\n  <text x=\"20\" y=\"400\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">効いているもの</text>\n  <text x=\"20\" y=\"422\" font-size=\"11\" fill=\"#374151\">①③ ARP（IP ⇄ MAC の結びつき・自動）　②⑤ スイッチの転送（MAC を見る）　④ MAC アドレステーブル（MAC ⇄ 物理ポートの結びつき・自動）</text>\n  <text x=\"20\" y=\"444\" font-size=\"11\" fill=\"#6b7280\">スイッチは IP を見ていない。ただし送り出す A は、相手が自分のネットワークの中かどうかを IP とマスクで判断してから ARP を出している</text>\n<line x1=\"20\" y1=\"528\" x2=\"880\" y2=\"528\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"550\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"562\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC アドレステーブル</text>\n  <text x=\"30\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1（① が入ってきた時）</text>\n  <text x=\"30\" y=\"609\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC B → ポート 2（③ が入ってきた時）</text>\n  <rect x=\"310\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"320\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.10.20 → MAC B（応答から）</text>\n  <rect x=\"600\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-B: ARP テーブル</text>\n  <text x=\"610\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A（要求を受けて）</text>\n<text x=\"20\" y=\"672\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"700\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ：ARP 要求（全員あて）</text>\n  <rect x=\"20\" y=\"706\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ff:ff:ff:ff:ff:ff（全員）</text>\n  <rect x=\"138\" y=\"706\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"706\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">知りたい IP</text>\n  <text x=\"315.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"706\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"706\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 要求</text>\n<text x=\"20\" y=\"752\" font-size=\"10\" fill=\"#6b7280\">ARP は IP パケットではない（Ethernet の種類の欄が IP とは別の値）。中身が IP を扱うので同じ並びで描いている。ルータは ARP を中継しない</text>\n  <text x=\"20\" y=\"770\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → B・D</text>\n  <text x=\"20\" y=\"790\" font-size=\"10\" fill=\"#6b7280\">中身は ① と同じ。スイッチはコピーして流すだけで、書き換えない</text>\n  <text x=\"20\" y=\"814\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ B → スイッチ → A：ARP 応答</text>\n  <rect x=\"20\" y=\"820\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"138\" y=\"820\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"256\" y=\"820\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">相手の IP</text>\n  <text x=\"315.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"374\" y=\"820\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"492\" y=\"820\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 応答</text>\n  <text x=\"20\" y=\"874\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ ここまでで育ったテーブル</text>\n  <text x=\"20\" y=\"894\" font-size=\"10\" fill=\"#6b7280\">通信は流れない。① と ③ で覚えた行を上の表で確認する</text>\n  <text x=\"20\" y=\"940\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ A → スイッチ → B：本番</text>\n  <rect x=\"20\" y=\"946\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"138\" y=\"946\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"946\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"946\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"946\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"990\" x2=\"562\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"986\" x2=\"20\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"986\" x2=\"562\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1003\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"932\" x2=\"562\" y2=\"932\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"932\" x2=\"256\" y2=\"936\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"932\" x2=\"562\" y2=\"936\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"928\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"1036\" font-size=\"10\" fill=\"#6b7280\">同じネットワークの中では、宛先 MAC ＝ 相手そのもの。IP と MAC が同じ相手を指している</text>\n<text x=\"20\" y=\"1052\" font-size=\"10\" fill=\"#6b7280\">ARP は、要求を出した側だけでなく、要求を受け取った側も相手を覚える（だから B は A に返すとき ARP を引き直さない）</text>\n</svg>","text":"<svg viewBox=\"0 0 900 1078\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（フローあり・VLAN 前）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"1078\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN なし：A → B の通信（同じネットワークの中）</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">ルータの口（ポート 8）は省略。同じネットワークの中だけを描く</text>\n  <rect x=\"120\" y=\"110\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"132\" y=\"132\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"132\" y=\"156\" font-size=\"11\" fill=\"#374151\">MAC アドレステーブル（自動で育つ）</text>\n  <text x=\"132\" y=\"174\" font-size=\"11\" fill=\"#0a7aff\" font-weight=\"700\">A → ポート 1、B → ポート 2</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">3</text>\n  <line x1=\"180\" y1=\"209\" x2=\"180\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"280\" y1=\"209\" x2=\"280\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"380\" y1=\"209\" x2=\"380\" y2=\"300\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"135\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"180\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"180\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC A</text>\n  <rect x=\"235\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-B</text>\n  <text x=\"280\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.20</text>\n  <text x=\"280\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC B</text>\n  <rect x=\"335\" y=\"300\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"320\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-D</text>\n  <text x=\"380\" y=\"336\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.30</text>\n  <text x=\"380\" y=\"350\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC D</text>\n  <line x1=\"164\" y1=\"300\" x2=\"164\" y2=\"220\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"159,221 169,221 164,212\" fill=\"#0a7aff\"/>\n  <circle cx=\"164\" cy=\"232\" r=\"9\" fill=\"#0a7aff\"/><text x=\"164\" y=\"236\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"266\" y1=\"209\" x2=\"266\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"261,287 271,287 266,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"266\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"266\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"366\" y1=\"209\" x2=\"366\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"361,287 371,287 366,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"366\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"366\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"294\" y1=\"300\" x2=\"294\" y2=\"220\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/><polygon points=\"289,221 299,221 294,212\" fill=\"#0a7aff\"/>\n  <circle cx=\"294\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"294\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <line x1=\"196\" y1=\"209\" x2=\"196\" y2=\"288\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/><polygon points=\"191,287 201,287 196,296\" fill=\"#0a7aff\"/>\n  <circle cx=\"196\" cy=\"258\" r=\"9\" fill=\"#0a7aff\"/><text x=\"196\" y=\"262\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <line x1=\"212\" y1=\"300\" x2=\"212\" y2=\"220\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"207,221 217,221 212,212\" fill=\"#1f2937\"/>\n  <circle cx=\"212\" cy=\"284\" r=\"9\" fill=\"#1f2937\"/><text x=\"212\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <line x1=\"310\" y1=\"209\" x2=\"310\" y2=\"288\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"305,287 315,287 310,296\" fill=\"#1f2937\"/>\n  <circle cx=\"310\" cy=\"284\" r=\"9\" fill=\"#1f2937\"/><text x=\"310\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <rect x=\"500\" y=\"110\" width=\"380\" height=\"250\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"516\" y=\"136\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"516\" y=\"162\" font-size=\"11\" fill=\"#374151\">① A が「192.168.10.20 の MAC は？」を全員あてに</text>\n  <text x=\"530\" y=\"178\" font-size=\"11\" fill=\"#374151\">送る（ARP）。スイッチは MAC A → ポート 1 を覚える</text>\n  <text x=\"516\" y=\"202\" font-size=\"11\" fill=\"#374151\">② スイッチは受信ポート以外の全ポートへ流す</text>\n  <text x=\"530\" y=\"218\" font-size=\"11\" fill=\"#374151\">→ B にも D にも届く</text>\n  <text x=\"516\" y=\"242\" font-size=\"11\" fill=\"#374151\">③ B だけが「私の MAC は B」と A に返す。</text>\n  <text x=\"530\" y=\"258\" font-size=\"11\" fill=\"#374151\">スイッチは MAC B → ポート 2 を覚える</text>\n  <text x=\"516\" y=\"282\" font-size=\"11\" fill=\"#374151\">④ ここまでで育ったテーブル（① と ③ で覚えた 2 行）</text>\n  <text x=\"516\" y=\"306\" font-size=\"11\" fill=\"#374151\">⑤ A は宛先 MAC ＝ B で送る。スイッチは</text>\n  <text x=\"530\" y=\"322\" font-size=\"11\" fill=\"#374151\">テーブルを見てポート 2 だけへ出す</text>\n  <line x1=\"516\" y1=\"346\" x2=\"546\" y2=\"346\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <text x=\"552\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">全員あて（①②）</text>\n  <line x1=\"650\" y1=\"346\" x2=\"680\" y2=\"346\" stroke=\"#0a7aff\" stroke-width=\"2\" stroke-dasharray=\"5 4\"/>\n  <text x=\"686\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">返事（③）</text>\n  <line x1=\"760\" y1=\"346\" x2=\"790\" y2=\"346\" stroke=\"#1f2937\" stroke-width=\"2\"/>\n  <text x=\"796\" y=\"350\" font-size=\"10\" fill=\"#6b7280\">本番（⑤）</text>\n  <text x=\"20\" y=\"400\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">効いているもの</text>\n  <text x=\"20\" y=\"422\" font-size=\"11\" fill=\"#374151\">①③ ARP（IP ⇄ MAC の結びつき・自動）　②⑤ スイッチの転送（MAC を見る）　④ MAC アドレステーブル（MAC ⇄ 物理ポートの結びつき・自動）</text>\n  <text x=\"20\" y=\"444\" font-size=\"11\" fill=\"#6b7280\">スイッチは IP を見ていない。ただし送り出す A は、相手が自分のネットワークの中かどうかを IP とマスクで判断してから ARP を出している</text>\n<line x1=\"20\" y1=\"528\" x2=\"880\" y2=\"528\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"550\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"562\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC アドレステーブル</text>\n  <text x=\"30\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1（① が入ってきた時）</text>\n  <text x=\"30\" y=\"609\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC B → ポート 2（③ が入ってきた時）</text>\n  <rect x=\"310\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"320\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.10.20 → MAC B（応答から）</text>\n  <rect x=\"600\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-B: ARP テーブル</text>\n  <text x=\"610\" y=\"594\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A（要求を受けて）</text>\n<text x=\"20\" y=\"672\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"700\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ：ARP 要求（全員あて）</text>\n  <rect x=\"20\" y=\"706\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ff:ff:ff:ff:ff:ff（全員）</text>\n  <rect x=\"138\" y=\"706\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"706\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">知りたい IP</text>\n  <text x=\"315.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"706\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"706\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"720\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"735\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 要求</text>\n<text x=\"20\" y=\"752\" font-size=\"10\" fill=\"#6b7280\">ARP は IP パケットではない（Ethernet の種類の欄が IP とは別の値）。中身が IP を扱うので同じ並びで描いている。ルータは ARP を中継しない</text>\n  <text x=\"20\" y=\"770\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → B・D</text>\n  <text x=\"20\" y=\"790\" font-size=\"10\" fill=\"#6b7280\">中身は ① と同じ。スイッチはコピーして流すだけで、書き換えない</text>\n  <text x=\"20\" y=\"814\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ B → スイッチ → A：ARP 応答</text>\n  <rect x=\"20\" y=\"820\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"138\" y=\"820\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"256\" y=\"820\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">相手の IP</text>\n  <text x=\"315.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"374\" y=\"820\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"492\" y=\"820\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"834\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"849\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 応答</text>\n  <text x=\"20\" y=\"874\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ ここまでで育ったテーブル</text>\n  <text x=\"20\" y=\"894\" font-size=\"10\" fill=\"#6b7280\">通信は流れない。① と ③ で覚えた行を上の表で確認する</text>\n  <text x=\"20\" y=\"940\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ A → スイッチ → B：本番</text>\n  <rect x=\"20\" y=\"946\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"138\" y=\"946\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"946\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"946\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"946\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"960\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"975\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"990\" x2=\"562\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"986\" x2=\"20\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"986\" x2=\"562\" y2=\"990\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1003\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"932\" x2=\"562\" y2=\"932\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"932\" x2=\"256\" y2=\"936\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"932\" x2=\"562\" y2=\"936\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"928\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"1036\" font-size=\"10\" fill=\"#6b7280\">同じネットワークの中では、宛先 MAC ＝ 相手そのもの。IP と MAC が同じ相手を指している</text>\n<text x=\"20\" y=\"1052\" font-size=\"10\" fill=\"#6b7280\">ARP は、要求を出した側だけでなく、要求を受け取った側も相手を覚える（だから B は A に返すとき ARP を引き直さない）</text>\n</svg>","line":46,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_47c186","type":"heading","depth":2,"markdown":"## 図 1・図 3 との接続","text":"図 1・図 3 との接続","line":183,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_610991","type":"paragraph","markdown":"図 1 で空だった 2 つの表は、① と ③ で育ちました。ルーティングテーブルは動きません。この通信はルータを通っていないからです。","text":"図 1 で空だった 2 つの表は、① と ③ で育ちました。ルーティングテーブルは動きません。この通信はルータを通っていないからです。","line":185,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8b8691","type":"paragraph","markdown":"次の図 3 では、箱もケーブルもこのままで、PC-D だけを別の VLAN に置きます。変わるのは ② の流す範囲と ⑤ の探す範囲です。","text":"次の図 3 では、箱もケーブルもこのままで、PC-D だけを別の VLAN に置きます。変わるのは ② の流す範囲と ⑤ の探す範囲です。","line":187,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":189,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_605b99","type":"list","markdown":"- ARP は IP パケットではありません。Ethernet の種類の欄が IP とは別の値です。図では中身が IP アドレスを扱うので同じ並びで描いていますが、ルータは ARP を中継しません。\n- ARP テーブルの行にも寿命があり、時間が経つと引き直します。既定値は機種によって違い、確認していません。\n- 勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","text":"ARP は IP パケットではありません。Ethernet の種類の欄が IP とは別の値です。図では中身が IP アドレスを扱うので同じ並びで描いていますが、ルータは ARP を中継しません。ARP テーブルの行にも寿命があり、時間が経つと引き直します。既定値は機種によって違い、確認していません。勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","line":191,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":195,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_65e07d","type":"list","markdown":"- 勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）\n- [インフラエキスパート: ARP](https://www.infraexpert.com/study/tcpip2.html) — ARP 要求はブロードキャスト、ARP 応答はユニキャスト\n- [インフラエキスパート: Ethernet LAN - Layer2スイッチ](https://www.infraexpert.com/study/ethernet7.html) — 送信元 MAC アドレスと受信ポートの記録、フラッディング、フィルタリング\n- [RFC 826: An Ethernet Address Resolution Protocol](https://www.rfc-editor.org/rfc/rfc826.html) — 受け取った側が、パケットの中の送信元の対応を自分の表に書くこと","text":"勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）インフラエキスパート: ARP — ARP 要求はブロードキャスト、ARP 応答はユニキャストインフラエキスパート: Ethernet LAN - Layer2スイッチ — 送信元 MAC アドレスと受信ポートの記録、フラッディング、フィルタリングRFC 826: An Ethernet Address Resolution Protocol — 受け取った側が、パケットの中の送信元の対応を自分の表に書くこと","line":197,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":202,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_973b2b","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n\n- [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers) — 連載の入口と読む順番\n\n- [ネットワーク\\_01\\_土台の3層](/notes/nw-basics-01-baseline) — 流れる前の構成と各表\n\n- [ネットワーク\\_03\\_VLAN](/notes/nw-basics-03-vlan) — 同じ構成のまま流す範囲を絞る","text":"ネットワーク_INDEX — 連載の目次ネットワーク_00_3層で言葉を置く — 連載の入口と読む順番ネットワーク_01_土台の3層 — 流れる前の構成と各表ネットワーク_03_VLAN — 同じ構成のまま流す範囲を絞る","line":204,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.infraexpert.com/study/tcpip2.html","title":"インフラエキスパート: ARP","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.infraexpert.com/study/ethernet7.html","title":"インフラエキスパート: Ethernet LAN - Layer2スイッチ","accessed":"2026-09-14","kind":"secondary"},{"id":"src_3","url":"https://www.rfc-editor.org/rfc/rfc826.html","title":"RFC 826: An Ethernet Address Resolution Protocol","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}