{"articleId":"art_f7e8f31d3b","slug":"nw-basics-extra-c-ios-modes","title":"今どこにいるかは、プロンプトの末尾で分かる","version":1,"area":"tech","topic":"ネットワーク","tags":["ネットワーク","cisco","ios","cli","concept"],"date":"2026-09-14","updated":"2026-09-14","records":[{"id":"rev_e2f8bee246","at":"2026-09-14","actor":{"kind":"ai","id":"claude-fable-5","label":"AI (claude-fable-5)"},"version":1,"kind":"ai-check","scope":{},"text":"4 つのモードのプロンプト（Switch>／Device#／Device(config)#／Device(config-if)#／Device(config-line)#）と、enable・configure・exit・end・Ctrl-Z での行き来、? で打てる語の一覧が出ることは Catalyst 9200 のコマンドリファレンスで確認した。running-config が RAM・startup-config が NVRAM にあることと copy running-config startup-config は Managing Configuration Files、vlan.dat が NVRAM 上の別ファイルで削除すると VLAN が失われることは Maintain VLAN.DAT File、設定モードから do を付けて EXEC のコマンドを打てることと do configure terminal は打てないことは EXEC Commands in Configuration Mode（URL を再取得して本文を確認）、打ち間違いが DNS の問い合わせになる挙動と no ip domain-lookup で止まることは Prevent Domain Translation Messages、logging synchronous が非同期のメッセージと入力中の行を混ぜないことはコマンドリファレンスで確認した。図のプロンプトは Router> 表記で、出典の表は Switch>／Device# 表記である違いを本文に書いた。erase startup-config と reload だけで VLAN の一覧が残るかどうかは出典で直接確認できず未検証として書いた。校正チェックリスト（英訳しての通読・結論の先取り・藁人形・未定義語の初出・比喩・体言止めの混入・表記揺れ）を通した。守秘: 実名・社名・会場名・地名・金額なし","status":"open","source":"frontmatter"}],"blocks":[{"id":"blk_67534f","type":"paragraph","markdown":"実機をさわると、同じ言葉を打っても場所によって通ったり弾かれたりします。","text":"実機をさわると、同じ言葉を打っても場所によって通ったり弾かれたりします。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_131f9c","type":"paragraph","markdown":"どこで何が打てるかは、1 本の通信が通る道筋の話ではありません。\n機器に話しかける側の地図なので、別枠の 1 枚にまとめます。","text":"どこで何が打てるかは、1 本の通信が通る道筋の話ではありません。\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":7,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34ba84","type":"heading","depth":2,"markdown":"## 登場するもの","text":"登場するもの","line":10,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5e0f29","type":"heading","depth":4,"markdown":"#### ユーザーモード","text":"ユーザーモード","line":12,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_033159","type":"paragraph","markdown":"電源を入れて最初にいる場所です。\nプロンプトは `>` で終わり、打てるのは特権モードで打てる言葉の一部です。\n`enable` で 1 つ上へ上がります。","text":"電源を入れて最初にいる場所です。\nプロンプトは > で終わり、打てるのは特権モードで打てる言葉の一部です。\nenable で 1 つ上へ上がります。","line":14,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34b567","type":"heading","depth":4,"markdown":"#### 特権モード","text":"特権モード","line":18,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e659e9","type":"paragraph","markdown":"プロンプトが `#` で終わります。\n設定の一覧を見る言葉と、保存や再起動の言葉はここで打ちます。\n`disable` で戻り、`configure` で設定モードへ入ります。","text":"プロンプトが # で終わります。\n設定の一覧を見る言葉と、保存や再起動の言葉はここで打ちます。\ndisable で戻り、configure で設定モードへ入ります。","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_993343","type":"heading","depth":4,"markdown":"#### グローバル設定モード","text":"グローバル設定モード","line":24,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_10d1b7","type":"paragraph","markdown":"プロンプトが `(config)#` になります。\n機器そのものに効く設定（名前を付ける、経路を書く、VLAN を作る）を打つ場所です。\nここから対象を指定して、下の段へ降ります。","text":"プロンプトが (config)# になります。\n機器そのものに効く設定（名前を付ける、経路を書く、VLAN を作る）を打つ場所です。\nここから対象を指定して、下の段へ降ります。","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_25df2f","type":"heading","depth":4,"markdown":"#### サブ設定モード","text":"サブ設定モード","line":30,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2cfbef","type":"paragraph","markdown":"プロンプトが `(config-if)#` や `(config-line)#` のように、対象の名前入りになります。\nインターフェースの設定モードへは `interface`、コンソールや vty の設定モードへは `line vty` か `line console` で入ります。\n`exit` で 1 つ上へ、`end` か Ctrl-Z で特権モードまで戻ります。","text":"プロンプトが (config-if)# や (config-line)# のように、対象の名前入りになります。\nインターフェースの設定モードへは interface、コンソールや vty の設定モードへは line vty か line console で入ります。\nexit で 1 つ上へ、end か Ctrl-Z で特権モードまで戻ります。","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bb1e58","type":"heading","depth":4,"markdown":"#### 2 つの設定ファイル","text":"2 つの設定ファイル","line":36,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_6bfea1","type":"paragraph","markdown":"running-config は、いま動いている設定です。RAM にあります。\nstartup-config は、起動時に読む設定です。NVRAM にあります。\n打った設定は running-config に入るだけなので、`copy running-config startup-config` で写さずに再起動すると消えます。","text":"running-config は、いま動いている設定です。RAM にあります。\nstartup-config は、起動時に読む設定です。NVRAM にあります。\n打った設定は running-config に入るだけなので、copy running-config startup-config で写さずに再起動すると消えます。","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fd68d5","type":"heading","depth":4,"markdown":"#### vlan.dat","text":"vlan.dat","line":42,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3b11b0","type":"paragraph","markdown":"VLAN の一覧は、設定ファイルとは別の vlan.dat というファイルに入っています。\nCisco の文書は、これを NVRAM 上の別ファイルと書き、誤って消したまま再起動すると、その機器にあった VLAN がすべて失われると書いています。","text":"VLAN の一覧は、設定ファイルとは別の vlan.dat というファイルに入っています。\nCisco の文書は、これを NVRAM 上の別ファイルと書き、誤って消したまま再起動すると、その機器にあった VLAN がすべて失われると書いています。","line":44,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2bf634","type":"heading","depth":2,"markdown":"## 別枠 C の図","text":"別枠 C の図","line":47,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_7038ff","type":"paragraph","markdown":"図の上から下が 4 つのモードの段で、右側が上り下りの言葉、下半分が 2 つの設定ファイルと読み方のコツです。","text":"図の上から下が 4 つのモードの段で、右側が上り下りの言葉、下半分が 2 つの設定ファイルと読み方のコツです。","line":49,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c811dd","type":"html","markdown":"<svg viewBox=\"0 0 900 540\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"IOS のモード地図\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"540\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">別枠 C：IOS のモード地図。「今どこにいるか」はプロンプトの末尾で分かる</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">試験のシミュレーション問題は「どのモードで、どのコマンドを打つか」。勉強会で毎回打った型を地図にする</text>\n  <rect x=\"20\" y=\"80\" width=\"400\" height=\"70\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">ユーザーモード（見るだけ・一部）</text>\n  <text x=\"408\" y=\"100\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router></text>\n  <text x=\"32\" y=\"118\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">電源を入れて最初にいる場所。ping や一部の show だけ</text>\n  <line x1=\"220\" y1=\"150\" x2=\"220\" y2=\"172\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,171 225,171 220,180\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"170\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">enable</text>\n  <text x=\"232\" y=\"158\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: disable / exit）</text>\n  <rect x=\"20\" y=\"180\" width=\"400\" height=\"80\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"200\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">特権モード（全部見る・保存する）</text>\n  <text x=\"408\" y=\"200\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router#</text>\n  <text x=\"32\" y=\"218\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">show run / show ip route / show vlan brief / show interfaces …</text>\n  <text x=\"32\" y=\"233\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">copy running-config startup-config（保存）／reload（再起動）</text>\n  <line x1=\"220\" y1=\"260\" x2=\"220\" y2=\"282\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,281 225,281 220,290\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"280\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">configure terminal</text>\n  <text x=\"232\" y=\"268\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: end または Ctrl+Z で # へ）</text>\n  <rect x=\"20\" y=\"290\" width=\"400\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"310\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">グローバル設定モード（機器全体の設定）</text>\n  <text x=\"408\" y=\"310\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router(config)#</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">hostname / no ip domain lookup / vlan 10 / ip route …</text>\n  <text x=\"32\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ここから「対象」を指定して下の階へ降りる</text>\n  <line x1=\"220\" y1=\"380\" x2=\"220\" y2=\"402\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,401 225,401 220,410\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"400\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">interface … / line … / router ospf …</text>\n  <text x=\"232\" y=\"388\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: exit で 1 つ上へ）</text>\n  <rect x=\"20\" y=\"410\" width=\"400\" height=\"110\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"430\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">サブ設定モード（対象ごとの設定）</text>\n  <text x=\"408\" y=\"430\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router(config-if)# など</text>\n  <text x=\"32\" y=\"448\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-if)　インターフェース：ip address / no shutdown / switchport …</text>\n  <text x=\"32\" y=\"463\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-subif)　サブインターフェース：encapsulation dot1q 10</text>\n  <text x=\"32\" y=\"478\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-line)　コンソール・vty：password / login / logging synchronous</text>\n  <text x=\"32\" y=\"493\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-router)　ルーティング：network … / passive-interface …</text>\n  <rect x=\"460\" y=\"80\" width=\"420\" height=\"150\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"100\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">2 つの設定ファイル</text>\n  <text x=\"472\" y=\"118\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">running-config：いま動いている設定（メモリ上）。打った設定は即ここに入る</text>\n  <text x=\"472\" y=\"133\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">startup-config：起動時に読む設定（保存領域）。copy run start で写す</text>\n  <text x=\"472\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">保存せずに再起動すると、打った設定は消える</text>\n  <text x=\"472\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の初期化 erase startup-config ＋ reload はこの仕組みを使っている</text>\n  <text x=\"472\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（VLAN の一覧だけは別ファイル vlan.dat。だから delete flash:vlan.dat も打った）</text>\n  <rect x=\"460\" y=\"250\" width=\"420\" height=\"130\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"270\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">読み方のコツ</text>\n  <text x=\"472\" y=\"288\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">プロンプトの末尾：>（見るだけ）／#（特権）／(config)#（全体）／(config-xx)#（対象）</text>\n  <text x=\"472\" y=\"303\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">show は # で打つ。設定の途中で打つなら do show … と頭に do を付ける</text>\n  <text x=\"472\" y=\"318\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">打ち消しは頭に no（no shutdown / no ip domain lookup）</text>\n  <text x=\"472\" y=\"333\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">?（疑問符）で、その場所で打てる語の一覧が出る</text>\n  <rect x=\"460\" y=\"400\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"420\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">勉強会の型（毎回この順）</text>\n  <text x=\"472\" y=\"438\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"># → configure terminal → hostname … → no ip domain lookup</text>\n  <text x=\"472\" y=\"453\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ line console 0 → logging synchronous → end</text>\n  <text x=\"472\" y=\"468\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ interface … → ip address … → no shutdown → end</text>\n  <text x=\"472\" y=\"483\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ show ip interface brief で up/up を確認 → ping</text>\n</svg>","text":"<svg viewBox=\"0 0 900 540\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"IOS のモード地図\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"540\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">別枠 C：IOS のモード地図。「今どこにいるか」はプロンプトの末尾で分かる</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">試験のシミュレーション問題は「どのモードで、どのコマンドを打つか」。勉強会で毎回打った型を地図にする</text>\n  <rect x=\"20\" y=\"80\" width=\"400\" height=\"70\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">ユーザーモード（見るだけ・一部）</text>\n  <text x=\"408\" y=\"100\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router></text>\n  <text x=\"32\" y=\"118\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">電源を入れて最初にいる場所。ping や一部の show だけ</text>\n  <line x1=\"220\" y1=\"150\" x2=\"220\" y2=\"172\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,171 225,171 220,180\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"170\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">enable</text>\n  <text x=\"232\" y=\"158\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: disable / exit）</text>\n  <rect x=\"20\" y=\"180\" width=\"400\" height=\"80\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"200\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">特権モード（全部見る・保存する）</text>\n  <text x=\"408\" y=\"200\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router#</text>\n  <text x=\"32\" y=\"218\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">show run / show ip route / show vlan brief / show interfaces …</text>\n  <text x=\"32\" y=\"233\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">copy running-config startup-config（保存）／reload（再起動）</text>\n  <line x1=\"220\" y1=\"260\" x2=\"220\" y2=\"282\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,281 225,281 220,290\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"280\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">configure terminal</text>\n  <text x=\"232\" y=\"268\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: end または Ctrl+Z で # へ）</text>\n  <rect x=\"20\" y=\"290\" width=\"400\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"310\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">グローバル設定モード（機器全体の設定）</text>\n  <text x=\"408\" y=\"310\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router(config)#</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">hostname / no ip domain lookup / vlan 10 / ip route …</text>\n  <text x=\"32\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ここから「対象」を指定して下の階へ降りる</text>\n  <line x1=\"220\" y1=\"380\" x2=\"220\" y2=\"402\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"215,401 225,401 220,410\" fill=\"#0a7aff\"/>\n  <text x=\"232\" y=\"400\" text-anchor=\"start\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">interface … / line … / router ospf …</text>\n  <text x=\"232\" y=\"388\" text-anchor=\"start\" font-size=\"9\" fill=\"#6b7280\">（戻る: exit で 1 つ上へ）</text>\n  <rect x=\"20\" y=\"410\" width=\"400\" height=\"110\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"430\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">サブ設定モード（対象ごとの設定）</text>\n  <text x=\"408\" y=\"430\" text-anchor=\"end\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">Router(config-if)# など</text>\n  <text x=\"32\" y=\"448\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-if)　インターフェース：ip address / no shutdown / switchport …</text>\n  <text x=\"32\" y=\"463\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-subif)　サブインターフェース：encapsulation dot1q 10</text>\n  <text x=\"32\" y=\"478\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-line)　コンソール・vty：password / login / logging synchronous</text>\n  <text x=\"32\" y=\"493\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">(config-router)　ルーティング：network … / passive-interface …</text>\n  <rect x=\"460\" y=\"80\" width=\"420\" height=\"150\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"100\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">2 つの設定ファイル</text>\n  <text x=\"472\" y=\"118\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">running-config：いま動いている設定（メモリ上）。打った設定は即ここに入る</text>\n  <text x=\"472\" y=\"133\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">startup-config：起動時に読む設定（保存領域）。copy run start で写す</text>\n  <text x=\"472\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">保存せずに再起動すると、打った設定は消える</text>\n  <text x=\"472\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の初期化 erase startup-config ＋ reload はこの仕組みを使っている</text>\n  <text x=\"472\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（VLAN の一覧だけは別ファイル vlan.dat。だから delete flash:vlan.dat も打った）</text>\n  <rect x=\"460\" y=\"250\" width=\"420\" height=\"130\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"270\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">読み方のコツ</text>\n  <text x=\"472\" y=\"288\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">プロンプトの末尾：>（見るだけ）／#（特権）／(config)#（全体）／(config-xx)#（対象）</text>\n  <text x=\"472\" y=\"303\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">show は # で打つ。設定の途中で打つなら do show … と頭に do を付ける</text>\n  <text x=\"472\" y=\"318\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">打ち消しは頭に no（no shutdown / no ip domain lookup）</text>\n  <text x=\"472\" y=\"333\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">?（疑問符）で、その場所で打てる語の一覧が出る</text>\n  <rect x=\"460\" y=\"400\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"420\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">勉強会の型（毎回この順）</text>\n  <text x=\"472\" y=\"438\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"># → configure terminal → hostname … → no ip domain lookup</text>\n  <text x=\"472\" y=\"453\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ line console 0 → logging synchronous → end</text>\n  <text x=\"472\" y=\"468\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ interface … → ip address … → no shutdown → end</text>\n  <text x=\"472\" y=\"483\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">→ show ip interface brief で up/up を確認 → ping</text>\n</svg>","line":51,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_59d4cc","type":"heading","depth":2,"markdown":"## 実機でなぞる型","text":"実機でなぞる型","line":106,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_401fba","type":"paragraph","markdown":"勉強会では、毎回この順でなぞりました。\n1 台を触り始めてから、通信が通るところまでを 1 本にした型です。","text":"勉強会では、毎回この順でなぞりました。\n1 台を触り始めてから、通信が通るところまでを 1 本にした型です。","line":108,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_06f58f","type":"list","markdown":"1. 特権モードから `configure terminal` で設定モードへ入る\n2. `hostname` で機器に名前を付ける（どの機器を触っているかがプロンプトで分かる）\n3. `no ip domain lookup` を打つ\n4. `line console 0` へ降りて `logging synchronous` を打ち、`end` で戻る\n5. `interface` で口を指定し、`ip address` を付け、`no shutdown` で開ける\n6. `end` で戻り、`show ip interface brief` で up/up になったか見る\n7. `ping` で相手まで届くか見る","text":"特権モードから configure terminal で設定モードへ入るhostname で機器に名前を付ける（どの機器を触っているかがプロンプトで分かる）no ip domain lookup を打つline console 0 へ降りて logging synchronous を打ち、end で戻るinterface で口を指定し、ip address を付け、no shutdown で開けるend で戻り、show ip interface brief で up/up になったか見るping で相手まで届くか見る","line":111,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_133a0a","type":"paragraph","markdown":"3 番の `no ip domain lookup` は、打ち間違いを待たされないためです。\nDNS の問い合わせが有効なままだと、機器は知らない言葉を「telnet で行きたい相手の名前」と受け取り、`Translating.....` と表示して名前を引きに行きます。\nこの動きを止めると、打ち間違いはその場でエラーとして返ってきます。","text":"3 番の no ip domain lookup は、打ち間違いを待たされないためです。\nDNS の問い合わせが有効なままだと、機器は知らない言葉を「telnet で行きたい相手の名前」と受け取り、Translating..... と表示して名前を引きに行きます。\nこの動きを止めると、打ち間違いはその場でエラーとして返ってきます。","line":119,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8d7906","type":"paragraph","markdown":"4 番の `logging synchronous` は、機器が勝手に出すメッセージと、入力中の行を混ぜないための設定です。","text":"4 番の logging synchronous は、機器が勝手に出すメッセージと、入力中の行を混ぜないための設定です。","line":123,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0a1be3","type":"heading","depth":2,"markdown":"## 読み方のコツ","text":"読み方のコツ","line":125,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b68d5d","type":"list","markdown":"- プロンプトの末尾を見ます。`>` は見るだけ、`#` は特権、`(config)#` は機器全体、`(config-xx)#` は対象ごとです。\n- 設定モードのまま一覧を見たいときは、頭に `do` を付けます（`do show ip route`）。ただし `do configure terminal` は打てません。\n- 打ち消しは頭に `no` を付けます。\n- `?` を打つと、その場所で打てる言葉の一覧が出ます。","text":"プロンプトの末尾を見ます。> は見るだけ、# は特権、(config)# は機器全体、(config-xx)# は対象ごとです。設定モードのまま一覧を見たいときは、頭に do を付けます（do show ip route）。ただし do configure terminal は打てません。打ち消しは頭に no を付けます。? を打つと、その場所で打てる言葉の一覧が出ます。","line":127,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bfd4d5","type":"heading","depth":2,"markdown":"## 本編との接続","text":"本編との接続","line":132,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e23b7d","type":"paragraph","markdown":"本編の記事が「手動」と書いた結びつきは、この地図のどこで打つかが決まっています。\n[ネットワーク\\_05\\_行きと帰り](/notes/nw-basics-05-static-route)（`/notes/nw-basics-05-static-route`）のスタティックルートは `(config)#`、[ネットワーク\\_06\\_VLAN間ルーティング](/notes/nw-basics-06-inter-vlan)（`/notes/nw-basics-06-inter-vlan`）のサブインターフェースは `(config-subif)#` で、打つ場所が違うだけで running-config に入るところまでは同じです。","text":"本編の記事が「手動」と書いた結びつきは、この地図のどこで打つかが決まっています。\nネットワーク_05_行きと帰り（/notes/nw-basics-05-static-route）のスタティックルートは (config)#、ネットワーク_06_VLAN間ルーティング（/notes/nw-basics-06-inter-vlan）のサブインターフェースは (config-subif)# で、打つ場所が違うだけで running-config に入るところまでは同じです。","line":134,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":137,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_6b32ef","type":"list","markdown":"- 図と本文のプロンプトは `Router>` `Router#` の形で書いています。出典にした Cisco の表は `Switch>` `Device#` の表記で、末尾の記号は同じです。\n- 図の注にある「erase startup-config と reload だけでは VLAN の一覧が消えないので、delete flash:vlan.dat も打った」という読みは、vlan.dat が別ファイルであることから導いたものです。この 2 つの言葉の組み合わせについて書いた Cisco の文は読んでいないので、未検証です。\n- vlan.dat の置き場所は機種で違います。出典の文書は、機種ごとに `flash:` `const_nvram:` `cat4000_flash:` と書き分けています。\n- Cisco の文書は、vlan.dat を手で消すと VLAN のデータベースに食い違いが出ることがあると注意しています。\n- 図と本文が挙げたモードは 4 段だけです。IOS にはこれ以外の設定モードもあります。","text":"図と本文のプロンプトは Router> Router# の形で書いています。出典にした Cisco の表は Switch> Device# の表記で、末尾の記号は同じです。図の注にある「erase startup-config と reload だけでは VLAN の一覧が消えないので、delete flash:vlan.dat も打った」という読みは、vlan.dat が別ファイルであることから導いたものです。この 2 つの言葉の組み合わせについて書いた Cisco の文は読んでいないので、未検証です。vlan.dat の置き場所は機種で違います。出典の文書は、機種ごとに flash: const_nvram: cat4000_flash: と書き分けています。Cisco の文書は、vlan.dat を手で消すと VLAN のデータベースに食い違いが出ることがあると注意しています。図と本文が挙げたモードは 4 段だけです。IOS にはこれ以外の設定モードもあります。","line":139,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":145,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5369f7","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [Cisco: Using the Command-Line Interface（Catalyst 9200）](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/16-9/command_reference/b_169_9200_cr/b_169_9200_cr_chapter_00.html) — ユーザー EXEC は「Switch>」、特権 EXEC は「While in user EXEC mode, enter the enable command.」「Device#」、グローバル設定は「Device(config)#」「To exit to privileged EXEC mode, enter exit or end, or press Ctrl-Z.」、インターフェース設定は「Device(config-if)#」、ライン設定は「specify a line with the line vty or line console command」「Device(config-line)#」、「You can enter a question mark (?) at the system prompt to display a list of commands available for each command mode.」\n- [Cisco: Managing Configuration Files](https://www.cisco.com/c/en/us/td/docs/ios/ios_xe/fundamentals/configuration/guide/TIPs_conversion/config_mgmt_xe_3s_Book/cf_config-files_xe.html) — 「The running configuration is stored in RAM.」「the startup configuration is stored in nonvolatile random-access memory (NVRAM)」「save the running configuration file to the startup configuration using the copy running-config startup-config EXEC command」\n- [Cisco: Maintain VLAN.DAT File on Catalyst Switches](https://www.cisco.com/c/en/us/support/docs/switches/catalyst-2940-series-switches/109304-manage-vlandat.html) — 「This VLAN database is in the form of a separate file in NVRAM called the vlan.dat file」「If the vlan.dat file is deleted accidently and the switch gets reloaded, all the VLANs that were available on the switch are lost.」\n- [Cisco: EXEC Commands in Configuration Mode](https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/configuration/guide/12_2sr/cf_12_2sr_book/feat-do_cmd.html) — 設定モードから `do` を付けて show・clear・debug を打てる。`do configure terminal` は打てない\n- [Cisco: Prevent Domain Translation Messages after an Invalid Command Is Entered on a Router](https://www.cisco.com/c/en/us/support/docs/routers/10000-series-routers/46253-ipdomain-lookup.html) — 「the router believes that this is the host name of a device that the user attempts to reach via telnet」「the message 'Translating..... domain server (255.255.255.255)' appears in the console」\n- [Cisco: logging synchronous（Configuration Fundamentals Command Reference）](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/command/cf_command_ref/L_through_mode.html) — 「synchronize unsolicited messages and debug output with solicited Cisco IOS software output and prompts」","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）Cisco: Using the Command-Line Interface（Catalyst 9200） — ユーザー EXEC は「Switch>」、特権 EXEC は「While in user EXEC mode, enter the enable command.」「Device#」、グローバル設定は「Device(config)#」「To exit to privileged EXEC mode, enter exit or end, or press Ctrl-Z.」、インターフェース設定は「Device(config-if)#」、ライン設定は「specify a line with the line vty or line console command」「Device(config-line)#」、「You can enter a question mark (?) at the system prompt to display a list of commands available for each command mode.」Cisco: Managing Configuration Files — 「The running configuration is stored in RAM.」「the startup configuration is stored in nonvolatile random-access memory (NVRAM)」「save the running configuration file to the startup configuration using the copy running-config startup-config EXEC command」Cisco: Maintain VLAN.DAT File on Catalyst Switches — 「This VLAN database is in the form of a separate file in NVRAM called the vlan.dat file」「If the vlan.dat file is deleted accidently and the switch gets reloaded, all the VLANs that were available on the switch are lost.」Cisco: EXEC Commands in Configuration Mode — 設定モードから do を付けて show・clear・debug を打てる。do configure terminal は打てないCisco: Prevent Domain Translation Messages after an Invalid Command Is Entered on a Router — 「the router believes that this is the host name of a device that the user attempts to reach via telnet」「the message 'Translating..... domain server (255.255.255.255)' appears in the console」Cisco: logging synchronous（Configuration Fundamentals Command Reference） — 「synchronize unsolicited messages and debug output with solicited Cisco IOS software output and prompts」","line":147,"sources":["src_1","src_2","src_3","src_4","src_5","src_6"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":155,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_11adee","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n- 連載の入口: [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers)（`/notes/nw-basics-00-three-layers`）\n- 前の別枠: [ネットワーク\\_別枠B\\_構成の型](/notes/nw-basics-extra-b-topology)（`/notes/nw-basics-extra-b-topology`）\n- 次の別枠: [ネットワーク\\_別枠D\\_QoSの工程](/notes/nw-basics-extra-d-qos)（`/notes/nw-basics-extra-d-qos`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）前の別枠: ネットワーク_別枠B_構成の型（/notes/nw-basics-extra-b-topology）次の別枠: ネットワーク_別枠D_QoSの工程（/notes/nw-basics-extra-d-qos）","line":157,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}]}