{"schema":"article/1","id":"art_38f882beee","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"ルータの物理ポートは 1 つでよい","rawTitle":"ルータの物理ポートは 1 つでよい","slug":"nw-basics-06-inter-vlan","file":"ネットワーク_06_VLAN間ルーティング","relPath":"content/published/ネットワーク_06_VLAN間ルーティング.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","vlan","ルーティング","concept"],"summary":"VLAN 10 から VLAN 20 への通信を、ルータの物理ポート 1 つで通す形（Router on a Stick）を、サブインターフェースとタグの付け替えで 1 枚の図にする","date":"2026-09-14","updated":"2026-09-14","links":["nw-basics-index","nw-basics-00-three-layers","nw-basics-05-static-route","nw-basics-07-internet"],"blocks":[{"id":"blk_a640bd","type":"paragraph","markdown":"勉強会では、スイッチ 1 台に VLAN をいくつも同居させ、ルータ 1 台と 1 本の線でつなぎました。","text":"勉強会では、スイッチ 1 台に VLAN をいくつも同居させ、ルータ 1 台と 1 本の線でつなぎました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_58bc21","type":"paragraph","markdown":"資料の説明は、ルータの物理ポートをサブインターフェースに分け、それぞれにタグ番号と IP を設定する、という作業の並びだけでした。\n同じ 1 本のケーブルを通信が 2 回通るのに、なぜ VLAN が混ざらないのかは書いてありません。\nこの記事は、VLAN 10 の A から VLAN 20 の D への通信を 1 枚の図で追います。","text":"資料の説明は、ルータの物理ポートをサブインターフェースに分け、それぞれにタグ番号と IP を設定する、という作業の並びだけでした。\n同じ 1 本のケーブルを通信が 2 回通るのに、なぜ VLAN が混ざらないのかは書いてありません。\nこの記事は、VLAN 10 の A から VLAN 20 の D への通信を 1 枚の図で追います。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bb713c","type":"paragraph","markdown":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","text":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","line":8,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34ba84","type":"heading","depth":2,"markdown":"## 登場するもの","text":"登場するもの","line":11,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2c3f44","type":"heading","depth":4,"markdown":"#### サブインターフェース","text":"サブインターフェース","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_391bdc","type":"paragraph","markdown":"論理のものです。\nルータの物理ポート 1 つの上に、設定で増やしたインターフェースです。\nIP を持ち、ルーティングテーブルに行が載り、ARP もします。\n物理ポートとの違いは 2 つで、自分専用のケーブルを持たないこと（親の物理ポートと共用する）と、見分ける印としてタグ番号が結び付いていることです。","text":"論理のものです。\nルータの物理ポート 1 つの上に、設定で増やしたインターフェースです。\nIP を持ち、ルーティングテーブルに行が載り、ARP もします。\n物理ポートとの違いは 2 つで、自分専用のケーブルを持たないこと（親の物理ポートと共用する）と、見分ける印としてタグ番号が結び付いていることです。","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b1fb78","type":"heading","depth":4,"markdown":"#### 各 VLAN のデフォルトゲートウェイ","text":"各 VLAN のデフォルトゲートウェイ","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3bef1b","type":"paragraph","markdown":"サブインターフェースに付けた IP が、その VLAN の PC から見たデフォルトゲートウェイになります。\nVLAN 10 の出入口が 192.168.10.1、VLAN 20 の出入口が 192.168.20.1 です。","text":"サブインターフェースに付けた IP が、その VLAN の PC から見たデフォルトゲートウェイになります。\nVLAN 10 の出入口が 192.168.10.1、VLAN 20 の出入口が 192.168.20.1 です。","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bce6aa","type":"heading","depth":4,"markdown":"#### ルータ側の物理ポート","text":"ルータ側の物理ポート","line":25,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_43fec1","type":"paragraph","markdown":"トランクとして使います。\nスイッチ側のポート T もトランクです。\n1 本のケーブルに VLAN 10 と VLAN 20 の両方が乗ります。","text":"トランクとして使います。\nスイッチ側のポート T もトランクです。\n1 本のケーブルに VLAN 10 と VLAN 20 の両方が乗ります。","line":27,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":31,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_17ea7b","type":"list","markdown":"- サブインターフェース ⇄ VLAN 番号は手動です。設定でタグ番号を宣言します。\n- サブインターフェース ⇄ IP は手動です。\n- IP ⇄ ルーティングテーブルの行は自動です。IP を付けた時点で両 VLAN の行が載るので、手動の行は要りません。\n- ルーティングテーブルとタグは結び付きません。行は「宛先ネットワーク → 出すインターフェース」までで、タグはサブインターフェース側の持ち物です。","text":"サブインターフェース ⇄ VLAN 番号は手動です。設定でタグ番号を宣言します。サブインターフェース ⇄ IP は手動です。IP ⇄ ルーティングテーブルの行は自動です。IP を付けた時点で両 VLAN の行が載るので、手動の行は要りません。ルーティングテーブルとタグは結び付きません。行は「宛先ネットワーク → 出すインターフェース」までで、タグはサブインターフェース側の持ち物です。","line":33,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_52529b","type":"paragraph","markdown":"A（VLAN 10・192.168.10.10）から D（VLAN 20・192.168.20.30）へ送るときです。","text":"A（VLAN 10・192.168.10.10）から D（VLAN 20・192.168.20.30）へ送るときです。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bc27a1","type":"paragraph","markdown":"① A は宛先がネットワーク外なので、デフォルトゲートウェイ 192.168.10.1 へ送ります。MAC はルータの物理ポートあてで、ARP は VLAN 10 の中で行われます。","text":"① A は宛先がネットワーク外なので、デフォルトゲートウェイ 192.168.10.1 へ送ります。MAC はルータの物理ポートあてで、ARP は VLAN 10 の中で行われます。","line":42,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c61ad8","type":"paragraph","markdown":"② スイッチはトランクから出すのでタグ「10」を付けます。","text":"② スイッチはトランクから出すのでタグ「10」を付けます。","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e28e1c","type":"paragraph","markdown":"③ ルータはタグ 10 を見て Gi8.10 で受け取り、宛先 IP をテーブルで探して Gi8.20 と決めます。MAC を D あてに付け替えます。","text":"③ ルータはタグ 10 を見て Gi8.10 で受け取り、宛先 IP をテーブルで探して Gi8.20 と決めます。MAC を D あてに付け替えます。","line":46,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bc09d2","type":"paragraph","markdown":"④ 同じ物理ポートから、今度はタグ「20」を付けて出します。","text":"④ 同じ物理ポートから、今度はタグ「20」を付けて出します。","line":48,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8ff724","type":"paragraph","markdown":"⑤ スイッチはタグ 20 を見て VLAN 20 のポートへ流し、タグを外して D に渡します。","text":"⑤ スイッチはタグ 20 を見て VLAN 20 のポートへ流し、タグを外して D に渡します。","line":50,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b04118","type":"paragraph","markdown":"同じ 1 本のケーブルを、ルータへ入るときはタグ 10、出ていくときはタグ 20 で 2 回通ります。\nルータの物理ポートが 1 つで足りるのは、通るたびにタグで VLAN を見分けられるからです。","text":"同じ 1 本のケーブルを、ルータへ入るときはタグ 10、出ていくときはタグ 20 で 2 回通ります。\nルータの物理ポートが 1 つで足りるのは、通るたびにタグで VLAN を見分けられるからです。","line":52,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_95ce66","type":"heading","depth":2,"markdown":"## 図 6","text":"図 6","line":55,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2abd90","type":"paragraph","markdown":"図の上半分が構成図とフローの番号、下半分が各テーブルの推移と通信の中身の推移です。","text":"図の上半分が構成図とフローの番号、下半分が各テーブルの推移と通信の中身の推移です。","line":57,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8c6383","type":"html","markdown":"<svg viewBox=\"0 0 900 1209\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（VLAN 間ルーティング・Router on a Stick）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"1209\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN 間ルーティング：A（VLAN 10）→ D（VLAN 20）を、ルータの物理ポート 1 つで通す</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">ルータの物理ポート 1 つを、タグ番号ごとの「サブインターフェース」に分ける。それぞれが VLAN の出入口（デフォルトゲートウェイ）になる</text>\n  <rect x=\"560\" y=\"70\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"572\" y=\"90\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータのルーティングテーブル</text>\n  <text x=\"572\" y=\"110\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24　→ Gi8.10（自動）</text>\n  <text x=\"572\" y=\"126\" font-size=\"10\" fill=\"#374151\">192.168.20.0/24　→ Gi8.20（自動）</text>\n  <text x=\"572\" y=\"148\" font-size=\"10\" fill=\"#0a7aff\" font-weight=\"700\">IP を付けた時点で自動で載る。手動の行は不要</text>\n  <rect x=\"560\" y=\"230\" width=\"280\" height=\"130\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"828\" y=\"252\" text-anchor=\"end\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <rect x=\"600\" y=\"264\" width=\"150\" height=\"34\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"610\" y=\"278\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">Gi8.10（タグ 10 用）</text>\n  <text x=\"610\" y=\"292\" font-size=\"10\" fill=\"#374151\">IP 192.168.10.1</text>\n  <rect x=\"600\" y=\"306\" width=\"150\" height=\"34\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"610\" y=\"320\" font-size=\"10\" font-weight=\"700\" fill=\"#b45309\">Gi8.20（タグ 20 用）</text>\n  <text x=\"610\" y=\"334\" font-size=\"10\" fill=\"#374151\">IP 192.168.20.1</text>\n  <text x=\"760\" y=\"282\" font-size=\"9\" fill=\"#6b7280\">サブインター</text>\n  <text x=\"760\" y=\"294\" font-size=\"9\" fill=\"#6b7280\">フェース</text>\n  <text x=\"760\" y=\"308\" font-size=\"9\" fill=\"#6b7280\">（論理・手動で作る）</text>\n  <line x1=\"569\" y1=\"281\" x2=\"600\" y2=\"281\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <line x1=\"569\" y1=\"323\" x2=\"600\" y2=\"323\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <rect x=\"551\" y=\"286\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#1f2937\" stroke-width=\"1.5\"/><text x=\"560\" y=\"299\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">Gi8</text>\n  <text x=\"560\" y=\"378\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">物理ポート 1 つ（トランク）</text>\n  <rect x=\"60\" y=\"250\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"72\" y=\"272\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"72\" y=\"294\" font-size=\"11\" fill=\"#374151\">ポート 1 は VLAN 10、ポート 2 は VLAN 20</text>\n  <text x=\"72\" y=\"312\" font-size=\"11\" fill=\"#374151\">ポート T はトランク（VLAN 10・20 を通す）</text>\n  <rect x=\"121\" y=\"331\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"130\" y=\"344\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">1</text>\n  <rect x=\"221\" y=\"331\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"230\" y=\"344\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">2</text>\n  <rect x=\"391\" y=\"286\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#1f2937\" stroke-width=\"1.5\"/><text x=\"400\" y=\"299\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">T</text>\n  <line x1=\"409\" y1=\"295\" x2=\"551\" y2=\"295\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"130\" y1=\"349\" x2=\"130\" y2=\"430\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"230\" y1=\"349\" x2=\"230\" y2=\"430\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"85\" y=\"430\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"130\" y=\"450\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"130\" y=\"466\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"130\" y=\"480\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"185\" y=\"430\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"230\" y=\"450\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-D</text>\n  <text x=\"230\" y=\"466\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.20.30</text>\n  <text x=\"230\" y=\"480\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.20.1</text>\n  <line x1=\"116\" y1=\"430\" x2=\"116\" y2=\"350\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"111,351 121,351 116,342\" fill=\"#0a7aff\"/>\n  <circle cx=\"116\" cy=\"386\" r=\"9\" fill=\"#0a7aff\"/><text x=\"116\" y=\"390\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"409\" y1=\"272\" x2=\"543\" y2=\"272\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"542,267 542,277 551,272\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"272\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"276\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <rect x=\"455\" y=\"256\" width=\"70\" height=\"20\" rx=\"4\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"490\" y=\"270\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">タグ「10」</text>\n  <line x1=\"585\" y1=\"298\" x2=\"585\" y2=\"306\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <polygon points=\"580,304 590,304 585,312\" fill=\"#0a7aff\"/>\n  <circle cx=\"585\" cy=\"253\" r=\"9\" fill=\"#0a7aff\"/><text x=\"585\" y=\"257\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <text x=\"560\" y=\"220\" font-size=\"10\" fill=\"#374151\">③ ルータは IP を見て、テーブルで Gi8.20 と決める</text>\n  <line x1=\"551\" y1=\"318\" x2=\"417\" y2=\"318\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"418,313 418,323 409,318\" fill=\"#b45309\"/>\n  <circle cx=\"440\" cy=\"318\" r=\"9\" fill=\"#b45309\"/><text x=\"440\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">4</text>\n  <rect x=\"455\" y=\"322\" width=\"70\" height=\"20\" rx=\"4\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"490\" y=\"336\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#b45309\">タグ「20」</text>\n  <line x1=\"244\" y1=\"349\" x2=\"244\" y2=\"418\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"239,417 249,417 244,426\" fill=\"#b45309\"/>\n  <circle cx=\"244\" cy=\"386\" r=\"9\" fill=\"#b45309\"/><text x=\"244\" y=\"390\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <text x=\"20\" y=\"520\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"20\" y=\"540\" font-size=\"11\" fill=\"#374151\">① A は宛先がネットワーク外なのでデフォルトゲートウェイ 192.168.10.1 へ送る（MAC はルータの Gi8 あて。ARP は VLAN 10 の中で行われる）</text>\n  <text x=\"20\" y=\"558\" font-size=\"11\" fill=\"#374151\">② スイッチはトランクから出すのでタグ「10」を付ける　③ ルータはタグ 10 → Gi8.10 で受け取り、宛先 IP をテーブルで探して Gi8.20 と決める。MAC を D あてに付け替える</text>\n  <text x=\"20\" y=\"576\" font-size=\"11\" fill=\"#374151\">④ 同じ物理ポート Gi8 から、今度はタグ「20」を付けて出す　⑤ スイッチはタグ 20 → VLAN 20 のポート 2 へ。タグを外して D に渡す</text>\n  <text x=\"20\" y=\"596\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">同じ 1 本のケーブルを、ルータへ入るときはタグ 10、出ていくときはタグ 20 で 2 回通る。ルータの物理ポートは 1 つでよい</text>\n<line x1=\"20\" y1=\"608\" x2=\"880\" y2=\"608\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"630\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 10）</text>\n  <text x=\"30\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1（A の要求から）</text>\n  <text x=\"30\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC R1-Gi8 → ポート T（応答から）</text>\n  <rect x=\"310\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 20）</text>\n  <text x=\"320\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC R1-Gi8 → ポート T（ルータの要求から）</text>\n  <text x=\"320\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC D → ポート 2（D の応答から）</text>\n  <rect x=\"600\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ARP テーブル</text>\n  <text x=\"610\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A（Gi8.10・要求を受けて）</text>\n  <text x=\"610\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.20.30 → MAC D（Gi8.20・応答から）</text>\n  <rect x=\"20\" y=\"712\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"728\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"30\" y=\"744\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.1 → MAC R1-Gi8</text>\n  <rect x=\"310\" y=\"712\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"728\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-D: ARP テーブル</text>\n  <text x=\"320\" y=\"744\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.20.1 → MAC R1-Gi8（要求を受けて）</text>\n<text x=\"20\" y=\"797\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"847\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ（アクセス区間・タグなし）</text>\n  <rect x=\"20\" y=\"853\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"138\" y=\"853\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"853\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"374\" y=\"853\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"853\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"897\" x2=\"562\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"893\" x2=\"20\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"893\" x2=\"562\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"910\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"839\" x2=\"562\" y2=\"839\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"839\" x2=\"256\" y2=\"843\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"839\" x2=\"562\" y2=\"843\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"835\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n  <text x=\"20\" y=\"943\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → ルータ（トランク・タグ 10 を挿入）</text>\n  <rect x=\"20\" y=\"949\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"138\" y=\"949\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"949\" width=\"84\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"298.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">タグ（VLAN 番号）</text>\n  <text x=\"298.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">10</text>\n  <rect x=\"340\" y=\"949\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"399.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"399.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"458\" y=\"949\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"517.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"517.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"576\" y=\"949\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <text x=\"20\" y=\"1003\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ ルータの中</text>\n  <text x=\"20\" y=\"1023\" font-size=\"10\" fill=\"#6b7280\">タグ 10 → Gi8.10 で受けてタグを外す。宛先 IP をテーブルで探して Gi8.20 と決める。D の MAC を VLAN 20 の中で ARP で引く</text>\n  <text x=\"20\" y=\"1047\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ ルータ → スイッチ（トランク・タグ 20 を挿入・MAC を付け替え）</text>\n  <rect x=\"20\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC D</text>\n  <rect x=\"138\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"256\" y=\"1053\" width=\"84\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"298.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">タグ（VLAN 番号）</text>\n  <text x=\"298.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">20</text>\n  <rect x=\"340\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"399.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"399.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"458\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"517.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"517.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"576\" y=\"1053\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <text x=\"20\" y=\"1107\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ スイッチ → D（アクセス区間・タグを除去）</text>\n  <rect x=\"20\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC D</text>\n  <rect x=\"138\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"256\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"374\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"1113\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n<text x=\"20\" y=\"1167\" font-size=\"10\" fill=\"#6b7280\">サブインターフェースは既定で物理ポートと同じ MAC を使うので、両 VLAN のテーブルに同じ MAC R1-Gi8 が載る。IP は変わらず、MAC とタグが付け替わる</text>\n<text x=\"20\" y=\"1183\" font-size=\"10\" fill=\"#6b7280\">ARP は VLAN ごとに別々に行われる（① は VLAN 10 の中、③ は VLAN 20 の中）</text>\n</svg>","text":"<svg viewBox=\"0 0 900 1209\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（VLAN 間ルーティング・Router on a Stick）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"1209\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VLAN 間ルーティング：A（VLAN 10）→ D（VLAN 20）を、ルータの物理ポート 1 つで通す</text>\n  <text x=\"20\" y=\"50\" font-size=\"11\" fill=\"#6b7280\">ルータの物理ポート 1 つを、タグ番号ごとの「サブインターフェース」に分ける。それぞれが VLAN の出入口（デフォルトゲートウェイ）になる</text>\n  <rect x=\"560\" y=\"70\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"572\" y=\"90\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータのルーティングテーブル</text>\n  <text x=\"572\" y=\"110\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24　→ Gi8.10（自動）</text>\n  <text x=\"572\" y=\"126\" font-size=\"10\" fill=\"#374151\">192.168.20.0/24　→ Gi8.20（自動）</text>\n  <text x=\"572\" y=\"148\" font-size=\"10\" fill=\"#0a7aff\" font-weight=\"700\">IP を付けた時点で自動で載る。手動の行は不要</text>\n  <rect x=\"560\" y=\"230\" width=\"280\" height=\"130\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"828\" y=\"252\" text-anchor=\"end\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <rect x=\"600\" y=\"264\" width=\"150\" height=\"34\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"610\" y=\"278\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">Gi8.10（タグ 10 用）</text>\n  <text x=\"610\" y=\"292\" font-size=\"10\" fill=\"#374151\">IP 192.168.10.1</text>\n  <rect x=\"600\" y=\"306\" width=\"150\" height=\"34\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"610\" y=\"320\" font-size=\"10\" font-weight=\"700\" fill=\"#b45309\">Gi8.20（タグ 20 用）</text>\n  <text x=\"610\" y=\"334\" font-size=\"10\" fill=\"#374151\">IP 192.168.20.1</text>\n  <text x=\"760\" y=\"282\" font-size=\"9\" fill=\"#6b7280\">サブインター</text>\n  <text x=\"760\" y=\"294\" font-size=\"9\" fill=\"#6b7280\">フェース</text>\n  <text x=\"760\" y=\"308\" font-size=\"9\" fill=\"#6b7280\">（論理・手動で作る）</text>\n  <line x1=\"569\" y1=\"281\" x2=\"600\" y2=\"281\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <line x1=\"569\" y1=\"323\" x2=\"600\" y2=\"323\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <rect x=\"551\" y=\"286\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#1f2937\" stroke-width=\"1.5\"/><text x=\"560\" y=\"299\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">Gi8</text>\n  <text x=\"560\" y=\"378\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">物理ポート 1 つ（トランク）</text>\n  <rect x=\"60\" y=\"250\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"72\" y=\"272\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"72\" y=\"294\" font-size=\"11\" fill=\"#374151\">ポート 1 は VLAN 10、ポート 2 は VLAN 20</text>\n  <text x=\"72\" y=\"312\" font-size=\"11\" fill=\"#374151\">ポート T はトランク（VLAN 10・20 を通す）</text>\n  <rect x=\"121\" y=\"331\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"130\" y=\"344\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">1</text>\n  <rect x=\"221\" y=\"331\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"230\" y=\"344\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">2</text>\n  <rect x=\"391\" y=\"286\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#1f2937\" stroke-width=\"1.5\"/><text x=\"400\" y=\"299\" text-anchor=\"middle\" font-size=\"9\" fill=\"#1f2937\">T</text>\n  <line x1=\"409\" y1=\"295\" x2=\"551\" y2=\"295\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"130\" y1=\"349\" x2=\"130\" y2=\"430\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <line x1=\"230\" y1=\"349\" x2=\"230\" y2=\"430\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"85\" y=\"430\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"130\" y=\"450\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"130\" y=\"466\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"130\" y=\"480\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"185\" y=\"430\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"230\" y=\"450\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-D</text>\n  <text x=\"230\" y=\"466\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.20.30</text>\n  <text x=\"230\" y=\"480\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.20.1</text>\n  <line x1=\"116\" y1=\"430\" x2=\"116\" y2=\"350\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"111,351 121,351 116,342\" fill=\"#0a7aff\"/>\n  <circle cx=\"116\" cy=\"386\" r=\"9\" fill=\"#0a7aff\"/><text x=\"116\" y=\"390\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"409\" y1=\"272\" x2=\"543\" y2=\"272\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"542,267 542,277 551,272\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"272\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"276\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <rect x=\"455\" y=\"256\" width=\"70\" height=\"20\" rx=\"4\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"490\" y=\"270\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">タグ「10」</text>\n  <line x1=\"585\" y1=\"298\" x2=\"585\" y2=\"306\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <polygon points=\"580,304 590,304 585,312\" fill=\"#0a7aff\"/>\n  <circle cx=\"585\" cy=\"253\" r=\"9\" fill=\"#0a7aff\"/><text x=\"585\" y=\"257\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <text x=\"560\" y=\"220\" font-size=\"10\" fill=\"#374151\">③ ルータは IP を見て、テーブルで Gi8.20 と決める</text>\n  <line x1=\"551\" y1=\"318\" x2=\"417\" y2=\"318\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"418,313 418,323 409,318\" fill=\"#b45309\"/>\n  <circle cx=\"440\" cy=\"318\" r=\"9\" fill=\"#b45309\"/><text x=\"440\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">4</text>\n  <rect x=\"455\" y=\"322\" width=\"70\" height=\"20\" rx=\"4\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"490\" y=\"336\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#b45309\">タグ「20」</text>\n  <line x1=\"244\" y1=\"349\" x2=\"244\" y2=\"418\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"239,417 249,417 244,426\" fill=\"#b45309\"/>\n  <circle cx=\"244\" cy=\"386\" r=\"9\" fill=\"#b45309\"/><text x=\"244\" y=\"390\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <text x=\"20\" y=\"520\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"20\" y=\"540\" font-size=\"11\" fill=\"#374151\">① A は宛先がネットワーク外なのでデフォルトゲートウェイ 192.168.10.1 へ送る（MAC はルータの Gi8 あて。ARP は VLAN 10 の中で行われる）</text>\n  <text x=\"20\" y=\"558\" font-size=\"11\" fill=\"#374151\">② スイッチはトランクから出すのでタグ「10」を付ける　③ ルータはタグ 10 → Gi8.10 で受け取り、宛先 IP をテーブルで探して Gi8.20 と決める。MAC を D あてに付け替える</text>\n  <text x=\"20\" y=\"576\" font-size=\"11\" fill=\"#374151\">④ 同じ物理ポート Gi8 から、今度はタグ「20」を付けて出す　⑤ スイッチはタグ 20 → VLAN 20 のポート 2 へ。タグを外して D に渡す</text>\n  <text x=\"20\" y=\"596\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">同じ 1 本のケーブルを、ルータへ入るときはタグ 10、出ていくときはタグ 20 で 2 回通る。ルータの物理ポートは 1 つでよい</text>\n<line x1=\"20\" y1=\"608\" x2=\"880\" y2=\"608\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"630\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">各テーブルの推移（○番のフローで追加された行。青字）</text>\n  <rect x=\"20\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 10）</text>\n  <text x=\"30\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC A → ポート 1（A の要求から）</text>\n  <text x=\"30\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">① 追加: MAC R1-Gi8 → ポート T（応答から）</text>\n  <rect x=\"310\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC テーブル（VLAN 20）</text>\n  <text x=\"320\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC R1-Gi8 → ポート T（ルータの要求から）</text>\n  <text x=\"320\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: MAC D → ポート 2（D の応答から）</text>\n  <rect x=\"600\" y=\"642\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"658\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ARP テーブル</text>\n  <text x=\"610\" y=\"674\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.10 → MAC A（Gi8.10・要求を受けて）</text>\n  <text x=\"610\" y=\"689\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.20.30 → MAC D（Gi8.20・応答から）</text>\n  <rect x=\"20\" y=\"712\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"728\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"30\" y=\"744\" font-size=\"10\" fill=\"#0a7aff\">① 追加: 192.168.10.1 → MAC R1-Gi8</text>\n  <rect x=\"310\" y=\"712\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"728\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-D: ARP テーブル</text>\n  <text x=\"320\" y=\"744\" font-size=\"10\" fill=\"#0a7aff\">③ 追加: 192.168.20.1 → MAC R1-Gi8（要求を受けて）</text>\n<text x=\"20\" y=\"797\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"847\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① A → スイッチ（アクセス区間・タグなし）</text>\n  <rect x=\"20\" y=\"853\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"138\" y=\"853\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"853\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"374\" y=\"853\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"853\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"867\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"882\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"897\" x2=\"562\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"893\" x2=\"20\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"893\" x2=\"562\" y2=\"897\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"910\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"839\" x2=\"562\" y2=\"839\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"839\" x2=\"256\" y2=\"843\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"839\" x2=\"562\" y2=\"843\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"835\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n  <text x=\"20\" y=\"943\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② スイッチ → ルータ（トランク・タグ 10 を挿入）</text>\n  <rect x=\"20\" y=\"949\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"138\" y=\"949\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"949\" width=\"84\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"298.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">タグ（VLAN 番号）</text>\n  <text x=\"298.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">10</text>\n  <rect x=\"340\" y=\"949\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"399.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"399.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"458\" y=\"949\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"517.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"517.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"576\" y=\"949\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"963\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"978\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <text x=\"20\" y=\"1003\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ ルータの中</text>\n  <text x=\"20\" y=\"1023\" font-size=\"10\" fill=\"#6b7280\">タグ 10 → Gi8.10 で受けてタグを外す。宛先 IP をテーブルで探して Gi8.20 と決める。D の MAC を VLAN 20 の中で ARP で引く</text>\n  <text x=\"20\" y=\"1047\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ ルータ → スイッチ（トランク・タグ 20 を挿入・MAC を付け替え）</text>\n  <rect x=\"20\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC D</text>\n  <rect x=\"138\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"256\" y=\"1053\" width=\"84\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"298.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">タグ（VLAN 番号）</text>\n  <text x=\"298.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">20</text>\n  <rect x=\"340\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"399.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"399.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"458\" y=\"1053\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"517.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"517.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"576\" y=\"1053\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"1067\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"1082\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <text x=\"20\" y=\"1107\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ スイッチ → D（アクセス区間・タグを除去）</text>\n  <rect x=\"20\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC D</text>\n  <rect x=\"138\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi8</text>\n  <rect x=\"256\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.20.30</text>\n  <rect x=\"374\" y=\"1113\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"1113\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"1127\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"1142\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n<text x=\"20\" y=\"1167\" font-size=\"10\" fill=\"#6b7280\">サブインターフェースは既定で物理ポートと同じ MAC を使うので、両 VLAN のテーブルに同じ MAC R1-Gi8 が載る。IP は変わらず、MAC とタグが付け替わる</text>\n<text x=\"20\" y=\"1183\" font-size=\"10\" fill=\"#6b7280\">ARP は VLAN ごとに別々に行われる（① は VLAN 10 の中、③ は VLAN 20 の中）</text>\n</svg>","line":59,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_49f300","type":"heading","depth":2,"markdown":"## 図 4・図 5 との接続","text":"図 4・図 5 との接続","line":223,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_32b4ea","type":"paragraph","markdown":"図 4 では、タグはスイッチとスイッチの間で付き、アクセスポートで外れました。\nこの図では、その相手がスイッチではなくルータになります。\nルータは受け取った時点でタグを外し、出すときに別の番号のタグを付けます。","text":"図 4 では、タグはスイッチとスイッチの間で付き、アクセスポートで外れました。\nこの図では、その相手がスイッチではなくルータになります。\nルータは受け取った時点でタグを外し、出すときに別の番号のタグを付けます。","line":225,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8bb84e","type":"paragraph","markdown":"図 5 の ②「テーブルで一致する行を探す」は、この図の ③ と同じ動きです。\n違うのは出口が物理ポート（Gi1）ではなくサブインターフェース（Gi8.20）だということだけです。\nルータから見れば、サブインターフェースは物理ポートと同じ顔をしています。\nタグの付け外しはインターフェース側で行われ、経路を探す前と後に済みます。","text":"図 5 の ②「テーブルで一致する行を探す」は、この図の ③ と同じ動きです。\n違うのは出口が物理ポート（Gi1）ではなくサブインターフェース（Gi8.20）だということだけです。\nルータから見れば、サブインターフェースは物理ポートと同じ顔をしています。\nタグの付け外しはインターフェース側で行われ、経路を探す前と後に済みます。","line":229,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":234,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e19b47","type":"list","markdown":"- 図の注にある「サブインターフェースは既定で物理ポートと同じ MAC を使う」は、一次資料で確認していないので未検証です。この前提のため、図では両 VLAN の MAC テーブルに同じ MAC が載っています。\n- ARP は VLAN ごとに別々に行われます。① は VLAN 10 の中、③ は VLAN 20 の中です。VLAN をまたいで ARP は流れません。\n- VLAN 間を通す機器は、ルータのほかに L3 スイッチでもかまいません（出典のページに両方が挙がっています）。この図はルータ 1 台の形だけを扱います。","text":"図の注にある「サブインターフェースは既定で物理ポートと同じ MAC を使う」は、一次資料で確認していないので未検証です。この前提のため、図では両 VLAN の MAC テーブルに同じ MAC が載っています。ARP は VLAN ごとに別々に行われます。① は VLAN 10 の中、③ は VLAN 20 の中です。VLAN をまたいで ARP は流れません。VLAN 間を通す機器は、ルータのほかに L3 スイッチでもかまいません（出典のページに両方が挙がっています）。この図はルータ 1 台の形だけを扱います。","line":236,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":240,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_04fc59","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [インフラエキスパート: VLAN 間ルーティング](https://www.infraexpert.com/study/vlanz8.html) — L2 スイッチだけでは VLAN 間の通信ができず、ルータや L3 スイッチが要る。ルータの物理インターフェースを論理的に分割してサブインターフェースを作り、VLAN ごとに IP アドレスを設定する\n- [インフラエキスパート: VLAN - アクセスポート/トランクポート](https://www.infraexpert.com/study/vlanz2.html) — IEEE 802.1Q のタグは送信元 MAC アドレスとタイプフィールドの間に 4 バイト差し込まれる","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）インフラエキスパート: VLAN 間ルーティング — L2 スイッチだけでは VLAN 間の通信ができず、ルータや L3 スイッチが要る。ルータの物理インターフェースを論理的に分割してサブインターフェースを作り、VLAN ごとに IP アドレスを設定するインフラエキスパート: VLAN - アクセスポート/トランクポート — IEEE 802.1Q のタグは送信元 MAC アドレスとタイプフィールドの間に 4 バイト差し込まれる","line":242,"sources":["src_1","src_2"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":246,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b6aae4","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n\n- 連載の入口: [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers)（`/notes/nw-basics-00-three-layers`）\n\n- 前の記事（図 5）: [ネットワーク\\_05\\_行きと帰り](/notes/nw-basics-05-static-route)（`/notes/nw-basics-05-static-route`）\n\n- 次の記事（図 7）: [ネットワーク\\_07\\_インターネットを挟む](/notes/nw-basics-07-internet)（`/notes/nw-basics-07-internet`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）前の記事（図 5）: ネットワーク_05_行きと帰り（/notes/nw-basics-05-static-route）次の記事（図 7）: ネットワーク_07_インターネットを挟む（/notes/nw-basics-07-internet）","line":248,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.infraexpert.com/study/vlanz8.html","title":"インフラエキスパート: VLAN 間ルーティング","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.infraexpert.com/study/vlanz2.html","title":"インフラエキスパート: VLAN - アクセスポート/トランクポート","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}