You are the network administrator for your company. You recently configured Cisco Discovery Protocol (CDP) in the network. You want to view output regarding all of the neighboring devices discovered by CDP. This information should include network address, enabled protocols, and hold time.
Which Cisco Internetwork Operating System (IOS) command would allow you to accomplish this task?
A. show cdp
B. show cdp entry
C. show cdp neighbor entries
D. show cdp neighbors detail
Correct Answer: D
Explanation:
In this scenario, you should use the show cdp neighbors detail command to view the details of the neighboring devices that were discovered by CDP. CDP is a Layer 2 (data link layer) protocol used to find information about neighboring network devices. The show cdp neighbors detail command is used to view details such as network address, enabled protocols, and hold time. The complete syntax of this command is:
show cdp neighbors [type number] [detail]
The command parameters are defined in this way:
type: An optional parameter which specifies the type of interface used to connect to the neighbors for which you require information.
number: An optional parameter used to specify the interface number connected to the neighbors for which you want information.
detail: An optional parameter used to get detailed information about neighboring devices, such as network address, enabled protocols, software version and hold time.
The show cdp command is incorrect because this command is used to view global CDP information such as the timer and hold time. The show cdp entry command is incorrect because this command is used to view information about a specific neighboring device.
The show cdp neighbor entries command is incorrect because this is not a valid Cisco IOS command.