{"schema":"article/1","id":"art_c3c92c5fd5","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"ルータ 1 台の中に、ルーティングテーブルを複数持つ","rawTitle":"ルータ 1 台の中に、ルーティングテーブルを複数持つ","slug":"nw-basics-07b-vrf","file":"ネットワーク_07b_VRF","relPath":"content/published/ネットワーク_07b_VRF.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","ルーティング","vrf","concept"],"summary":"同じ番地を使う 2 つの組織を 1 台のルータで混ぜずに扱う VRF を、インターフェースとテーブルの結びつきとして 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-07c-cdp-lldp"],"blocks":[{"id":"blk_55c037","type":"paragraph","markdown":"勉強会で Fortigate の経路表示を見たとき、先頭に「VRF=0」と出ていました。","text":"勉強会で Fortigate の経路表示を見たとき、先頭に「VRF=0」と出ていました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_37ab92","type":"paragraph","markdown":"何のことか説明はありませんでした。\nルータは自分のテーブルだけを見る、という動きを覚えたあとだったので、テーブルに番号が付いている理由が分かりませんでした。\nこの記事は、その番号の正体を 1 枚の図で見ます。","text":"何のことか説明はありませんでした。\nルータは自分のテーブルだけを見る、という動きを覚えたあとだったので、テーブルに番号が付いている理由が分かりませんでした。\nこの記事は、その番号の正体を 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_ab1db9","type":"heading","depth":4,"markdown":"#### VRF","text":"VRF","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_25d2d7","type":"paragraph","markdown":"論理のものです。\nルータの中に持つ、もう 1 つのルーティングテーブルです。\n箱は 1 つのままで、テーブルだけが複数になります。\nスイッチの中を設定で分ける VLAN と同じ発想を、ルータのテーブルでやります。","text":"論理のものです。\nルータの中に持つ、もう 1 つのルーティングテーブルです。\n箱は 1 つのままで、テーブルだけが複数になります。\nスイッチの中を設定で分ける VLAN と同じ発想を、ルータのテーブルでやります。","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e1cd83","type":"heading","depth":4,"markdown":"#### 重なった番地","text":"重なった番地","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fea69d","type":"paragraph","markdown":"図では、A 社の PC と B 社の PC がどちらも 192.168.10.10 です。\nテーブルが分かれているので、この 2 台は同じ番地のまま 1 台のルータにつながります。\nテーブルが 1 つしかなければ、192.168.10.0/24 の行を 2 つ持てないので、どちらかを別の番地に振り直すことになります。","text":"図では、A 社の PC と B 社の PC がどちらも 192.168.10.10 です。\nテーブルが分かれているので、この 2 台は同じ番地のまま 1 台のルータにつながります。\nテーブルが 1 つしかなければ、192.168.10.0/24 の行を 2 つ持てないので、どちらかを別の番地に振り直すことになります。","line":22,"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_be6626","type":"list","markdown":"- インターフェース ⇄ VRF は手動です。物理ポートや論理インターフェースに「どの VRF に属するか」を設定します。\n- 1 つのインターフェースは、同時に 2 つの VRF に属せません。だから「この口に来た通信はこのテーブル」が一意に決まります。\n- VRF ごとのテーブルの行 ⇄ その VRF の口の IP は自動です。口に IP を付ければ、その VRF のテーブルに行が載ります。行が載る仕組みはテーブルが 1 つのときと同じで、載る先が分かれるだけです。","text":"インターフェース ⇄ VRF は手動です。物理ポートや論理インターフェースに「どの VRF に属するか」を設定します。1 つのインターフェースは、同時に 2 つの VRF に属せません。だから「この口に来た通信はこのテーブル」が一意に決まります。VRF ごとのテーブルの行 ⇄ その VRF の口の IP は自動です。口に IP を付ければ、その VRF のテーブルに行が載ります。行が載る仕組みはテーブルが 1 つのときと同じで、載る先が分かれるだけです。","line":28,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_27288e","type":"paragraph","markdown":"この図には番号付きの通信フローがありません。\n通信の通り道そのものは変わらず、変わるのは探すテーブルだからです。","text":"この図には番号付きの通信フローがありません。\n通信の通り道そのものは変わらず、変わるのは探すテーブルだからです。","line":34,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_77261a","type":"paragraph","markdown":"ルータの動きは「自分のテーブルだけを見る」でした。\nVRF を分けると、これが「自分の VRF のテーブルだけを見る」になります。\n青の口に来た通信は青のテーブルだけを見て、橙のテーブルは見えません。","text":"ルータの動きは「自分のテーブルだけを見る」でした。\nVRF を分けると、これが「自分の VRF のテーブルだけを見る」になります。\n青の口に来た通信は青のテーブルだけを見て、橙のテーブルは見えません。","line":37,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_65f4b7","type":"paragraph","markdown":"図 5 の ②「テーブルで一致する行を探す」が、この 1 段を挟んだ形に変わります。\n一致する行の探し方も、MAC の付け替えも、そのままです。","text":"図 5 の ②「テーブルで一致する行を探す」が、この 1 段を挟んだ形に変わります。\n一致する行の探し方も、MAC の付け替えも、そのままです。","line":41,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_ac6700","type":"heading","depth":2,"markdown":"## 補 2 の図","text":"補 2 の図","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_719d85","type":"paragraph","markdown":"図の上半分が 1 台のルータの中の 2 つのテーブル、下半分が口ごとの割り当てと、それぞれの向こう側です。","text":"図の上半分が 1 台のルータの中の 2 つのテーブル、下半分が口ごとの割り当てと、それぞれの向こう側です。","line":46,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_4d892e","type":"html","markdown":"<svg viewBox=\"0 0 900 460\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"VRF\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"460\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VRF：ルータ 1 台の中に、ルーティングテーブルを複数持つ</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">「ルーティングテーブルは基本 1 台に 1 つ」の例外。同じ住所（192.168.10.0/24）を使う 2 つの組織を、1 台で混ぜずに扱える</text>\n  <rect x=\"300\" y=\"90\" width=\"300\" height=\"230\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"450.0\" y=\"110\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1（箱は 1 つ）</text>\n  <rect x=\"320\" y=\"120\" width=\"120\" height=\"80\" rx=\"8\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"380.0\" y=\"140\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">VRF「青」</text>\n  <text x=\"380.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">テーブル（青）</text>\n  <text x=\"380.0\" y=\"173\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi0</text>\n  <text x=\"380.0\" y=\"188\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8 → Gi1</text>\n  <rect x=\"460\" y=\"120\" width=\"120\" height=\"80\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"520.0\" y=\"140\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">VRF「橙」</text>\n  <text x=\"520.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#b45309\">テーブル（橙）</text>\n  <text x=\"520.0\" y=\"173\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi2</text>\n  <text x=\"520.0\" y=\"188\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8 → Gi3</text>\n  <text x=\"450\" y=\"232\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">インターフェースごとに「どの VRF に属するか」を設定（手動）</text>\n  <text x=\"450\" y=\"248\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">ip vrf forwarding 青　のように、口に色を付ける</text>\n  <text x=\"450\" y=\"290\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">青の口に来た通信は青のテーブルだけを見る。橙のテーブルは見えない</text>\n  <rect x=\"291\" y=\"150\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"300\" y=\"163\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"291\" y=\"190\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"300\" y=\"203\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <rect x=\"591\" y=\"150\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"600\" y=\"163\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <rect x=\"591\" y=\"190\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"600\" y=\"203\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi3</text>\n  <rect x=\"60\" y=\"130\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"135.0\" y=\"150\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">A 社の PC</text>\n  <text x=\"135.0\" y=\"168\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"135.0\" y=\"183\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（青）</text>\n  <line x1=\"210\" y1=\"158\" x2=\"291\" y2=\"159\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <rect x=\"690\" y=\"130\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"765.0\" y=\"150\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">B 社の PC</text>\n  <text x=\"765.0\" y=\"168\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10（同じ番地）</text>\n  <text x=\"765.0\" y=\"183\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（橙）</text>\n  <line x1=\"609\" y1=\"159\" x2=\"690\" y2=\"158\" stroke=\"#d97706\" stroke-width=\"2\"/>\n  <rect x=\"60\" y=\"250\" width=\"150\" height=\"50\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"135.0\" y=\"270\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">A 社の向こう側</text>\n  <text x=\"135.0\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8（青）</text>\n  <line x1=\"210\" y1=\"275\" x2=\"291\" y2=\"199\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <rect x=\"690\" y=\"250\" width=\"150\" height=\"50\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"765.0\" y=\"270\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">B 社の向こう側</text>\n  <text x=\"765.0\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8（橙）</text>\n  <line x1=\"609\" y1=\"199\" x2=\"690\" y2=\"275\" stroke=\"#d97706\" stroke-width=\"2\"/>\n  <text x=\"20\" y=\"360\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"380\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：VRF（論理。ルータの中の「もう 1 つのテーブル」。VLAN がスイッチを論理的に分けたのと同じ発想を、ルータのテーブルでやる）</text>\n  <text x=\"20\" y=\"398\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：インターフェース ⇄ VRF（手動）／VRF ごとのテーブルの行 ⇄ その VRF の口の IP（自動。図 1 と同じ）</text>\n  <text x=\"20\" y=\"416\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 5 の ②「自分のテーブルを探す」が「自分の VRF のテーブルを探す」になる。他は同じ</text>\n  <text x=\"20\" y=\"442\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">勉強会の Fortigate の表示「Routing table for VRF=0」は、VRF を分けていないときの既定の 1 つ目。AWS の VPC も同じ発想（同じ番地を別の VPC で使える）</text>\n</svg>","text":"<svg viewBox=\"0 0 900 460\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"VRF\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"460\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">VRF：ルータ 1 台の中に、ルーティングテーブルを複数持つ</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">「ルーティングテーブルは基本 1 台に 1 つ」の例外。同じ住所（192.168.10.0/24）を使う 2 つの組織を、1 台で混ぜずに扱える</text>\n  <rect x=\"300\" y=\"90\" width=\"300\" height=\"230\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"450.0\" y=\"110\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1（箱は 1 つ）</text>\n  <rect x=\"320\" y=\"120\" width=\"120\" height=\"80\" rx=\"8\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"380.0\" y=\"140\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">VRF「青」</text>\n  <text x=\"380.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">テーブル（青）</text>\n  <text x=\"380.0\" y=\"173\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi0</text>\n  <text x=\"380.0\" y=\"188\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8 → Gi1</text>\n  <rect x=\"460\" y=\"120\" width=\"120\" height=\"80\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"520.0\" y=\"140\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">VRF「橙」</text>\n  <text x=\"520.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#b45309\">テーブル（橙）</text>\n  <text x=\"520.0\" y=\"173\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.0/24 → Gi2</text>\n  <text x=\"520.0\" y=\"188\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8 → Gi3</text>\n  <text x=\"450\" y=\"232\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">インターフェースごとに「どの VRF に属するか」を設定（手動）</text>\n  <text x=\"450\" y=\"248\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">ip vrf forwarding 青　のように、口に色を付ける</text>\n  <text x=\"450\" y=\"290\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">青の口に来た通信は青のテーブルだけを見る。橙のテーブルは見えない</text>\n  <rect x=\"291\" y=\"150\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"300\" y=\"163\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"291\" y=\"190\" width=\"18\" height=\"18\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><text x=\"300\" y=\"203\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <rect x=\"591\" y=\"150\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"600\" y=\"163\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <rect x=\"591\" y=\"190\" width=\"18\" height=\"18\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/><text x=\"600\" y=\"203\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi3</text>\n  <rect x=\"60\" y=\"130\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"135.0\" y=\"150\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">A 社の PC</text>\n  <text x=\"135.0\" y=\"168\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"135.0\" y=\"183\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（青）</text>\n  <line x1=\"210\" y1=\"158\" x2=\"291\" y2=\"159\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <rect x=\"690\" y=\"130\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"765.0\" y=\"150\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">B 社の PC</text>\n  <text x=\"765.0\" y=\"168\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10（同じ番地）</text>\n  <text x=\"765.0\" y=\"183\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（橙）</text>\n  <line x1=\"609\" y1=\"159\" x2=\"690\" y2=\"158\" stroke=\"#d97706\" stroke-width=\"2\"/>\n  <rect x=\"60\" y=\"250\" width=\"150\" height=\"50\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"135.0\" y=\"270\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">A 社の向こう側</text>\n  <text x=\"135.0\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8（青）</text>\n  <line x1=\"210\" y1=\"275\" x2=\"291\" y2=\"199\" stroke=\"#0a7aff\" stroke-width=\"2\"/>\n  <rect x=\"690\" y=\"250\" width=\"150\" height=\"50\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"765.0\" y=\"270\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">B 社の向こう側</text>\n  <text x=\"765.0\" y=\"288\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">10.0.0.0/8（橙）</text>\n  <line x1=\"609\" y1=\"199\" x2=\"690\" y2=\"275\" stroke=\"#d97706\" stroke-width=\"2\"/>\n  <text x=\"20\" y=\"360\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"380\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：VRF（論理。ルータの中の「もう 1 つのテーブル」。VLAN がスイッチを論理的に分けたのと同じ発想を、ルータのテーブルでやる）</text>\n  <text x=\"20\" y=\"398\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：インターフェース ⇄ VRF（手動）／VRF ごとのテーブルの行 ⇄ その VRF の口の IP（自動。図 1 と同じ）</text>\n  <text x=\"20\" y=\"416\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 5 の ②「自分のテーブルを探す」が「自分の VRF のテーブルを探す」になる。他は同じ</text>\n  <text x=\"20\" y=\"442\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">勉強会の Fortigate の表示「Routing table for VRF=0」は、VRF を分けていないときの既定の 1 つ目。AWS の VPC も同じ発想（同じ番地を別の VPC で使える）</text>\n</svg>","line":48,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9d09b1","type":"heading","depth":2,"markdown":"## 図 5 との接続","text":"図 5 との接続","line":96,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_039ec9","type":"paragraph","markdown":"図 5 では、ルータ 1 とルータ 2 がそれぞれ 1 つのテーブルを持っていました。\nテーブルが 1 つずつなので、別々の組織を別々のテーブルで扱うには、ルータを 2 台置くことになります。","text":"図 5 では、ルータ 1 とルータ 2 がそれぞれ 1 つのテーブルを持っていました。\nテーブルが 1 つずつなので、別々の組織を別々のテーブルで扱うには、ルータを 2 台置くことになります。","line":98,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2052a3","type":"paragraph","markdown":"VRF は、その 2 台ぶんの分かれ方を 1 台の中に持ち込みます。\n分ける単位はインターフェースで、人が割り当てます。\n番地が重なっていても混ざらないのは、経路を探す前に、どのテーブルを見るかが口で決まっているからです。","text":"VRF は、その 2 台ぶんの分かれ方を 1 台の中に持ち込みます。\n分ける単位はインターフェースで、人が割り当てます。\n番地が重なっていても混ざらないのは、経路を探す前に、どのテーブルを見るかが口で決まっているからです。","line":101,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":105,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fbe148","type":"list","markdown":"- 出典にした Cisco のドキュメントでは、この機能の呼び名は VRF-lite です。もともとは、プロバイダが番地の重なる複数の顧客網を支えるための機能として説明されています。図はそのうち、1 台の中でテーブルが分かれる部分だけを描いています。\n- 図の注にある「AWS の VPC も同じ発想」は、考え方が似ているという見立てで、両者の仕組みを突き合わせて確かめたものではありません。未検証です。\n- 勉強会の画面に出た「VRF=0」を、VRF を分けていないときの既定の 1 つ目と読みましたが、Fortigate の資料では確認していないので未検証です。\n- VRF どうしをつなぐ書き方（別の VRF に経路を渡す）は、この図には含まれません。","text":"出典にした Cisco のドキュメントでは、この機能の呼び名は VRF-lite です。もともとは、プロバイダが番地の重なる複数の顧客網を支えるための機能として説明されています。図はそのうち、1 台の中でテーブルが分かれる部分だけを描いています。図の注にある「AWS の VPC も同じ発想」は、考え方が似ているという見立てで、両者の仕組みを突き合わせて確かめたものではありません。未検証です。勉強会の画面に出た「VRF=0」を、VRF を分けていないときの既定の 1 つ目と読みましたが、Fortigate の資料では確認していないので未検証です。VRF どうしをつなぐ書き方（別の VRF に経路を渡す）は、この図には含まれません。","line":107,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":112,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c21262","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [Cisco: Configuring VRF-lite](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/17-14/configuration_guide/rtng/b_1714_rtng_9200_cg/configuring_vrf_lite.html) — 「VRF-lite is a feature that enables a service provider to support two or more VPNs, where IP addresses can be overlapped among the VPNs.」「VRF-lite uses input interfaces to distinguish routes for different VPNs」「a Layer 3 interface cannot belong to more than one VRF at any time.」","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）Cisco: Configuring VRF-lite — 「VRF-lite is a feature that enables a service provider to support two or more VPNs, where IP addresses can be overlapped among the VPNs.」「VRF-lite uses input interfaces to distinguish routes for different VPNs」「a Layer 3 interface cannot belong to more than one VRF at any time.」","line":114,"sources":["src_1"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":117,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c824f0","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- 次の補足（補 3）: [ネットワーク\\_07c\\_CDPとLLDP](/notes/nw-basics-07c-cdp-lldp)（`/notes/nw-basics-07c-cdp-lldp`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）土台になる記事（図 5）: ネットワーク_05_行きと帰り（/notes/nw-basics-05-static-route）次の補足（補 3）: ネットワーク_07c_CDPとLLDP（/notes/nw-basics-07c-cdp-lldp）","line":119,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/17-14/configuration_guide/rtng/b_1714_rtng_9200_cg/configuring_vrf_lite.html","title":"Cisco: Configuring VRF-lite","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}