Difficulty: Easy
Correct Answer: Issue the show cdp neighbors detail command on the router connected to the switch.
Explanation:
Introduction / Context:
When managing distributed networks, quickly discovering a connected Cisco device's IP address is invaluable. Cisco Discovery Protocol (CDP) lets directly connected Cisco devices advertise identity, platform, port, and management IP information.
Given Data / Assumptions:
Concept / Approach:
'show cdp neighbors' summarizes neighbors but typically does not list their IP address. The detailed form, 'show cdp neighbors detail', includes the Device-ID, platform, local/remote ports, and the Management address (IP), which is exactly what you need.
Step-by-Step Solution:
Verification / Alternative check:
Ping the retrieved IP. If needed, run 'show lldp neighbors detail' in mixed-vendor environments using LLDP.
Why Other Options Are Wrong:
show ip arp: Shows IP-to-MAC mappings learned on L3 interfaces; may not include the switch SVI if not recently communicated. show ip route: Displays routes, not neighbor IPs. show cdp neighbor: Summary view; usually lacks the IP field.
Common Pitfalls:
CDP disabled globally or on the interface, or management VLAN SVI shut down on the switch will prevent seeing a useful IP.
Final Answer:
Issue the show cdp neighbors detail command on the router connected to the switch.
Discussion & Comments