{"articleId":"art_de92a369da","slug":"nw-basics-01-baseline","title":"人が決めるのは IP 側だけ、MAC 側は機器が結び付ける","version":1,"area":"tech","topic":"ネットワーク","tags":["ネットワーク","ルーティング","arp","concept"],"date":"2026-09-14","updated":"2026-09-14","records":[{"id":"rev_07b794456d","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 で取得し、記載内容（MAC アドレステーブルの学習とフラッディングとフィルタリング、ルータが宛先 IP で経路を決め MAC を書き換えること、スイッチポートとルーテッドポートと SVI の区分）を確認した。ルーティングテーブルの 3 文は壁打ちで本人が確定した文をそのまま使った。MAC アドレステーブルのエージング既定値は Catalyst の 300 秒のみ出典があり、他機種は未確認と本文に明記。守秘検査（人名、社名、会場名、地名、連絡先の機械検査）で該当なし","status":"open","source":"frontmatter"}],"blocks":[{"id":"blk_21b6f3","type":"paragraph","markdown":"実機を触る勉強会に出ました。設定は入り、ping も通りました。それでも終わってみると、自分の言葉で説明できません。つまずいていたのは原理ではなく、その前の言葉でした。","text":"実機を触る勉強会に出ました。設定は入り、ping も通りました。それでも終わってみると、自分の言葉で説明できません。つまずいていたのは原理ではなく、その前の言葉でした。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3b239a","type":"paragraph","markdown":"そこで、ネットワークの言葉を 3 層に置き直すことにしました。もの（物理は箱、物理ポート、ケーブル、MAC アドレス。論理は IP のネットワーク、インターフェース、各テーブル）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 つです。","text":"そこで、ネットワークの言葉を 3 層に置き直すことにしました。もの（物理は箱、物理ポート、ケーブル、MAC アドレス。論理は IP のネットワーク、インターフェース、各テーブル）、結びつき（手動、自動、固定）、通信フロー（1 本の通信がこれらを順に通る流れ）の 3 つです。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_298f27","type":"paragraph","markdown":"この 1 本目は、いちばん単純な構成で 3 層の土台をそろえます。","text":"この 1 本目は、いちばん単純な構成で 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_1618a2","type":"paragraph","markdown":"差込口そのものは物理ポート、設定を付ける対象はインターフェースと呼び分けます。図の Gi0 はインターフェースの名前です。","text":"差込口そのものは物理ポート、設定を付ける対象はインターフェースと呼び分けます。図の Gi0 はインターフェースの名前です。","line":10,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a0f1ea","type":"heading","depth":4,"markdown":"#### PC","text":"PC","line":12,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_80aa9d","type":"paragraph","markdown":"PC が持っているのは IP アドレスとサブネットマスク、デフォルトゲートウェイ、ARP テーブルです。宛先が同じネットワークなら直接送り、違えばデフォルトゲートウェイへ渡します。同じネットワークとは、ルータを通さず直接届く範囲のことです。","text":"PC が持っているのは IP アドレスとサブネットマスク、デフォルトゲートウェイ、ARP テーブルです。宛先が同じネットワークなら直接送り、違えばデフォルトゲートウェイへ渡します。同じネットワークとは、ルータを通さず直接届く範囲のことです。","line":14,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_4a333f","type":"heading","depth":4,"markdown":"#### スイッチ","text":"スイッチ","line":16,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bc90bb","type":"paragraph","markdown":"スイッチは物理ポートを多数持ち、MAC アドレステーブルを持ちます。見るのは MAC アドレスで、IP は見ません。","text":"スイッチは物理ポートを多数持ち、MAC アドレステーブルを持ちます。見るのは MAC アドレスで、IP は見ません。","line":18,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_235cce","type":"heading","depth":4,"markdown":"#### ルータ","text":"ルータ","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_6cb16b","type":"paragraph","markdown":"ルータはインターフェースごとに IP アドレスと MAC アドレスを持ち、ルーティングテーブルと ARP テーブルを持ちます。","text":"ルータはインターフェースごとに IP アドレスと MAC アドレスを持ち、ルーティングテーブルと ARP テーブルを持ちます。","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2d9376","type":"paragraph","markdown":"パケットの先頭には、送信元 IP・宛先 IP・寿命（TTL）などが書いてあります。どの経路を通るかは書いてありません。ルータは自分のルーティングテーブルの中から宛先 IP に一致する行を探し、パケットの次の渡し先となるルータを決めます。","text":"パケットの先頭には、送信元 IP・宛先 IP・寿命（TTL）などが書いてあります。どの経路を通るかは書いてありません。ルータは自分のルーティングテーブルの中から宛先 IP に一致する行を探し、パケットの次の渡し先となるルータを決めます。","line":24,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e4918d","type":"heading","depth":4,"markdown":"#### 手動","text":"手動","line":28,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_774a06","type":"paragraph","markdown":"ケーブルをどこに挿すか、PC の IP アドレスとサブネットマスク、デフォルトゲートウェイ、ルータのインターフェースの IP アドレス。ここは人が決めます。","text":"ケーブルをどこに挿すか、PC の IP アドレスとサブネットマスク、デフォルトゲートウェイ、ルータのインターフェースの IP アドレス。ここは人が決めます。","line":30,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cf7ae4","type":"heading","depth":4,"markdown":"#### 固定","text":"固定","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b7fbdc","type":"paragraph","markdown":"物理ポートと MAC アドレスの対応は製造時に決まっていて、動きません。","text":"物理ポートと MAC アドレスの対応は製造時に決まっていて、動きません。","line":34,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_760aa7","type":"heading","depth":4,"markdown":"#### 自動","text":"自動","line":36,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cff97e","type":"paragraph","markdown":"ルータのポートに IP アドレスを設定すると、そのアドレスを含むネットワークの行が、ルーティングテーブルに自動で追加されます。ポートに 192.168.10.1/24 を設定すれば、192.168.10.0/24 の行が載ります。この宛先への経路は手動追加なしでわかります。","text":"ルータのポートに IP アドレスを設定すると、そのアドレスを含むネットワークの行が、ルーティングテーブルに自動で追加されます。ポートに 192.168.10.1/24 を設定すれば、192.168.10.0/24 の行が載ります。この宛先への経路は手動追加なしでわかります。","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bffa37","type":"paragraph","markdown":"残りの 2 つ、ARP テーブルと MAC アドレステーブルは、通信が流れてから育ちます。図の時点ではどちらも空です。","text":"残りの 2 つ、ARP テーブルと MAC アドレステーブルは、通信が流れてから育ちます。図の時点ではどちらも空です。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cbf916","type":"paragraph","markdown":"この層をひとことで言うと、「人が決めるのは IP 側だけ。MAC 側は機器が勝手に結び付ける」です。自分のポートから載る行以外をルーティングテーブルに載せる方法は、ルータを 2 台またぐ図 5 で扱います。","text":"この層をひとことで言うと、「人が決めるのは IP 側だけ。MAC 側は機器が勝手に結び付ける」です。自分のポートから載る行以外をルーティングテーブルに載せる方法は、ルータを 2 台またぐ図 5 で扱います。","line":42,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a41119","type":"paragraph","markdown":"この図にはフローがありません。1 本も流れていない状態を先に置いています。","text":"この図にはフローがありません。1 本も流れていない状態を先に置いています。","line":46,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_105e8e","type":"paragraph","markdown":"PC が最初にすることは、宛先が同じネットワークの中かどうかを IP アドレスとサブネットマスクで判断することです。中なら相手へ直接、外ならデフォルトゲートウェイへ渡します。この分かれ道が、以降の図を二手に分けます。","text":"PC が最初にすることは、宛先が同じネットワークの中かどうかを IP アドレスとサブネットマスクで判断することです。中なら相手へ直接、外ならデフォルトゲートウェイへ渡します。この分かれ道が、以降の図を二手に分けます。","line":48,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_aca2a1","type":"paragraph","markdown":"まだ流れていないので、ルーティングテーブルには自分のインターフェースから載った行しかありません。","text":"まだ流れていないので、ルーティングテーブルには自分のインターフェースから載った行しかありません。","line":50,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2718f9","type":"heading","depth":2,"markdown":"## 図 1","text":"図 1","line":52,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_7f34be","type":"paragraph","markdown":"実線がケーブル、小さな四角が物理ポート、点線の枠が IP のネットワークの範囲で、下の帯はこの時点の各テーブルと通信の中身の一般形です。","text":"実線がケーブル、小さな四角が物理ポート、点線の枠が IP のネットワークの範囲で、下の帯はこの時点の各テーブルと通信の中身の一般形です。","line":54,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fcd5cf","type":"html","markdown":"<svg viewBox=\"0 0 900 819\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（フローなし）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"819\" fill=\"#fbfcfe\"/>\n  <rect x=\"20\" y=\"40\" width=\"512\" height=\"330\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"34\" y=\"62\" font-size=\"13\" font-weight=\"700\" fill=\"#6b7280\">ネットワーク 192.168.10.0/24（論理）</text>\n  <rect x=\"648\" y=\"40\" width=\"232\" height=\"330\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"662\" y=\"62\" font-size=\"13\" font-weight=\"700\" fill=\"#6b7280\">192.168.3.0/24（論理）</text>\n  <rect x=\"120\" y=\"110\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"132\" y=\"132\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"132\" y=\"154\" font-size=\"11\" fill=\"#374151\">見るのは MAC アドレス。IP は見ない</text>\n  <text x=\"132\" y=\"172\" font-size=\"11\" fill=\"#6b7280\">MAC アドレステーブル（自動で育つ・論理）</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">3</text>\n  <rect x=\"451\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"460\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">8</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=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"319\" 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  <text x=\"180\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"235\" y=\"300\" width=\"90\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"319\" 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  <text x=\"280\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"335\" y=\"300\" width=\"90\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"319\" 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  <text x=\"380\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <line x1=\"469\" y1=\"155\" x2=\"512\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"520\" y=\"110\" width=\"140\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"590\" y=\"132\" text-anchor=\"middle\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">ルータ</text>\n  <text x=\"590\" y=\"154\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">見るのは IP アドレス</text>\n  <text x=\"590\" y=\"172\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">ルーティングテーブル（論理）</text>\n  <rect x=\"511\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"520\" y=\"159\" text-anchor=\"middle\" font-size=\"9\" fill=\"#374151\">Gi0</text>\n  <rect x=\"651\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"660\" y=\"159\" text-anchor=\"middle\" font-size=\"9\" fill=\"#374151\">Gi1</text>\n  <text x=\"520\" y=\"222\" font-size=\"10\" fill=\"#6b7280\">Gi0: 192.168.10.1（MAC R1-Gi0）</text>\n  <text x=\"520\" y=\"238\" font-size=\"10\" fill=\"#6b7280\">Gi1: 192.168.3.1（MAC R1-Gi1）</text>\n  <line x1=\"669\" y1=\"155\" x2=\"725\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"725\" y=\"120\" width=\"120\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"785\" y=\"139\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"785\" y=\"156\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.3.10</text>\n  <text x=\"785\" y=\"170\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC C</text>\n  <text x=\"785\" y=\"184\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.3.1</text>\n  <text x=\"20\" y=\"400\" font-size=\"11\" fill=\"#374151\">物理：箱・物理ポート（小さな四角）・ケーブル（実線）・MAC アドレス</text>\n  <text x=\"20\" y=\"418\" font-size=\"11\" fill=\"#374151\">論理：ネットワークの範囲（点線）・IP アドレス・GW（デフォルトゲートウェイ）・各テーブル</text>\n  <text x=\"20\" y=\"436\" font-size=\"11\" fill=\"#0a7aff\">ルータは 2 つのネットワークに片足ずつ入っている（Gi0 は 192.168.10.0/24 の一員、Gi1 は 192.168.3.0/24 の一員）</text>\n<line x1=\"20\" y1=\"458\" x2=\"880\" y2=\"458\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"480\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">初期状態の各テーブル（自動で載るのはルータの自分のポートの行だけ）</text>\n  <rect x=\"20\" y=\"492\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC アドレステーブル</text>\n  <text x=\"30\" y=\"524\" font-size=\"10\" fill=\"#374151\">（空）通信が流れると育つ</text>\n  <rect x=\"310\" y=\"492\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ルーティングテーブル</text>\n  <text x=\"320\" y=\"524\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi0（自動）</text>\n  <text x=\"320\" y=\"539\" font-size=\"10\" fill=\"#374151\">192.168.3.0/24 → Gi1（自動）</text>\n  <rect x=\"600\" y=\"492\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ARP テーブル</text>\n  <text x=\"610\" y=\"524\" font-size=\"10\" fill=\"#374151\">（空）</text>\n  <rect x=\"20\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"30\" y=\"594\" font-size=\"10\" fill=\"#374151\">（空）</text>\n<text x=\"20\" y=\"647\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"697\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">一般形（まだ何も流れていない）</text>\n  <rect x=\"20\" y=\"703\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"138\" y=\"703\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"256\" y=\"703\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"374\" y=\"703\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"492\" y=\"703\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <line x1=\"20\" y1=\"747\" x2=\"562\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"743\" x2=\"20\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"743\" x2=\"562\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"760\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"689\" x2=\"562\" y2=\"689\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"689\" x2=\"256\" y2=\"693\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"689\" x2=\"562\" y2=\"693\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"685\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"793\" font-size=\"10\" fill=\"#6b7280\">フレームは「MAC の部分＋パケット」。パケットは「IP の部分＋データ」。スイッチは MAC の部分だけ、ルータは IP の部分を見る</text>\n</svg>","text":"<svg viewBox=\"0 0 900 819\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"構成図（フローなし）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"819\" fill=\"#fbfcfe\"/>\n  <rect x=\"20\" y=\"40\" width=\"512\" height=\"330\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"34\" y=\"62\" font-size=\"13\" font-weight=\"700\" fill=\"#6b7280\">ネットワーク 192.168.10.0/24（論理）</text>\n  <rect x=\"648\" y=\"40\" width=\"232\" height=\"330\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"662\" y=\"62\" font-size=\"13\" font-weight=\"700\" fill=\"#6b7280\">192.168.3.0/24（論理）</text>\n  <rect x=\"120\" y=\"110\" width=\"340\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"132\" y=\"132\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">スイッチ</text>\n  <text x=\"132\" y=\"154\" font-size=\"11\" fill=\"#374151\">見るのは MAC アドレス。IP は見ない</text>\n  <text x=\"132\" y=\"172\" font-size=\"11\" fill=\"#6b7280\">MAC アドレステーブル（自動で育つ・論理）</text>\n  <rect x=\"171\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">1</text>\n  <rect x=\"271\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">2</text>\n  <rect x=\"371\" y=\"191\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"204\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">3</text>\n  <rect x=\"451\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"460\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">8</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=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"180\" y=\"319\" 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  <text x=\"180\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"235\" y=\"300\" width=\"90\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"280\" y=\"319\" 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  <text x=\"280\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <rect x=\"335\" y=\"300\" width=\"90\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"380\" y=\"319\" 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  <text x=\"380\" y=\"364\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.10.1</text>\n  <line x1=\"469\" y1=\"155\" x2=\"512\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"520\" y=\"110\" width=\"140\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"590\" y=\"132\" text-anchor=\"middle\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">ルータ</text>\n  <text x=\"590\" y=\"154\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">見るのは IP アドレス</text>\n  <text x=\"590\" y=\"172\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">ルーティングテーブル（論理）</text>\n  <rect x=\"511\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"520\" y=\"159\" text-anchor=\"middle\" font-size=\"9\" fill=\"#374151\">Gi0</text>\n  <rect x=\"651\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/>\n  <text x=\"660\" y=\"159\" text-anchor=\"middle\" font-size=\"9\" fill=\"#374151\">Gi1</text>\n  <text x=\"520\" y=\"222\" font-size=\"10\" fill=\"#6b7280\">Gi0: 192.168.10.1（MAC R1-Gi0）</text>\n  <text x=\"520\" y=\"238\" font-size=\"10\" fill=\"#6b7280\">Gi1: 192.168.3.1（MAC R1-Gi1）</text>\n  <line x1=\"669\" y1=\"155\" x2=\"725\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"725\" y=\"120\" width=\"120\" height=\"70\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"785\" y=\"139\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"785\" y=\"156\" text-anchor=\"middle\" font-size=\"11\" fill=\"#374151\">192.168.3.10</text>\n  <text x=\"785\" y=\"170\" text-anchor=\"middle\" font-size=\"11\" fill=\"#6b7280\">MAC C</text>\n  <text x=\"785\" y=\"184\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">GW 192.168.3.1</text>\n  <text x=\"20\" y=\"400\" font-size=\"11\" fill=\"#374151\">物理：箱・物理ポート（小さな四角）・ケーブル（実線）・MAC アドレス</text>\n  <text x=\"20\" y=\"418\" font-size=\"11\" fill=\"#374151\">論理：ネットワークの範囲（点線）・IP アドレス・GW（デフォルトゲートウェイ）・各テーブル</text>\n  <text x=\"20\" y=\"436\" font-size=\"11\" fill=\"#0a7aff\">ルータは 2 つのネットワークに片足ずつ入っている（Gi0 は 192.168.10.0/24 の一員、Gi1 は 192.168.3.0/24 の一員）</text>\n<line x1=\"20\" y1=\"458\" x2=\"880\" y2=\"458\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"480\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">初期状態の各テーブル（自動で載るのはルータの自分のポートの行だけ）</text>\n  <rect x=\"20\" y=\"492\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">スイッチ: MAC アドレステーブル</text>\n  <text x=\"30\" y=\"524\" font-size=\"10\" fill=\"#374151\">（空）通信が流れると育つ</text>\n  <rect x=\"310\" y=\"492\" width=\"280\" height=\"60\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ルーティングテーブル</text>\n  <text x=\"320\" y=\"524\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi0（自動）</text>\n  <text x=\"320\" y=\"539\" font-size=\"10\" fill=\"#374151\">192.168.3.0/24 → Gi1（自動）</text>\n  <rect x=\"600\" y=\"492\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"508\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: ARP テーブル</text>\n  <text x=\"610\" y=\"524\" font-size=\"10\" fill=\"#374151\">（空）</text>\n  <rect x=\"20\" y=\"562\" width=\"280\" height=\"45\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"578\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">PC-A: ARP テーブル</text>\n  <text x=\"30\" y=\"594\" font-size=\"10\" fill=\"#374151\">（空）</text>\n<text x=\"20\" y=\"647\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"697\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">一般形（まだ何も流れていない）</text>\n  <rect x=\"20\" y=\"703\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"138\" y=\"703\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"256\" y=\"703\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"374\" y=\"703\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <rect x=\"492\" y=\"703\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"717\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"732\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">？</text>\n  <line x1=\"20\" y1=\"747\" x2=\"562\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"743\" x2=\"20\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"743\" x2=\"562\" y2=\"747\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"760\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"689\" x2=\"562\" y2=\"689\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"689\" x2=\"256\" y2=\"693\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"689\" x2=\"562\" y2=\"693\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"685\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n<text x=\"20\" y=\"793\" font-size=\"10\" fill=\"#6b7280\">フレームは「MAC の部分＋パケット」。パケットは「IP の部分＋データ」。スイッチは MAC の部分だけ、ルータは IP の部分を見る</text>\n</svg>","line":56,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5beeab","type":"heading","depth":2,"markdown":"## 図 2 との接続","text":"図 2 との接続","line":151,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1a26c1","type":"paragraph","markdown":"この図の前はありません。次の図 2 では、PC-A から PC-B へ 1 本流し、空だった 2 つの表が育つところを見ます。","text":"この図の前はありません。次の図 2 では、PC-A から PC-B へ 1 本流し、空だった 2 つの表が育つところを見ます。","line":153,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":155,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_297a0c","type":"list","markdown":"- 図の PC-D はまだ VLAN で分かれておらず、PC-A や PC-B と同じ 192.168.10.0/24 の中にいます。分けるのは図 3 です。\n- MAC アドレステーブルの行は、通信が無いと一定時間で消えます。出典にある既定値は Catalyst の 300 秒で、他機種の値は確認していません。\n- 勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","text":"図の PC-D はまだ VLAN で分かれておらず、PC-A や PC-B と同じ 192.168.10.0/24 の中にいます。分けるのは図 3 です。MAC アドレステーブルの行は、通信が無いと一定時間で消えます。出典にある既定値は Catalyst の 300 秒で、他機種の値は確認していません。勉強会の配布資料は非公開のため、設定値や画面は引用せず、一般化した構成で描いています。","line":157,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":161,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bbfa81","type":"list","markdown":"- 勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）\n- [インフラエキスパート: Ethernet LAN - Layer2スイッチ](https://www.infraexpert.com/study/ethernet7.html) — MAC アドレステーブルの学習、フラッディング、フィルタリング、エージング\n- [インフラエキスパート: Ethernet LAN - ルータ](https://www.infraexpert.com/study/ethernet10.html) — ルータが宛先 IP で経路を決め、送信元と宛先の MAC アドレスを書き換えること\n- [Cisco: Catalyst 3560 スイッチ ソフトウェア コンフィギュレーション ガイド インターフェイス特性の設定](https://www.cisco.com/c/ja_jp/td/docs/sw/lanswt-access/cat3560swt/cg/007/swcfg/swint.html) — スイッチポート、ルーテッドポート、SVI の区分","text":"勉強会での本人の観察。2026-09-13 の実機ハンズオン（資料は非公開）インフラエキスパート: Ethernet LAN - Layer2スイッチ — MAC アドレステーブルの学習、フラッディング、フィルタリング、エージングインフラエキスパート: Ethernet LAN - ルータ — ルータが宛先 IP で経路を決め、送信元と宛先の MAC アドレスを書き換えることCisco: Catalyst 3560 スイッチ ソフトウェア コンフィギュレーション ガイド インターフェイス特性の設定 — スイッチポート、ルーテッドポート、SVI の区分","line":163,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":168,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1405cc","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) — この土台に 1 本流す","text":"ネットワーク_INDEX — 連載の目次ネットワーク_00_3層で言葉を置く — 連載の入口と読む順番ネットワーク_02_同じネットワークの中 — この土台に 1 本流す","line":170,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}]}