cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
610
Views
5
Helpful
11
Replies

Port Number

gurkamal01
Level 1
Level 1

Hi

I am sorry for my question as it is too simple

Q. what command can make me find the port no. of multilayer switch which has as specific IP add (eg. 172.12.x.x)connected to it

1 Accepted Solution

Accepted Solutions

Correct, the device that is connected.

View solution in original post

11 Replies 11

lamav
Level 8
Level 8

What do you mean "find the port number"?

Port number of what?

Istvan_Rabai
Level 7
Level 7

Hi,

Try this:

show ip interface brief | include 172.12.x.x

Istvan

Istvan:

Now I understood him...lol

show arp | i 172.12.x.x

This will show the MAC associated with the IP address. Then to find what port the MAC was learned on-

show mac-address address [mac address]

CORE#sh arp | inc 10.142.3.2

Internet 10.142.3.2 0 000c.5502.1e62 ARPA Vlan423

CORE#

CORE#sh mac-address-table address 000c.5502.1e62

Legend: * - primary entry

age - seconds since last seen

n/a - not available

vlan mac address type learn age ports

------+----------------+--------+-----+----------+--------------------------

Supervisor:

* 423 000c.5502.1e62 dynamic Yes 80 Gi13/13

Here the IP 10.142.3.2 is on port Gi13/13

Hope that helps.

Hi

This is for the connected device right

regards,

Correct, the device that is connected.

Here's a write up I did once, hopefully it helps.

https://packetpros.com/cisco_kb/Find_Device.html

Hi,

Appreciate your reply

does this show the interface's ip address or the connected device ip address

If answer is interface's ip address then how can find the connected device ip address

Why dont you enumerate exactly which information you want?

1.) IP address of the interface.

2.) Neighbor IP address

etc..etc...etc

Hi,

sorry for the inconvenience

I said connected device to the interface

which means

1. neighbor ip address

To find the interface with a certain IP address:

sho ip int brief | in x.x.x.x

To view IP address to MAC address binding (ARP):

show ip arp x.x.x.x

To view connected neighbor:

"sho cdp nei"

OK?

Victor

Getting Started

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:

Review Cisco Networking products for a $25 gift card