09-05-2022 09:54 PM
I'm unable to login a manageable switch from a router. I don't know IP address of switch. How can I access the switch from router by taking ssh.
Switch:2960
09-05-2022 10:38 PM
first try to get IP of switch. you can use CDP neighbors commands to check that or need to manually check that by login to switch. then make sure router have connectivity to that IP and use that to SSH.
09-05-2022 11:10 PM
Hello,
as far as I recall, you need to use the 'show cdp neighbors detail' command in order to be able to see the IP address:
Switch#sh cdp neighbors gigabitEthernet 0/0 detail
-------------------------
Device ID: Switch
Entry address(es):
IP address: 192.168.1.2
Platform: Cisco , Capabilities: Router Switch IGMP
Interface: GigabitEthernet0/0, Port ID (outgoing port): GigabitEthernet0/0
Holdtime : 175 sec
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide