{"articleId":"art_90e9d5bcbb","slug":"nw-basics-03-vlan","title":"VLAN が変えるのは、全員あてを流す範囲とテーブルの区切りだけ","version":1,"area":"tech","topic":"ネットワーク","tags":["ネットワーク","vlan","スイッチ","concept"],"date":"2026-09-14","updated":"2026-09-14","records":[{"id":"rev_e382ceecd0","at":"2026-09-14","actor":{"kind":"ai","id":"claude-fable-5","label":"AI (claude-fable-5)"},"version":1,"kind":"ai-check","scope":{},"text":"出典 3 件を WebFetch で取得して確認した。VLAN が論理的に LAN セグメントを分けブロードキャストを VLAN ID ごとに分割すること、アクセスポートが単一の VLAN に属すること、VLAN 間の通信に L3 機器が要ることを確認した。図の PC-D は 192.168.10.30 のままで、SPEC の VLAN 20＝192.168.20.0/24 への振り直しは図 6 からである点を本文に明記。使える VLAN 番号の範囲とタグの形式は本記事では扱わず未検証のまま残した（図 4 の範囲）。守秘検査（人名、社名、会場名、地名、連絡先の機械検査）で該当なし","status":"open","source":"frontmatter"},{"id":"rev_7d7940b908","at":"2026-09-14","actor":{"kind":"ai","id":"claude-fable-5","label":"AI (claude-fable-5)"},"version":1,"kind":"edit","scope":{},"text":"校閲で、VLAN 20 の番地の振り直しが図 6 からではなく図 4 から使われていることを確認し、本文と図の注記を「図 4 から」に修正した（前の記録の『図 6 から』は誤り）","status":"open","source":"frontmatter"}],"blocks":[{"id":"blk_0802e7","type":"paragraph","markdown":"図 2 では、全員あての問いかけがスイッチの全ポートへ流れ、PC-B にも PC-D にも届きました。ここで PC-D だけを別の VLAN に置きます。","text":"図 2 では、全員あての問いかけがスイッチの全ポートへ流れ、PC-B にも PC-D にも届きました。ここで PC-D だけを別の VLAN に置きます。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_6fbac9","type":"paragraph","markdown":"箱もケーブルも図 2 と同じです。変わるのは、物理ポートに付けた VLAN 番号だけです。","text":"箱もケーブルも図 2 と同じです。変わるのは、物理ポートに付けた VLAN 番号だけです。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fab090","type":"paragraph","markdown":"この連載は、ネットワークの言葉をもの（物理と論理）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 層に置いています。VLAN もこの 3 つで置けます。","text":"この連載は、ネットワークの言葉をもの（物理と論理）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 層に置いています。VLAN もこの 3 つで置けます。","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_b3c738","type":"heading","depth":4,"markdown":"#### VLAN 番号","text":"VLAN 番号","line":10,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cc1d3b","type":"paragraph","markdown":"VLAN 番号は論理のものです。スイッチの中にあります。全員あてが届く範囲を、設定で分けたものです。","text":"VLAN 番号は論理のものです。スイッチの中にあります。全員あてが届く範囲を、設定で分けたものです。","line":12,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f21cbb","type":"heading","depth":4,"markdown":"#### アクセスポート","text":"アクセスポート","line":14,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_dd0368","type":"paragraph","markdown":"アクセスポートは、1 つの VLAN だけに所属する物理ポートの使い方です。PC をつなぐ口がこれにあたります。","text":"アクセスポートは、1 つの VLAN だけに所属する物理ポートの使い方です。PC をつなぐ口がこれにあたります。","line":16,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b9be54","type":"paragraph","markdown":"分ける理由は、物理的に分けるときと同じです。ブロードキャストの届く範囲を狭めることと、間にルータを置いて制御することの 2 つです。物理的に分ければスイッチの台数と配線と席替えの手間が増えますが、VLAN なら 1 台を共有したまま、設定だけで所属を変えられます。","text":"分ける理由は、物理的に分けるときと同じです。ブロードキャストの届く範囲を狭めることと、間にルータを置いて制御することの 2 つです。物理的に分ければスイッチの台数と配線と席替えの手間が増えますが、VLAN なら 1 台を共有したまま、設定だけで所属を変えられます。","line":18,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c6d05b","type":"paragraph","markdown":"物理ポートと VLAN 番号は手動で結び付きます。人がポートごとに番号を設定します。","text":"物理ポートと VLAN 番号は手動で結び付きます。人がポートごとに番号を設定します。","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d14470","type":"paragraph","markdown":"MAC アドレステーブルと VLAN 番号は自動で結び付きます。スイッチは覚えた行を VLAN ごとに分けて持ちます。","text":"MAC アドレステーブルと VLAN 番号は自動で結び付きます。スイッチは覚えた行を VLAN ごとに分けて持ちます。","line":24,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_31123e","type":"paragraph","markdown":"結果として、箱 1 つの中に、ケーブルでつながっていない 2 台のスイッチがあるのと同じ状態になります。","text":"結果として、箱 1 つの中に、ケーブルでつながっていない 2 台のスイッチがあるのと同じ状態になります。","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":28,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_7d8f2c","type":"paragraph","markdown":"PC-A から PC-B への通信（どちらも VLAN 10）で、変わるのは ② と ⑤ だけです。","text":"PC-A から PC-B への通信（どちらも VLAN 10）で、変わるのは ② と ⑤ だけです。","line":30,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_00edf7","type":"paragraph","markdown":"① PC-A が「192.168.10.20 の MAC は？」を全員あてに送ります。ここは図 2 と同じです。","text":"① PC-A が「192.168.10.20 の MAC は？」を全員あてに送ります。ここは図 2 と同じです。","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_d836be","type":"paragraph","markdown":"② スイッチは、PC-A と同じ VLAN 10 のポートだけへ流します。PC-B には届き、VLAN 20 の PC-D には届きません。","text":"② スイッチは、PC-A と同じ VLAN 10 のポートだけへ流します。PC-B には届き、VLAN 20 の PC-D には届きません。","line":34,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_dce79f","type":"paragraph","markdown":"③ PC-B だけが PC-A に返します。ここも図 2 と同じです。","text":"③ PC-B だけが PC-A に返します。ここも図 2 と同じです。","line":36,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_30a3cb","type":"paragraph","markdown":"④ VLAN 10 の表に 2 行が育ちます。VLAN 20 の表は空のままです。","text":"④ VLAN 10 の表に 2 行が育ちます。VLAN 20 の表は空のままです。","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0b2a2b","type":"paragraph","markdown":"⑤ PC-A が送ったフレームを、スイッチは VLAN 10 の表の中だけで探し、ポート 2 だけへ出します。","text":"⑤ PC-A が送ったフレームを、スイッチは VLAN 10 の表の中だけで探し、ポート 2 だけへ出します。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2c8ff4","type":"paragraph","markdown":"PC-A から PC-D への通信は、② で問いかけが届かないので始まりません。","text":"PC-A から PC-D への通信は、② で問いかけが届かないので始まりません。","line":42,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_41ef1e","type":"heading","depth":2,"markdown":"## 図 3","text":"図 3","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b937c8","type":"paragraph","markdown":"上が構成図で、スイッチの中が VLAN 10 と VLAN 20 の 2 つに分かれています。下の帯は左が各表の推移、右が通信の中身の推移です。","text":"上が構成図で、スイッチの中が VLAN 10 と VLAN 20 の 2 つに分かれています。下の帯は左が各表の推移、右が通信の中身の推移です。","line":46,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_aa61d4","type":"html","markdown":"<svg viewBox=\"0 0 900 1099\" 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=\"1099\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN あり：A → B の通信（A・B は VLAN 10、D は VLAN 20）</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">箱もケーブルも図 2 と同じ。変わったのは物理ポートに付けた VLAN 番号（手動）だけ</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  <rect x=\"132\" y=\"142\" width=\"196\" height=\"50\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\" stroke-dasharray=\"4 3\"/>\n  <text x=\"140\" y=\"158\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">VLAN 10</text>\n  <text x=\"140\" y=\"174\" font-size=\"10\" fill=\"#374151\">テーブル: A → 1、B → 2</text>\n  <rect x=\"340\" y=\"142\" width=\"80\" height=\"50\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\" stroke-dasharray=\"4 3\"/>\n  <text x=\"348\" y=\"158\" font-size=\"11\" font-weight=\"700\" fill=\"#b45309\">VLAN 20</text>\n  <text x=\"348\" y=\"174\" font-size=\"10\" fill=\"#374151\">テーブル: 空</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">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=\"254\" stroke=\"#9aa7b5\" stroke-width=\"2\" stroke-dasharray=\"3 3\"/><polygon points=\"361,253 371,253 366,262\" fill=\"#9aa7b5\"/>\n  <line x1=\"359\" y1=\"266\" x2=\"373\" y2=\"280\" stroke=\"#b45309\" stroke-width=\"2.5\"/>\n  <line x1=\"373\" y1=\"266\" x2=\"359\" y2=\"280\" stroke=\"#b45309\" stroke-width=\"2.5\"/>\n  <text x=\"392\" y=\"277\" font-size=\"10\" fill=\"#b45309\">② D には流さない</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）　＝同じ</text>\n  <text x=\"516\" y=\"202\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">② A と同じ VLAN 10 のポートだけへ流す</text>\n  <text x=\"530\" y=\"218\" font-size=\"11\" fill=\"#374151\">→ B には届く。D（VLAN 20）には届かない</text>\n  <text x=\"516\" y=\"242\" font-size=\"11\" fill=\"#374151\">③ B だけが A に返す　＝同じ</text>\n  <text x=\"516\" y=\"266\" font-size=\"11\" fill=\"#374151\">④ ここまでで育ったテーブル（VLAN 10 の 2 行）</text>\n  <text x=\"516\" y=\"290\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">⑤ VLAN 10 のテーブルの中だけで探し、</text>\n  <text x=\"530\" y=\"306\" font-size=\"11\" fill=\"#374151\">ポート 2 だけへ出す</text>\n  <text x=\"516\" y=\"336\" font-size=\"11\" fill=\"#b45309\">A → D は、② で D に問いかけが届かないので始まらない</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\">もの：VLAN 番号（論理・スイッチの中）　結びつき：物理ポート ⇄ VLAN 番号（手動）、MAC アドレステーブル ⇄ VLAN 番号（自動）</text>\n  <text x=\"20\" y=\"444\" font-size=\"11\" fill=\"#6b7280\">箱 1 つの中に、ケーブルでつながっていない 2 台のスイッチがあるのと同じ状態</text>\n  <text x=\"20\" y=\"464\" font-size=\"11\" fill=\"#b45309\">この時点では D も同じ 192.168.10.0/24 のまま。分断しただけで番地は割り直していない。</text>\n  <text x=\"20\" y=\"482\" font-size=\"11\" fill=\"#b45309\">VLAN をまたいで通す（図 6）には VLAN ごとに別のネットワークへ振り直す。振り直した番地は図 4 から使う</text>\n<line x1=\"20\" y1=\"548\" x2=\"880\" y2=\"548\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"570\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"582\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 10）</text>\n  <text x=\"30\" y=\"614\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1</text>\n  <text x=\"30\" y=\"629\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC B → ポート 2</text>\n  <rect x=\"310\" y=\"582\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 20）</text>\n  <text x=\"320\" y=\"614\" font-size=\"10\" fill=\"#374151\">（空）このフローでは何も通らない</text>\n  <rect x=\"600\" y=\"582\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"610\" y=\"614\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.10.20 → MAC B</text>\n  <rect x=\"20\" y=\"652\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"668\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-B: ARP テーブル</text>\n  <text x=\"30\" y=\"684\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A</text>\n  <rect x=\"310\" y=\"652\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"668\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-D: ARP テーブル</text>\n  <text x=\"320\" y=\"684\" font-size=\"10\" fill=\"#374151\">（空）② が届かないので何も学ばない</text>\n<text x=\"20\" y=\"737\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"765\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ：ARP 要求（全員あて）</text>\n  <rect x=\"20\" y=\"771\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ff:ff:ff:ff:ff:ff（全員）</text>\n  <rect x=\"138\" y=\"771\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"771\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">知りたい IP</text>\n  <text x=\"315.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"771\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"771\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 要求</text>\n<text x=\"20\" y=\"817\" font-size=\"10\" fill=\"#6b7280\">ARP は IP パケットではない（Ethernet の種類の欄が IP とは別の値）。中身が IP を扱うので同じ並びで描いている。ルータは ARP を中継しない</text>\n  <text x=\"20\" y=\"835\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → B だけ</text>\n  <text x=\"20\" y=\"855\" font-size=\"10\" fill=\"#6b7280\">中身は ① と同じ。流す先が VLAN 10 のポートに絞られただけ</text>\n  <text x=\"20\" y=\"879\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ B → スイッチ → A：ARP 応答</text>\n  <rect x=\"20\" y=\"885\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"138\" y=\"885\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"256\" y=\"885\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">相手の IP</text>\n  <text x=\"315.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"374\" y=\"885\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"492\" y=\"885\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 応答</text>\n  <text x=\"20\" y=\"961\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ A → スイッチ → B：本番</text>\n  <rect x=\"20\" y=\"967\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"138\" y=\"967\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"967\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"967\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"967\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"1011\" x2=\"562\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"1007\" x2=\"20\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1007\" x2=\"562\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1024\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"953\" x2=\"562\" y2=\"953\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"953\" x2=\"256\" y2=\"957\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"953\" x2=\"562\" y2=\"957\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"949\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"1057\" font-size=\"10\" fill=\"#6b7280\">アクセスポートの区間ではタグは付かない。図 2 と通信の中身は同じ。変わったのはスイッチの流す範囲とテーブルの区切り</text>\n<text x=\"20\" y=\"1073\" font-size=\"10\" fill=\"#6b7280\">実機の MAC テーブルは 1 枚の表に VLAN 番号の列があり、探すときはその列も一致させる。ここでは分かりやすさのため VLAN ごとに分けて描いている</text>\n</svg>","text":"<svg viewBox=\"0 0 900 1099\" 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=\"1099\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN あり：A → B の通信（A・B は VLAN 10、D は VLAN 20）</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">箱もケーブルも図 2 と同じ。変わったのは物理ポートに付けた VLAN 番号（手動）だけ</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  <rect x=\"132\" y=\"142\" width=\"196\" height=\"50\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\" stroke-dasharray=\"4 3\"/>\n  <text x=\"140\" y=\"158\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">VLAN 10</text>\n  <text x=\"140\" y=\"174\" font-size=\"10\" fill=\"#374151\">テーブル: A → 1、B → 2</text>\n  <rect x=\"340\" y=\"142\" width=\"80\" height=\"50\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\" stroke-dasharray=\"4 3\"/>\n  <text x=\"348\" y=\"158\" font-size=\"11\" font-weight=\"700\" fill=\"#b45309\">VLAN 20</text>\n  <text x=\"348\" y=\"174\" font-size=\"10\" fill=\"#374151\">テーブル: 空</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#1f2937\">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=\"254\" stroke=\"#9aa7b5\" stroke-width=\"2\" stroke-dasharray=\"3 3\"/><polygon points=\"361,253 371,253 366,262\" fill=\"#9aa7b5\"/>\n  <line x1=\"359\" y1=\"266\" x2=\"373\" y2=\"280\" stroke=\"#b45309\" stroke-width=\"2.5\"/>\n  <line x1=\"373\" y1=\"266\" x2=\"359\" y2=\"280\" stroke=\"#b45309\" stroke-width=\"2.5\"/>\n  <text x=\"392\" y=\"277\" font-size=\"10\" fill=\"#b45309\">② D には流さない</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）　＝同じ</text>\n  <text x=\"516\" y=\"202\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">② A と同じ VLAN 10 のポートだけへ流す</text>\n  <text x=\"530\" y=\"218\" font-size=\"11\" fill=\"#374151\">→ B には届く。D（VLAN 20）には届かない</text>\n  <text x=\"516\" y=\"242\" font-size=\"11\" fill=\"#374151\">③ B だけが A に返す　＝同じ</text>\n  <text x=\"516\" y=\"266\" font-size=\"11\" fill=\"#374151\">④ ここまでで育ったテーブル（VLAN 10 の 2 行）</text>\n  <text x=\"516\" y=\"290\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">⑤ VLAN 10 のテーブルの中だけで探し、</text>\n  <text x=\"530\" y=\"306\" font-size=\"11\" fill=\"#374151\">ポート 2 だけへ出す</text>\n  <text x=\"516\" y=\"336\" font-size=\"11\" fill=\"#b45309\">A → D は、② で D に問いかけが届かないので始まらない</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\">もの：VLAN 番号（論理・スイッチの中）　結びつき：物理ポート ⇄ VLAN 番号（手動）、MAC アドレステーブル ⇄ VLAN 番号（自動）</text>\n  <text x=\"20\" y=\"444\" font-size=\"11\" fill=\"#6b7280\">箱 1 つの中に、ケーブルでつながっていない 2 台のスイッチがあるのと同じ状態</text>\n  <text x=\"20\" y=\"464\" font-size=\"11\" fill=\"#b45309\">この時点では D も同じ 192.168.10.0/24 のまま。分断しただけで番地は割り直していない。</text>\n  <text x=\"20\" y=\"482\" font-size=\"11\" fill=\"#b45309\">VLAN をまたいで通す（図 6）には VLAN ごとに別のネットワークへ振り直す。振り直した番地は図 4 から使う</text>\n<line x1=\"20\" y1=\"548\" x2=\"880\" y2=\"548\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"570\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"582\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 10）</text>\n  <text x=\"30\" y=\"614\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1</text>\n  <text x=\"30\" y=\"629\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC B → ポート 2</text>\n  <rect x=\"310\" y=\"582\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 20）</text>\n  <text x=\"320\" y=\"614\" font-size=\"10\" fill=\"#374151\">（空）このフローでは何も通らない</text>\n  <rect x=\"600\" y=\"582\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"598\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"610\" y=\"614\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.10.20 → MAC B</text>\n  <rect x=\"20\" y=\"652\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"668\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-B: ARP テーブル</text>\n  <text x=\"30\" y=\"684\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A</text>\n  <rect x=\"310\" y=\"652\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"668\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-D: ARP テーブル</text>\n  <text x=\"320\" y=\"684\" font-size=\"10\" fill=\"#374151\">（空）② が届かないので何も学ばない</text>\n<text x=\"20\" y=\"737\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"765\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ：ARP 要求（全員あて）</text>\n  <rect x=\"20\" y=\"771\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ff:ff:ff:ff:ff:ff（全員）</text>\n  <rect x=\"138\" y=\"771\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"771\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">知りたい IP</text>\n  <text x=\"315.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"771\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"771\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"785\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"800\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 要求</text>\n<text x=\"20\" y=\"817\" font-size=\"10\" fill=\"#6b7280\">ARP は IP パケットではない（Ethernet の種類の欄が IP とは別の値）。中身が IP を扱うので同じ並びで描いている。ルータは ARP を中継しない</text>\n  <text x=\"20\" y=\"835\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → B だけ</text>\n  <text x=\"20\" y=\"855\" font-size=\"10\" fill=\"#6b7280\">中身は ① と同じ。流す先が VLAN 10 のポートに絞られただけ</text>\n  <text x=\"20\" y=\"879\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ B → スイッチ → A：ARP 応答</text>\n  <rect x=\"20\" y=\"885\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"138\" y=\"885\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"256\" y=\"885\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">相手の IP</text>\n  <text x=\"315.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"374\" y=\"885\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">自分の IP</text>\n  <text x=\"433.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"492\" y=\"885\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"899\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"914\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ARP 応答</text>\n  <text x=\"20\" y=\"961\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ A → スイッチ → B：本番</text>\n  <rect x=\"20\" y=\"967\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC B</text>\n  <rect x=\"138\" y=\"967\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"967\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.20</text>\n  <rect x=\"374\" y=\"967\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"967\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"981\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"996\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"1011\" x2=\"562\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"1007\" x2=\"20\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1007\" x2=\"562\" y2=\"1011\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1024\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"953\" x2=\"562\" y2=\"953\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"953\" x2=\"256\" y2=\"957\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"953\" x2=\"562\" y2=\"957\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"949\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"1057\" font-size=\"10\" fill=\"#6b7280\">アクセスポートの区間ではタグは付かない。図 2 と通信の中身は同じ。変わったのはスイッチの流す範囲とテーブルの区切り</text>\n<text x=\"20\" y=\"1073\" font-size=\"10\" fill=\"#6b7280\">実機の MAC テーブルは 1 枚の表に VLAN 番号の列があり、探すときはその列も一致させる。ここでは分かりやすさのため VLAN ごとに分けて描いている</text>\n</svg>","line":48,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1000ff","type":"heading","depth":2,"markdown":"## 図 2・図 4 との接続","text":"図 2・図 4 との接続","line":191,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_af21d3","type":"paragraph","markdown":"図 2 との違いは、スイッチの流す範囲と表の区切りだけです。通信の中身は図 2 と変わりません。アクセスポートの区間では、どの VLAN のものかを示す印は付かないからです。","text":"図 2 との違いは、スイッチの流す範囲と表の区切りだけです。通信の中身は図 2 と変わりません。アクセスポートの区間では、どの VLAN のものかを示す印は付かないからです。","line":193,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e6b720","type":"paragraph","markdown":"次の図 4 では、VLAN 10 の PC がスイッチ 2 台にまたがる場合を見ます。1 本のケーブルに複数の VLAN を通すため、そこで初めて印（タグ）が出てきます。","text":"次の図 4 では、VLAN 10 の PC がスイッチ 2 台にまたがる場合を見ます。1 本のケーブルに複数の VLAN を通すため、そこで初めて印（タグ）が出てきます。","line":195,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":197,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a6fe93","type":"list","markdown":"- この時点では PC-D も 192.168.10.0/24 のままです。分断しただけで、番地は割り直していません。VLAN をまたいで通すには、VLAN ごとに別のネットワークへ振り直します。振り直したあとの番地（VLAN 20 は 192.168.20.0/24）は次の図 4 から使い、VLAN をまたいで実際に通すのは VLAN 間ルーティングの図 6 です。\n- 実機の MAC アドレステーブルは 1 枚の表に VLAN 番号の列があり、探すときはその列も一致させます。図では分かりやすさのため VLAN ごとに分けて描いています。\n- 勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","text":"この時点では PC-D も 192.168.10.0/24 のままです。分断しただけで、番地は割り直していません。VLAN をまたいで通すには、VLAN ごとに別のネットワークへ振り直します。振り直したあとの番地（VLAN 20 は 192.168.20.0/24）は次の図 4 から使い、VLAN をまたいで実際に通すのは VLAN 間ルーティングの図 6 です。実機の MAC アドレステーブルは 1 枚の表に VLAN 番号の列があり、探すときはその列も一致させます。図では分かりやすさのため VLAN ごとに分けて描いています。勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","line":199,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":203,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b18a51","type":"list","markdown":"- 勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）\n- [インフラエキスパート: VLAN](https://www.infraexpert.com/study/vlanz1.html) — 論理的に LAN セグメントを分ける、VLAN ID ごとにブロードキャストを分ける、VLAN 間の通信には L3 機器が要る\n- [インフラエキスパート: VLAN - アクセスポート/トランクポート](https://www.infraexpert.com/study/vlanz2.html) — アクセスポートは単一の VLAN だけに属する\n- [インフラエキスパート: VLAN の目次](https://www.infraexpert.com/study/study26.html) — VLAN の各項目の入口","text":"勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）インフラエキスパート: VLAN — 論理的に LAN セグメントを分ける、VLAN ID ごとにブロードキャストを分ける、VLAN 間の通信には L3 機器が要るインフラエキスパート: VLAN - アクセスポート/トランクポート — アクセスポートは単一の VLAN だけに属するインフラエキスパート: VLAN の目次 — VLAN の各項目の入口","line":205,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":210,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1d9307","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n\n- [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers) — 連載の入口と読む順番\n\n- [ネットワーク\\_02\\_同じネットワークの中](/notes/nw-basics-02-same-network) — VLAN を付ける前の同じ構成","text":"ネットワーク_INDEX — 連載の目次ネットワーク_00_3層で言葉を置く — 連載の入口と読む順番ネットワーク_02_同じネットワークの中 — VLAN を付ける前の同じ構成","line":212,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}]}