次に、show cdp neighbors コマンドの出力例を示します。
RP/0/RSP0/CPU0:router# show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
router1 Mg0/0/CPU0/0 177 T S WS-C2924M Fa0/12
router2 PO0/4/0/0 157 R 12008/GRP PO0/4/0/1
次に、show cdp neighbors コマンドの出力例を示します。 この例では、CDP ネイバーの詳細な情報を表示するために、オプションの type instance 引数をオプションの detail キーワードと一緒に使用しています。 出力には、IPv4 アドレスと IPv6 アドレスの両方の情報が含まれます。
RP/0/RSP0/CPU0:router# show cdp neighbors POS 0/4/0/0 detail
-------------------------
Device ID: uut-user
SysName : uut-user
Entry address(es):
IPv4 address: 1.1.1.1
IPv6 address: 1::1
IPv6 address: 2::2
Platform: cisco 12008/GRP, Capabilities: Router
Interface: POS0/4/0/3
Port ID (outgoing port): POS0/2/0/3
Holdtime : 177 sec
Version :
Cisco IOS XR Software, Version 0.0.0[Default]
Copyright (c) 2005 by cisco Systems, Inc.
advertisement version: 2
次に、show cdp entry コマンドの出力例を示します。 この例では、特定の CDP ネイバーに関するエントリ情報を表示するために、オプションの entry 引数を使用しています。
RP/0/RSP0/CPU0:router# show cdp entry router2
advertisement version: 2
-------------------------
Device ID: router2
SysName : router2
Entry address(es):
Platform: cisco 12008/GRP, Capabilities: Router
Interface: POS0/4/0/0
Port ID (outgoing port): POS0/4/0/1
Holdtime : 145 sec
Version :
Cisco IOS XR Software, Version 0.48.0[Default]
Copyright (c) 2004 by cisco Systems, Inc.
advertisement version: 2
次に、show cdp interface コマンドの出力例を示します。 この例では、Packet over SONET/SDH(POS)インターフェイス 0/4/0/0 に関する CDP 情報が表示されます。
RP/0/RSP0/CPU0:router# show cdp interface pos 0/4/0/0
POS0/4/0/0 is Up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
次に、show cdp traffic コマンドの出力例を示します。
RP/0/RSP0/CPU0:router# show cdp traffic
CDP counters :
Packets output: 194, Input: 99
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
No memory: 0, Invalid packet: 0, Truncated: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 194, Input: 99
Unrecognize Hdr version: 0, File open failed: 0
次に、show cdp traffic コマンドの出力例を示します。 この例では、指定のノードから CDP を使用してデバイス間で収集されるトラフィックの情報を表示するため、オプションの location キーワードと node-id 引数を使用しています。
RP/0/RSP0/CPU0:router# show cdp traffic location 0/4/cpu0
CDP counters :
Packets output: 16, Input: 13
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
No memory: 0, Invalid packet: 0, Truncated: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 16, Input: 13
Unrecognize Hdr version: 0, File open failed: 0