03-26-2021 02:08 AM - edited 03-26-2021 02:10 AM
Hello,
I search the command to know what is connected on a TRUNK port (it could be also a ACCESS port).
I need to know the IP address.
(Catalyst 2960-X / 9200L / 9300)
Regards,
Solved! Go to Solution.
03-26-2021 04:07 AM
I plan to enable CDP on all the cisco Switchs.
#Conf t
(config)#cdp run
(config)#do wr mem
(config)#end
#show cdp neighbors
03-26-2021 06:22 AM
this what I had to suggest in my original reply
if the cisco device you can do cdp neighbour
03-26-2021 02:18 AM
what is connected ?
if the cisco device you can do cdp neighbour - if the end device you need to identify with mac vendor lookup.
The access port is easy -
show mac address-table [address mac-address] [dynamic | multicast | static] [interface {ethernet slot/port | port-channel number}] [vlan vlan-id]
Then match the MAC address with IP
show ip arp | in xxxx.xxxx.xxxxx (mac address)
For the Trunk - if they are many VLAN in the Trunk allowed list - you need to trace based on the mac learning from Trunk or port-channel, go to the switch and do as suggested above process to get IP address ? (Layer 2 you get MAC address, Layer 3 you get IP address)
make sense?
03-26-2021 02:24 AM - edited 03-26-2021 02:49 AM
using with :
ping all the IP address known, from the switch, to fill the ARP Table.
show mac address-table | include Gi1/0/27
03-26-2021 03:26 AM
The proposal is not exactly what I need.
The need is to know what is the other switch (IP,MAC, HOSTNAME) connected on Trunk Port .
03-26-2021 04:07 AM
I plan to enable CDP on all the cisco Switchs.
#Conf t
(config)#cdp run
(config)#do wr mem
(config)#end
#show cdp neighbors
03-26-2021 06:22 AM
this what I had to suggest in my original reply
if the cisco device you can do cdp neighbour
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: