04-02-2009 06:20 AM - edited 03-04-2019 04:12 AM
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
Solved! Go to Solution.
04-02-2009 07:11 AM
Correct, the device that is connected.
04-02-2009 06:32 AM
What do you mean "find the port number"?
Port number of what?
04-02-2009 06:39 AM
Hi,
Try this:
show ip interface brief | include 172.12.x.x
Istvan
04-02-2009 06:42 AM
Istvan:
Now I understood him...lol
04-02-2009 07:02 AM
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.
04-02-2009 07:05 AM
Hi
This is for the connected device right
regards,
04-02-2009 07:11 AM
Correct, the device that is connected.
04-02-2009 07:15 AM
Here's a write up I did once, hopefully it helps.
04-02-2009 07:03 AM
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
04-02-2009 07:10 AM
Why dont you enumerate exactly which information you want?
1.) IP address of the interface.
2.) Neighbor IP address
etc..etc...etc
04-02-2009 07:14 AM
Hi,
sorry for the inconvenience
I said connected device to the interface
which means
1. neighbor ip address
04-02-2009 07:18 AM
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
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