{"schema":"article/1","id":"art_a8c9c07df8","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"予備の経路を、普段は眠らせておく","rawTitle":"予備の経路を、普段は眠らせておく","slug":"nw-basics-07a-floating-static","file":"ネットワーク_07a_フローティングスタティック","relPath":"content/published/ネットワーク_07a_フローティングスタティック.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","ルーティング","スタティックルート","concept"],"summary":"同じ宛先の行を 2 つ書いて、AD 値（行の信用度）だけを変えると、予備の経路は普段テーブルに載らず、主の線が切れたときだけ現れる。その仕組みを 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-07b-vrf"],"blocks":[{"id":"blk_6c1c33","type":"paragraph","markdown":"勉強会のおまけのクイズに「フローティングスタティックルート」という語が出てきました。","text":"勉強会のおまけのクイズに「フローティングスタティックルート」という語が出てきました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_56cb9b","type":"paragraph","markdown":"説明はなく、言葉だけが置かれていました。\n同じラボで、同じ手書きの経路なのに、Cisco のルータの表示は `[1/0]`、Fortigate の表示は `[10/0]` と、左の数字が違っていたのも引っかかっていました。\nどちらも、ルーティングテーブルの行に付く 1 つの数字の話でした。","text":"説明はなく、言葉だけが置かれていました。\n同じラボで、同じ手書きの経路なのに、Cisco のルータの表示は [1/0]、Fortigate の表示は [10/0] と、左の数字が違っていたのも引っかかっていました。\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_912596","type":"heading","depth":4,"markdown":"#### AD 値","text":"AD 値","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_7348fd","type":"paragraph","markdown":"論理のものです。\nルーティングテーブルの行 1 本ずつに付く信用度で、小さいほど信用されます。\nCisco の既定値は、直結のネットワークが 0、手で書いたスタティックが 1、OSPF が 110 です。\n同じ宛先の行が複数あるとき、AD 値がいちばん小さい行だけがテーブルに載ります。","text":"論理のものです。\nルーティングテーブルの行 1 本ずつに付く信用度で、小さいほど信用されます。\nCisco の既定値は、直結のネットワークが 0、手で書いたスタティックが 1、OSPF が 110 です。\n同じ宛先の行が複数あるとき、AD 値がいちばん小さい行だけがテーブルに載ります。","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cf8e06","type":"heading","depth":4,"markdown":"#### 主の線と予備の線","text":"主の線と予備の線","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8b4baf","type":"paragraph","markdown":"物理のものです。\n図では、ルータ 1 とルータ 2 の間にもう 1 本ケーブルを足し、172.16.12.0/30 を主、172.16.13.0/30 を予備としています。","text":"物理のものです。\n図では、ルータ 1 とルータ 2 の間にもう 1 本ケーブルを足し、172.16.12.0/30 を主、172.16.13.0/30 を予備としています。","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":25,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_44dbb6","type":"list","markdown":"- 行 ⇄ AD 値は手動です。経路を書くコマンドの最後に数字を足すと、その行だけ信用度を変えられます。\n- 行 ⇄ 出口インターフェースの状態は自動です。出口が down になると、その行はテーブルから消えます。消えた結果、次に信用される行が載ります。\n- この 2 つが組み合わさるので、人は 2 行書くだけでよく、切り替えの判断は機器がやります。","text":"行 ⇄ AD 値は手動です。経路を書くコマンドの最後に数字を足すと、その行だけ信用度を変えられます。行 ⇄ 出口インターフェースの状態は自動です。出口が down になると、その行はテーブルから消えます。消えた結果、次に信用される行が載ります。この 2 つが組み合わさるので、人は 2 行書くだけでよく、切り替えの判断は機器がやります。","line":27,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":31,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1e8c28","type":"paragraph","markdown":"この図には新しい通信フローがありません。\n図 5 の ②「テーブルで一致する行を探す」の探し方そのものは変わらないからです。\n変わるのは、探す前に「どの行が載っているか」で、それが線の状態で入れ替わります。","text":"この図には新しい通信フローがありません。\n図 5 の ②「テーブルで一致する行を探す」の探し方そのものは変わらないからです。\n変わるのは、探す前に「どの行が載っているか」で、それが線の状態で入れ替わります。","line":33,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_011a9a","type":"paragraph","markdown":"平常時は、AD 1 の主の行だけが載っています。\n予備の行は書いてあってもテーブルには現れず、眠っています。","text":"平常時は、AD 1 の主の行だけが載っています。\n予備の行は書いてあってもテーブルには現れず、眠っています。","line":37,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_79b9a7","type":"paragraph","markdown":"主の線が切れると、出口インターフェースが down になり、主の行が消えます。\n同じ宛先の行はもう 1 本しかないので、AD 10 の予備の行が現れます。","text":"主の線が切れると、出口インターフェースが down になり、主の行が消えます。\n同じ宛先の行はもう 1 本しかないので、AD 10 の予備の行が現れます。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c07d1a","type":"paragraph","markdown":"主の線が戻れば、AD の小さい主の行が再び載ります。","text":"主の線が戻れば、AD の小さい主の行が再び載ります。","line":43,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_14cb34","type":"heading","depth":2,"markdown":"## 補 1 の図","text":"補 1 の図","line":45,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e89f3c","type":"paragraph","markdown":"図の上半分が構成図とルータ 1 に書いた 2 行、下半分が平常時と障害後のテーブルの推移です。","text":"図の上半分が構成図とルータ 1 に書いた 2 行、下半分が平常時と障害後のテーブルの推移です。","line":47,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_83566d","type":"html","markdown":"<svg viewBox=\"0 0 900 480\" 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=\"480\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">フローティングスタティック：予備の経路を、普段は眠らせておく</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">図 5 のルータ 1・2 の間に、もう 1 本（予備）の線を足す。同じ宛先の行を 2 つ書くが、信用度（AD 値）を変える</text>\n  <rect x=\"40\" y=\"120\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"85.0\" y=\"140\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"85.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <line x1=\"130\" y1=\"148\" x2=\"200\" y2=\"148\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"200\" y=\"110\" width=\"130\" height=\"76\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"265.0\" y=\"130\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"265.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 172.16.12.1 /30</text>\n  <text x=\"265.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi2 172.16.13.1 /30</text>\n  <rect x=\"321\" y=\"128\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"330\" y=\"141\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <rect x=\"321\" y=\"160\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"330\" y=\"173\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <line x1=\"339\" y1=\"137\" x2=\"540\" y2=\"137\" stroke=\"#374151\" stroke-width=\"2.5\"/>\n  <text x=\"440\" y=\"130\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">主の線 172.16.12.0/30</text>\n  <line x1=\"339\" y1=\"169\" x2=\"540\" y2=\"169\" stroke=\"#9aa7b5\" stroke-width=\"2\" stroke-dasharray=\"6 4\"/>\n  <text x=\"440\" y=\"183\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">予備の線 172.16.13.0/30</text>\n  <rect x=\"540\" y=\"110\" width=\"130\" height=\"76\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"605.0\" y=\"130\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"605.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 172.16.12.2 /30</text>\n  <text x=\"605.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi2 172.16.13.2 /30</text>\n  <text x=\"605.0\" y=\"178\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 192.168.3.1</text>\n  <rect x=\"531\" y=\"128\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"540\" y=\"141\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"531\" y=\"160\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"540\" y=\"173\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <rect x=\"661\" y=\"144\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"670\" y=\"157\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"679\" y1=\"153\" x2=\"740\" y2=\"153\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"740\" y=\"125\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"785.0\" y=\"145\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"785.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.3.10</text>\n  <rect x=\"20\" y=\"230\" width=\"400\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1 に書いた 2 行（設定）</text>\n  <text x=\"32\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ip route 192.168.3.0/24 → 172.16.12.2　　　　AD 1（既定・主）</text>\n  <text x=\"32\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ip route 192.168.3.0/24 → 172.16.13.2  10　　AD 10（手動で大きく・予備）</text>\n  <text x=\"32\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"></text>\n  <text x=\"32\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">同じ宛先の行が複数あるときは、AD（行の信用度・小さいほど信用）が</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">いちばん小さい行だけがルーティングテーブルに載る</text>\n  <rect x=\"440\" y=\"230\" width=\"210\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"452\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">平常時のテーブル</text>\n  <text x=\"452\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">S 192.168.3.0/24 [1/0] via 172.16.12.2</text>\n  <text x=\"452\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（予備の行は載っていない＝眠っている）</text>\n  <rect x=\"670\" y=\"230\" width=\"210\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"682\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">主の線が切れた後</text>\n  <text x=\"682\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">Gi1 が down → 主の行が消える</text>\n  <text x=\"682\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">S 192.168.3.0/24 [10/0] via 172.16.13.2</text>\n  <text x=\"682\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（予備の行が現れる）</text>\n  <text x=\"682\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">主の線が戻れば、また主の行に戻る</text>\n  <text x=\"20\" y=\"380\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"400\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：AD 値（論理。行に付く信用度。Cisco のスタティックは既定 1、直結は 0、OSPF は 110）</text>\n  <text x=\"20\" y=\"418\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：行 ⇄ 出口インターフェースの状態（自動。出口が down になると、その行はテーブルから消える）</text>\n  <text x=\"20\" y=\"436\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 5 の ②「一致する行を探す」の前に「どの行が載っているか」が線の状態で変わる。探し方そのものは同じ</text>\n  <text x=\"20\" y=\"462\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">勉強会の実機で Cisco の表示が [1/0]、Fortigate が [10/0] と違ったのは、この AD の既定値がメーカーで違うため。数字の意味は同じ「行の信用度」</text>\n</svg>","text":"<svg viewBox=\"0 0 900 480\" 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=\"480\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">フローティングスタティック：予備の経路を、普段は眠らせておく</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">図 5 のルータ 1・2 の間に、もう 1 本（予備）の線を足す。同じ宛先の行を 2 つ書くが、信用度（AD 値）を変える</text>\n  <rect x=\"40\" y=\"120\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"85.0\" y=\"140\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"85.0\" y=\"158\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <line x1=\"130\" y1=\"148\" x2=\"200\" y2=\"148\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"200\" y=\"110\" width=\"130\" height=\"76\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"265.0\" y=\"130\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"265.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 172.16.12.1 /30</text>\n  <text x=\"265.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi2 172.16.13.1 /30</text>\n  <rect x=\"321\" y=\"128\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"330\" y=\"141\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <rect x=\"321\" y=\"160\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"330\" y=\"173\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <line x1=\"339\" y1=\"137\" x2=\"540\" y2=\"137\" stroke=\"#374151\" stroke-width=\"2.5\"/>\n  <text x=\"440\" y=\"130\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">主の線 172.16.12.0/30</text>\n  <line x1=\"339\" y1=\"169\" x2=\"540\" y2=\"169\" stroke=\"#9aa7b5\" stroke-width=\"2\" stroke-dasharray=\"6 4\"/>\n  <text x=\"440\" y=\"183\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">予備の線 172.16.13.0/30</text>\n  <rect x=\"540\" y=\"110\" width=\"130\" height=\"76\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"605.0\" y=\"130\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"605.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 172.16.12.2 /30</text>\n  <text x=\"605.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi2 172.16.13.2 /30</text>\n  <text x=\"605.0\" y=\"178\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 192.168.3.1</text>\n  <rect x=\"531\" y=\"128\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"540\" y=\"141\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"531\" y=\"160\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"540\" y=\"173\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi2</text>\n  <rect x=\"661\" y=\"144\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"670\" y=\"157\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"679\" y1=\"153\" x2=\"740\" y2=\"153\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"740\" y=\"125\" width=\"90\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"785.0\" y=\"145\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"785.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.3.10</text>\n  <rect x=\"20\" y=\"230\" width=\"400\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1 に書いた 2 行（設定）</text>\n  <text x=\"32\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ip route 192.168.3.0/24 → 172.16.12.2　　　　AD 1（既定・主）</text>\n  <text x=\"32\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ip route 192.168.3.0/24 → 172.16.13.2  10　　AD 10（手動で大きく・予備）</text>\n  <text x=\"32\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"></text>\n  <text x=\"32\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">同じ宛先の行が複数あるときは、AD（行の信用度・小さいほど信用）が</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">いちばん小さい行だけがルーティングテーブルに載る</text>\n  <rect x=\"440\" y=\"230\" width=\"210\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"452\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">平常時のテーブル</text>\n  <text x=\"452\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">S 192.168.3.0/24 [1/0] via 172.16.12.2</text>\n  <text x=\"452\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（予備の行は載っていない＝眠っている）</text>\n  <rect x=\"670\" y=\"230\" width=\"210\" height=\"110\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"682\" y=\"250\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">主の線が切れた後</text>\n  <text x=\"682\" y=\"268\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">Gi1 が down → 主の行が消える</text>\n  <text x=\"682\" y=\"283\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">S 192.168.3.0/24 [10/0] via 172.16.13.2</text>\n  <text x=\"682\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（予備の行が現れる）</text>\n  <text x=\"682\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">主の線が戻れば、また主の行に戻る</text>\n  <text x=\"20\" y=\"380\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"400\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：AD 値（論理。行に付く信用度。Cisco のスタティックは既定 1、直結は 0、OSPF は 110）</text>\n  <text x=\"20\" y=\"418\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：行 ⇄ 出口インターフェースの状態（自動。出口が down になると、その行はテーブルから消える）</text>\n  <text x=\"20\" y=\"436\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 5 の ②「一致する行を探す」の前に「どの行が載っているか」が線の状態で変わる。探し方そのものは同じ</text>\n  <text x=\"20\" y=\"462\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">勉強会の実機で Cisco の表示が [1/0]、Fortigate が [10/0] と違ったのは、この AD の既定値がメーカーで違うため。数字の意味は同じ「行の信用度」</text>\n</svg>","line":49,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9d09b1","type":"heading","depth":2,"markdown":"## 図 5 との接続","text":"図 5 との接続","line":103,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_668df5","type":"paragraph","markdown":"図 5 では、同じ宛先の行は 1 本しか出てきませんでした。\nだから「一致する行を探す」だけで出口が決まりました。","text":"図 5 では、同じ宛先の行は 1 本しか出てきませんでした。\nだから「一致する行を探す」だけで出口が決まりました。","line":105,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_68bfee","type":"paragraph","markdown":"行が 2 本あるときの規則は 2 段になります。\n宛先の範囲が違えば、狭い行が勝ちます（ロンゲストマッチ）。\n宛先も範囲も同じなら、AD 値の小さい行が勝ちます。","text":"行が 2 本あるときの規則は 2 段になります。\n宛先の範囲が違えば、狭い行が勝ちます（ロンゲストマッチ）。\n宛先も範囲も同じなら、AD 値の小さい行が勝ちます。","line":108,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_7b9695","type":"paragraph","markdown":"勉強会で見た `[1/0]` と `[10/0]` の左の数字がこの AD 値です。\n同じ「手で書いた経路」でも、Cisco の既定は 1、Fortigate の既定は 10 と違っていました。\n数字の意味はどちらも同じで、行の信用度です。","text":"勉強会で見た [1/0] と [10/0] の左の数字がこの AD 値です。\n同じ「手で書いた経路」でも、Cisco の既定は 1、Fortigate の既定は 10 と違っていました。\n数字の意味はどちらも同じで、行の信用度です。","line":112,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":116,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f73d8a","type":"list","markdown":"- 「フローティングスタティックルート」という呼び名を Cisco の設定ガイドで引くと、定義は「動的ルーティングプロトコルで学習した経路の予備として使うスタティックルート」です。図が描いているのはスタティック同士の予備で、同じ AD の規則を当てはめた形です。動的ルーティングは後の記事で扱います。\n- Fortigate でスタティックの既定 AD が 10 だった、というのは勉強会の画面表示に基づきます。Fortigate の公式資料では確認していないので未検証です。\n- 「出口が down になると行が消える」は、経路を書くときに `permanent` を付けると変えられます。付けるとインターフェースの障害時も経路を削除しません。\n- 図は予備の線を直結のケーブルとして描いています。予備の経路がインターネット経由になる場合の話は、この図には含まれません。","text":"「フローティングスタティックルート」という呼び名を Cisco の設定ガイドで引くと、定義は「動的ルーティングプロトコルで学習した経路の予備として使うスタティックルート」です。図が描いているのはスタティック同士の予備で、同じ AD の規則を当てはめた形です。動的ルーティングは後の記事で扱います。Fortigate でスタティックの既定 AD が 10 だった、というのは勉強会の画面表示に基づきます。Fortigate の公式資料では確認していないので未検証です。「出口が down になると行が消える」は、経路を書くときに permanent を付けると変えられます。付けるとインターフェースの障害時も経路を削除しません。図は予備の線を直結のケーブルとして描いています。予備の経路がインターネット経由になる場合の話は、この図には含まれません。","line":118,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":123,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c153f1","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [Cisco: What Is Administrative Distance?](https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/15986-admin-distance.html) — 既定の AD 値は Connected 0、Static 1、OSPF 110。「Lower values are preferred over higher ones.」\n- [Cisco: Implementing Static Routes](https://www.cisco.com/c/en/us/td/docs/iosxr/ncs560/routing/25xx/b-routing-cg-25xx-ncs560/implementing-static-routes.html) — 「Floating static routes are static routes that are used to back up dynamic routes learned through configured routing protocols.」より大きい AD を設定する\n- [インフラエキスパート: スタティックルーティング](https://www.infraexpert.com/study/routing3.html) — `ip route` の書式に AD 値を書き足せる。`permanent` はインターフェース障害時も経路を削除しない","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）Cisco: What Is Administrative Distance? — 既定の AD 値は Connected 0、Static 1、OSPF 110。「Lower values are preferred over higher ones.」Cisco: Implementing Static Routes — 「Floating static routes are static routes that are used to back up dynamic routes learned through configured routing protocols.」より大きい AD を設定するインフラエキスパート: スタティックルーティング — ip route の書式に AD 値を書き足せる。permanent はインターフェース障害時も経路を削除しない","line":125,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":130,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_93dd84","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- 次の補足（補 2）: [ネットワーク\\_07b\\_VRF](/notes/nw-basics-07b-vrf)（`/notes/nw-basics-07b-vrf`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）土台になる記事（図 5）: ネットワーク_05_行きと帰り（/notes/nw-basics-05-static-route）次の補足（補 2）: ネットワーク_07b_VRF（/notes/nw-basics-07b-vrf）","line":132,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/15986-admin-distance.html","title":"Cisco: What Is Administrative Distance?","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.cisco.com/c/en/us/td/docs/iosxr/ncs560/routing/25xx/b-routing-cg-25xx-ncs560/implementing-static-routes.html","title":"Cisco: Implementing Static Routes","accessed":"2026-09-14","kind":"secondary"},{"id":"src_3","url":"https://www.infraexpert.com/study/routing3.html","title":"インフラエキスパート: スタティックルーティング","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}