この製品のマニュアルセットは、偏向のない言語を使用するように配慮されています。このマニュアルセットでの偏向のない言語とは、年齢、障害、性別、人種的アイデンティティ、民族的アイデンティティ、性的指向、社会経済的地位、およびインターセクショナリティに基づく差別を意味しない言語として定義されています。製品ソフトウェアのユーザーインターフェイスにハードコードされている言語、RFP のドキュメントに基づいて使用されている言語、または参照されているサードパーティ製品で使用されている言語によりドキュメントに例外が存在する場合があります。シスコのインクルーシブランゲージに対する取り組みの詳細は、こちらをご覧ください。
このドキュメントは、米国シスコ発行ドキュメントの参考和訳です。リンク情報につきましては、日本語版掲載時点で、英語版にアップデートがあり、リンク先のページが移動/変更されている場合がありますことをご了承ください。あくまでも参考和訳となりますので、正式な内容については米国サイトのドキュメントを参照ください。
Cisco Discovery Protocol(CDP)は、データ リンク層の上で動作し、接続されているすべてのシスコ製デバイスに情報をアドバタイズし、接続されているシスコ製デバイスに関する情報を検出および表示するために使用されます。CDP は、シスコ製のすべての機器で動作します。
CDP はネイバー デバイスのプロトコル アドレスを収集し、各デバイスのプラットフォームを検出します。CDP の動作はデータ リンク レイヤ上に限定されます。異なるレイヤ 3 プロトコルをサポートする 2 つのシステムで相互学習が可能です。
CDP が設定された各デバイスは、マルチキャスト アドレスに定期的にアドバタイズメントを送信します。各デバイスは SNMP メッセージを受信できるアドレスを最低 1 つはアドバタイズします。アドバタイズメントには保持時間情報も含まれます。保持時間は、受信デバイスが CDP 情報を破棄するまでに保持する時間の長さを表します。アドバタイズメントまたはリフレッシュ タイマーおよびホールド タイマーを設定できます。
CDP Version 2(CDPv2)では、接続デバイス間でネイティブ VLAN ID またはポート デュプレックス ステートが一致していないインスタンスを追跡できます。
CDP では、次の Type-Length-Value(TLV)フィールドがアドバタイズされます。
すべての CDP パケットに VLAN ID が含まれます。レイヤ 2 アクセス ポート上で CDP を設定した場合、そのアクセス ポートから送信される CDP パケットには、アクセス ポートの VLAN ID が含まれます。レイヤ 2 トランク ポート上で CDP を設定した場合は、そのトランク ポートから送信される CDP パケットに、トランク ポート上で許可設定されている最小の VLAN ID が含まれます。トランク ポートは、そのトランク ポートの許可 VLAN リストに指定されている VLAN ID であれば、どの VLAN ID が含まれている CDP パケットでも受信できます。VLAN の詳細については、『 Cisco Nexus 1000V Layer 2 Switching Configuration Guide, Release 4.0 』を参照してください。
CDP ではステートレス リスタートがサポートされています。リブート後またはスーパーバイザ スイッチオーバー後に、実行コンフィギュレーションが適用されます。
CDP に関する設定時の注意事項および制約事項は、次のとおりです。
• 接続数が 256 のハブにポートを接続した場合、CDP はポートあたり最大 256 のネイバーを検出できます。
• CDP を設定する前に、CDP 機能がグローバルにイネーブルになっている必要があります。CDP は、デフォルトでグローバルにイネーブルになっていますが、「CDP 機能のグローバルなディセーブル化」を使用してディセーブルにできます。
この手順を開始する前に、次の点を理解または実行しておく必要があります。
|
|
|
---|---|---|
|
||
|
この手順を開始する前に、次の点を理解または実行しておく必要があります。
|
|
|
---|---|---|
|
||
|
この手順を開始する前に、次の点を理解または実行しておく必要があります。
• CDP 機能がグローバルにイネーブルになっていること。CDP はデフォルトでイネーブルになっていますが、「CDP 機能のグローバルなイネーブル化」を使用して再度イネーブルにすることもできます。
• CDP が、デフォルトですべてのインターフェイス上でイネーブルになっていること。
• CDP が、設定対象のインターフェイスで現在ディセーブルになっていること。
• CDP の詳細については、「CDP の概要」を参照してください。
2. interface interface-type slot/port
|
|
|
---|---|---|
|
||
interface interface-type slot/port |
||
|
||
|
||
show cdp interface interface-type slot/port n1000v(config-if)# show cdp interface mgmt0 |
||
copy running-config startup-config |
ポート チャネル 2 で CDP をイネーブルにする例を示します。
n1000v(config)# interface port-channel 2
n1000v(config-if)# copy running-config startup-config
この手順を開始する前に、次の点を理解または実行しておく必要があります。
(注) CDP がデバイス上でディセーブルになっている場合、すべてのインターフェイスでもディセーブルになっています。
• CDP が、設定対象のインターフェイスで現在イネーブルになっていること。
• CDP の詳細については、「CDP の概要」を参照してください。
2. interface interface-type slot/port
|
|
|
---|---|---|
|
||
interface interface-type slot/port |
||
|
||
show cdp interface interface-type slot/port |
||
copy running-config startup-config |
次に、mgmt0 上で CDP をディセーブルにする例を示します。
n1000v(config)# interface mgmt0
n1000v(config-if)# no cdp enable
n1000v(config-if)# show cdp interface mgmt0
Sending CDP packets every 60 seconds
n1000v(config-if)# copy running-config startup-config
この手順を開始する前に、次の点を理解または実行しておく必要があります。
• デバイス上で現在サポートされている CDP のバージョンを知っておく必要があります。
• 一度にアドバタイズされるのは 1 つのバージョンの CDP(バージョン 1 またはバージョン 2)だけです。
• CDP の詳細については、「CDP の概要」を参照してください。
この手順を開始する前に、次の点を理解または実行しておく必要があります。
• デバイス ID を割り当てる場合、MAC アドレス、シャーシ シリアル番号、Organizationally Unique Identifier(OUI; 組織固有識別子)のどれを使用するかがわかっていること。
• 保持時間を設定する場合、CDP がネイバー情報を保持する時間がわかっていること。
• アップストリーム cat6k スイッチからの出力を表示するには、 show cdp neighbor コマンドを使用すること。
• CDP タイマーを設定する場合は、CDP がアドバタイズする頻度がわかっていること。
• CDP の詳細については、「CDP の概要」を参照してください。
2. (任意) cdp format device-id { mac-address | other | serial-number }
3. show cdp neighbors from the upstream device
CDP 統計情報を消去するには、次のいずれかのコマンドを使用します。
|
|
---|---|
CDP コンフィギュレーション情報を表示するには、次のいずれかのコマンドを使用します。
|
|
---|---|
CDP がイネーブルになっているすべてのインターフェイスを表示します。 例 2-1(P.2-11) を参照してください。 |
|
例 2-2(P.2-12) を参照してください。 |
|
例 2-4(P.2-14) を参照してください。 |
|
例 2-5(P.2-14) を参照してください。 |
|
show cdp neighbors { detail | interface interface-type slot/port } |
例 2-6(P.2-14) を参照してください。 |
例 2-7(P.2-14) を参照してください。 |
例 2-6 show cdp neighbors interface
例 2-7 show cdp traffic interface
表 2-1 に、CDP パラメータのデフォルト設定を示します。
|
|
---|---|
• 「関連資料」
• 「標準規格」
|
|
---|---|
『Cisco Nexus 1000V Layer 2 Switching Configuration Guide, Release 4.0 』 |
|
|
---|---|
この機能でサポートされる新規または改訂された標準規格はありません。また、この機能による既存の標準規格サポートの変更はありません。 |