Finding a remote Cisco device's management IP: You need the IP address of a remote switch (reachable over a connected router). Which IOS command on the adjacent router reveals the neighbor's IP address directly via Cisco Discovery Protocol (CDP)?

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:

  • The router is directly connected to the target switch.
  • CDP is enabled on both interfaces and devices.
  • You need the switch's IP for remote management (Telnet/SSH/SNMP).


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:

On the adjacent router, enter privileged EXEC mode.Run 'show cdp neighbors detail'.Locate the 'Management address(es):' or 'IP address:' field in the output for the target neighbor.Use that IP to Telnet/SSH or to update documentation.


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.

More Questions from Managing a Cisco Internetwork

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion