{"schema":"article/1","id":"art_bd5d2e9243","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"隣の機器に、自分の名前と口を名乗り続ける","rawTitle":"隣の機器に、自分の名前と口を名乗り続ける","slug":"nw-basics-07c-cdp-lldp","file":"ネットワーク_07c_CDPとLLDP","relPath":"content/published/ネットワーク_07c_CDPとLLDP.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","cdp","lldp","concept"],"summary":"線の向こうに何がつながっているかを、機器が定期的な名乗りで互いに覚える仕組み（CDP と LLDP）を、通信フローに関与しないテーブルとして 1 枚の図で見る","date":"2026-09-14","updated":"2026-09-14","links":["nw-basics-index","nw-basics-00-three-layers","nw-basics-04-trunk","nw-basics-07b-vrf"],"blocks":[{"id":"blk_c16eaa","type":"paragraph","markdown":"勉強会では、各インターフェースの説明欄に、接続先の機器名とその機器のどの口かを手で書きました。","text":"勉強会では、各インターフェースの説明欄に、接続先の機器名とその機器のどの口かを手で書きました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8b8478","type":"paragraph","markdown":"書いておくと、あとから設定を見るだけで線の向こうが分かります。\n書き忘れると、ケーブルを目でたどることになります。\nその手書きを機器が自分でやるのが、この記事で扱う 2 つです。","text":"書いておくと、あとから設定を見るだけで線の向こうが分かります。\n書き忘れると、ケーブルを目でたどることになります。\nその手書きを機器が自分でやるのが、この記事で扱う 2 つです。","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_47e243","type":"heading","depth":4,"markdown":"#### 隣接テーブル","text":"隣接テーブル","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9f11b5","type":"paragraph","markdown":"論理のもので、自動で育ちます。\nスイッチが持つ MAC アドレステーブルとは別に、もう 1 つ増える表です。\n中身は、口ごとの「向こうにいる機器の名前・その機器のどの口か・管理用の IP・機種」です。","text":"論理のもので、自動で育ちます。\nスイッチが持つ MAC アドレステーブルとは別に、もう 1 つ増える表です。\n中身は、口ごとの「向こうにいる機器の名前・その機器のどの口か・管理用の IP・機種」です。","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f83c8f","type":"heading","depth":4,"markdown":"#### 名乗りのフレーム","text":"名乗りのフレーム","line":19,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_957172","type":"paragraph","markdown":"各機器が、自分の名前・口・IP・機種を書いて、全部のポートから定期的に送るものです。\n宛先は決まった特別な MAC です。隣までしか届かないものとして扱いますが、途中のスイッチが転送しないことは今回引いた資料では確認していません。","text":"各機器が、自分の名前・口・IP・機種を書いて、全部のポートから定期的に送るものです。\n宛先は決まった特別な MAC です。隣までしか届かないものとして扱いますが、途中のスイッチが転送しないことは今回引いた資料では確認していません。","line":21,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_4856d4","type":"heading","depth":4,"markdown":"#### CDP","text":"CDP","line":24,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f95735","type":"paragraph","markdown":"Cisco 独自のものです。\nデータリンク層で動くので、上位のプロトコルが違う機器同士でも互いを知ることができます。\n既定では 60 秒ごとに送り、受け取った情報は 180 秒で捨てます。","text":"Cisco 独自のものです。\nデータリンク層で動くので、上位のプロトコルが違う機器同士でも互いを知ることができます。\n既定では 60 秒ごとに送り、受け取った情報は 180 秒で捨てます。","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5178a9","type":"heading","depth":4,"markdown":"#### LLDP","text":"LLDP","line":30,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_fe2b54","type":"paragraph","markdown":"IEEE 802.1AB の標準です。\nCisco 以外の機器とも通じるように備わっています。\nCisco の機器では既定で無効なので、使うには有効にします。\n既定では 30 秒ごとに送り、受け取った情報は 120 秒で捨てます。","text":"IEEE 802.1AB の標準です。\nCisco 以外の機器とも通じるように備わっています。\nCisco の機器では既定で無効なので、使うには有効にします。\n既定では 30 秒ごとに送り、受け取った情報は 120 秒で捨てます。","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":37,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a4e8ef","type":"list","markdown":"- 自分の口 ⇄ 隣の機器の口は自動です。受け取った名乗りのフレームから書かれます。\n- 隣接テーブル ⇄ 通信の転送は結び付きません。この表を見て通信先を決めることはありません。\n- 隣接テーブル ⇄ 人の確認は手動です。人が表示させて、線の向こうを確かめます。","text":"自分の口 ⇄ 隣の機器の口は自動です。受け取った名乗りのフレームから書かれます。隣接テーブル ⇄ 通信の転送は結び付きません。この表を見て通信先を決めることはありません。隣接テーブル ⇄ 人の確認は手動です。人が表示させて、線の向こうを確かめます。","line":39,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":43,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_08be1c","type":"paragraph","markdown":"この 2 つは通信フローに関与しません。\nPC からの通信は、これまでの図のとおりに MAC と IP で運ばれます。\n裏で定期的に流れているのは名乗りだけで、それが表を育てます。","text":"この 2 つは通信フローに関与しません。\nPC からの通信は、これまでの図のとおりに MAC と IP で運ばれます。\n裏で定期的に流れているのは名乗りだけで、それが表を育てます。","line":45,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_daa1a1","type":"paragraph","markdown":"名乗りの流れは 3 つです。","text":"名乗りの流れは 3 つです。","line":49,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5ed435","type":"paragraph","markdown":"① 各機器は、自分の名前・口・IP・機種を書いたフレームを、全部のポートから定期的に送ります。","text":"① 各機器は、自分の名前・口・IP・機種を書いたフレームを、全部のポートから定期的に送ります。","line":51,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b9efb0","type":"paragraph","markdown":"② 受け取った側は「この口の向こうは誰か」を隣接テーブルに書きます。一定時間来なければ消します。","text":"② 受け取った側は「この口の向こうは誰か」を隣接テーブルに書きます。一定時間来なければ消します。","line":53,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2ee591","type":"paragraph","markdown":"③ 人はコマンドで表を表示させ、線の向こうを確かめます。","text":"③ 人はコマンドで表を表示させ、線の向こうを確かめます。","line":55,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_faf031","type":"heading","depth":2,"markdown":"## 補 3 の図","text":"補 3 の図","line":57,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8536a7","type":"paragraph","markdown":"図の上半分が 2 台の機器と互いの名乗り、下半分が名乗りの流れと 2 つの違いです。","text":"図の上半分が 2 台の機器と互いの名乗り、下半分が名乗りの流れと 2 つの違いです。","line":59,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_72b50d","type":"html","markdown":"<svg viewBox=\"0 0 900 480\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"CDP と LLDP\" 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\">CDP / LLDP：隣の機器に「私は誰で、この口です」と名乗り続ける</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">勉強会で description に「接続先のホスト名と物理ポートの番号」を手で書いた。あれを機器が自動でやるのがこの 2 つ</text>\n  <rect x=\"80\" y=\"110\" width=\"220\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"92\" y=\"130\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">スイッチ SW-1</text>\n  <text x=\"92\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">隣接テーブル（自動で育つ）</text>\n  <text x=\"92\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">Gi0/8 の向こう：RT-1 の Gi8</text>\n  <text x=\"92\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（名前・口・IP・機種）</text>\n  <rect x=\"291\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"300\" y=\"159\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0/8</text>\n  <line x1=\"309\" y1=\"155\" x2=\"571\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"580\" y=\"110\" width=\"220\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"592\" y=\"130\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ RT-1</text>\n  <text x=\"592\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">隣接テーブル（自動で育つ）</text>\n  <text x=\"592\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">Gi8 の向こう：SW-1 の Gi0/8</text>\n  <text x=\"592\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（名前・口・IP・機種）</text>\n  <rect x=\"571\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"580\" y=\"159\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi8</text>\n  <line x1=\"320\" y1=\"132\" x2=\"552\" y2=\"132\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"551,127 551,137 560,132\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"132\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"136\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"560\" y1=\"178\" x2=\"328\" y2=\"178\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"329,173 329,183 320,178\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"178\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"182\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <text x=\"440\" y=\"120\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">「私は SW-1。この口は Gi0/8。管理 IP は…」（60 秒ごと）</text>\n  <text x=\"440\" y=\"196\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">「私は RT-1。この口は Gi8。…」（60 秒ごと）</text>\n  <rect x=\"20\" y=\"240\" width=\"540\" height=\"125\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"260\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"32\" y=\"278\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">① 各機器は自分の名前・口・IP・機種を書いたフレームを、全ポートから定期的に送る</text>\n  <text x=\"32\" y=\"293\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　宛先 MAC は決まった特別な番地。スイッチはこのフレームを転送しない（隣にしか届かない）</text>\n  <text x=\"32\" y=\"308\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">② 受け取った側は「この口の向こうは誰か」を隣接テーブルに書く</text>\n  <text x=\"32\" y=\"323\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　一定時間（180 秒）来なければ消す</text>\n  <text x=\"32\" y=\"338\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">③ 人は show cdp neighbors / show lldp neighbors で「線の向こう」を確かめる</text>\n  <rect x=\"580\" y=\"240\" width=\"300\" height=\"125\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"592\" y=\"260\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">2 つの違い</text>\n  <text x=\"592\" y=\"278\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">CDP：Cisco 独自。Cisco 同士なら初期状態で動く</text>\n  <text x=\"592\" y=\"293\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">LLDP：標準（IEEE 802.1AB）。他社の機器・</text>\n  <text x=\"592\" y=\"308\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　IP 電話・AP とも通じる。Cisco では有効化が要る</text>\n  <text x=\"592\" y=\"323\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">どちらも「隣にしか届かない」のは同じ</text>\n  <text x=\"592\" y=\"338\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">名乗る中身は誰でも読めるので、外向きの口では止める</text>\n  <text x=\"20\" y=\"400\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"420\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：隣接テーブル（論理・自動で育つ。MAC アドレステーブルの隣にもう 1 つ）</text>\n  <text x=\"20\" y=\"438\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：自分の口 ⇄ 隣の機器の口（自動。名乗りのフレームから）。図 4 で「両側の設定を人がそろえる」と言った、その確認に使う</text>\n  <text x=\"20\" y=\"456\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：通信フローには関与しない。裏で定期的に流れている「名乗り」で、テーブルを育てるだけ</text>\n</svg>","text":"<svg viewBox=\"0 0 900 480\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"CDP と LLDP\" 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\">CDP / LLDP：隣の機器に「私は誰で、この口です」と名乗り続ける</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">勉強会で description に「接続先のホスト名と物理ポートの番号」を手で書いた。あれを機器が自動でやるのがこの 2 つ</text>\n  <rect x=\"80\" y=\"110\" width=\"220\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"92\" y=\"130\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">スイッチ SW-1</text>\n  <text x=\"92\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">隣接テーブル（自動で育つ）</text>\n  <text x=\"92\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">Gi0/8 の向こう：RT-1 の Gi8</text>\n  <text x=\"92\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（名前・口・IP・機種）</text>\n  <rect x=\"291\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"300\" y=\"159\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0/8</text>\n  <line x1=\"309\" y1=\"155\" x2=\"571\" y2=\"155\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"580\" y=\"110\" width=\"220\" height=\"90\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"592\" y=\"130\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ RT-1</text>\n  <text x=\"592\" y=\"148\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">隣接テーブル（自動で育つ）</text>\n  <text x=\"592\" y=\"163\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">Gi8 の向こう：SW-1 の Gi0/8</text>\n  <text x=\"592\" y=\"178\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（名前・口・IP・機種）</text>\n  <rect x=\"571\" y=\"146\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"580\" y=\"159\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi8</text>\n  <line x1=\"320\" y1=\"132\" x2=\"552\" y2=\"132\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"551,127 551,137 560,132\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"132\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"136\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <line x1=\"560\" y1=\"178\" x2=\"328\" y2=\"178\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"329,173 329,183 320,178\" fill=\"#0a7aff\"/>\n  <circle cx=\"440\" cy=\"178\" r=\"9\" fill=\"#0a7aff\"/><text x=\"440\" y=\"182\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <text x=\"440\" y=\"120\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">「私は SW-1。この口は Gi0/8。管理 IP は…」（60 秒ごと）</text>\n  <text x=\"440\" y=\"196\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">「私は RT-1。この口は Gi8。…」（60 秒ごと）</text>\n  <rect x=\"20\" y=\"240\" width=\"540\" height=\"125\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"260\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"32\" y=\"278\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">① 各機器は自分の名前・口・IP・機種を書いたフレームを、全ポートから定期的に送る</text>\n  <text x=\"32\" y=\"293\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　宛先 MAC は決まった特別な番地。スイッチはこのフレームを転送しない（隣にしか届かない）</text>\n  <text x=\"32\" y=\"308\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">② 受け取った側は「この口の向こうは誰か」を隣接テーブルに書く</text>\n  <text x=\"32\" y=\"323\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　一定時間（180 秒）来なければ消す</text>\n  <text x=\"32\" y=\"338\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">③ 人は show cdp neighbors / show lldp neighbors で「線の向こう」を確かめる</text>\n  <rect x=\"580\" y=\"240\" width=\"300\" height=\"125\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"592\" y=\"260\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">2 つの違い</text>\n  <text x=\"592\" y=\"278\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">CDP：Cisco 独自。Cisco 同士なら初期状態で動く</text>\n  <text x=\"592\" y=\"293\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">LLDP：標準（IEEE 802.1AB）。他社の機器・</text>\n  <text x=\"592\" y=\"308\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　IP 電話・AP とも通じる。Cisco では有効化が要る</text>\n  <text x=\"592\" y=\"323\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">どちらも「隣にしか届かない」のは同じ</text>\n  <text x=\"592\" y=\"338\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">名乗る中身は誰でも読めるので、外向きの口では止める</text>\n  <text x=\"20\" y=\"400\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"420\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：隣接テーブル（論理・自動で育つ。MAC アドレステーブルの隣にもう 1 つ）</text>\n  <text x=\"20\" y=\"438\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：自分の口 ⇄ 隣の機器の口（自動。名乗りのフレームから）。図 4 で「両側の設定を人がそろえる」と言った、その確認に使う</text>\n  <text x=\"20\" y=\"456\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：通信フローには関与しない。裏で定期的に流れている「名乗り」で、テーブルを育てるだけ</text>\n</svg>","line":61,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f51c21","type":"heading","depth":2,"markdown":"## 図 4 との接続","text":"図 4 との接続","line":104,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2d4163","type":"paragraph","markdown":"図 4 で、トランクの両端は人がそろえると書きました。\n通す VLAN の一覧は各スイッチが自分の分を持つので、どちらの口とどちらの口が向かい合っているかを取り違えると、そろえたつもりでそろいません。\n隣接テーブルは、その向かい合わせを機器の側から見せます。","text":"図 4 で、トランクの両端は人がそろえると書きました。\n通す VLAN の一覧は各スイッチが自分の分を持つので、どちらの口とどちらの口が向かい合っているかを取り違えると、そろえたつもりでそろいません。\n隣接テーブルは、その向かい合わせを機器の側から見せます。","line":106,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_c94da2","type":"paragraph","markdown":"この表が育っても、通信の通り道は変わりません。\n図 4 から図 7 までの通信フローは、この表があってもなくても変わりません。","text":"この表が育っても、通信の通り道は変わりません。\n図 4 から図 7 までの通信フローは、この表があってもなくても変わりません。","line":110,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":113,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9b0254","type":"list","markdown":"- 図の中の「60 秒ごと」「180 秒」は CDP の既定値です。LLDP の既定値は 30 秒と 120 秒で、同じではありません。\n- 図には「スイッチはこのフレームを転送しない（隣にしか届かない）」と書いてありますが、それを述べた一次資料を今回は引いていないので未検証です。\n- 図の「名乗る中身は誰でも読めるので、外向きの口では止める」も、出典を確かめていないので未検証です。\n- 図が挙げている中身（名前・口・IP・機種）は、実際に送られる項目の一部です。項目の全体は規格や機種によって違います。","text":"図の中の「60 秒ごと」「180 秒」は CDP の既定値です。LLDP の既定値は 30 秒と 120 秒で、同じではありません。図には「スイッチはこのフレームを転送しない（隣にしか届かない）」と書いてありますが、それを述べた一次資料を今回は引いていないので未検証です。図の「名乗る中身は誰でも読めるので、外向きの口では止める」も、出典を確かめていないので未検証です。図が挙げている中身（名前・口・IP・機種）は、実際に送られる項目の一部です。項目の全体は規格や機種によって違います。","line":115,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":120,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e87c21","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [Cisco: Configuring CDP（Catalyst 3750-X/3560-X）](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swcdp.html) — 「CDP is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices」。既定は CDP timer 60 秒、CDP holdtime 180 秒\n- [Cisco: Configuring LLDP（Catalyst 3750-X/3560-X）](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swlldp.html) — 他社機器の対応と相互運用のために IEEE 802.1AB の LLDP を備える。LLDP は既定で無効。既定は timer 30 秒、holdtime 120 秒","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）Cisco: Configuring CDP（Catalyst 3750-X/3560-X） — 「CDP is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices」。既定は CDP timer 60 秒、CDP holdtime 180 秒Cisco: Configuring LLDP（Catalyst 3750-X/3560-X） — 他社機器の対応と相互運用のために IEEE 802.1AB の LLDP を備える。LLDP は既定で無効。既定は timer 30 秒、holdtime 120 秒","line":122,"sources":["src_1","src_2"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":126,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_aafbec","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- 土台になる記事（図 4）: [ネットワーク\\_04\\_トランクとタグ](/notes/nw-basics-04-trunk)（`/notes/nw-basics-04-trunk`）\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）土台になる記事（図 4）: ネットワーク_04_トランクとタグ（/notes/nw-basics-04-trunk）前の補足（補 2）: ネットワーク_07b_VRF（/notes/nw-basics-07b-vrf）","line":128,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swcdp.html","title":"Cisco: Configuring CDP（Catalyst 3750-X/3560-X）","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swlldp.html","title":"Cisco: Configuring LLDP（Catalyst 3750-X/3560-X）","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}