cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
308
Views
10
Helpful
5
Replies
CERKYR
Beginner

TRUNK Port : what is connected ?

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,

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

I plan to enable CDP on all the cisco Switchs.

 

#Conf t

(config)#cdp run

(config)#do wr mem

(config)#end

#show cdp neighbors

View solution in original post

this what I had to suggest in my original reply

 

 

if the cisco device you can do cdp neighbour 

BB

***** Rate All Helpful Responses *****

How to Ask The Community for Help

View solution in original post

5 REPLIES 5
balaji.bandi
VIP Expert

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?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Community for Help

using with : 

ping all the IP address known, from the switch, to fill the ARP Table.

show mac address-table | include Gi1/0/27

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 .

I plan to enable CDP on all the cisco Switchs.

 

#Conf t

(config)#cdp run

(config)#do wr mem

(config)#end

#show cdp neighbors

View solution in original post

this what I had to suggest in my original reply

 

 

if the cisco device you can do cdp neighbour 

BB

***** Rate All Helpful Responses *****

How to Ask The Community for Help

View solution in original post