07-30-2003 01:59 AM - edited 03-02-2019 09:13 AM
hi ~
i would like to find an IP address that already connect to CISCO switch. as ...
- when i do 'sh int' it show the MAC address of switch port. (last digit is running number by port)
- when i do 'sh mac' it show the only MAC whitch start with 0080
- when i do 'sh ip arp' on core router using this 0080 address it show many IP addresses connect to same virtual interface.
- when i do 'sh cam' on core switch using this 0080 address it show the port that is uplink to the switch.
(- " ---#) confuse already ... could anyone tell me how to find IP address if you know MAC address ? did i do something wrongly ? i've tried 'arp' command on my normal command prompt also but couldn't find ... HELP PLEASE ~ !!
thanks in advance,
07-30-2003 02:19 AM
I would like to know what are your switches models and the software they are running.
Anyway, in my network, when I need to find an IP address by MAC address what I usually do is to connect to our core router and run:
show arp | include A.B.C.D
when A.B.C.D is the MAC address I'm looking for. You can even run this command although you only know a few bits of the MAC address. For example:
show arp | include 0080
HTH
07-30-2003 03:39 AM
hi (again) ~
thanks for your reply ... now i know already that the list of IP address that i got after do 'sh arp' at core router has only 1 IP that can ping so the thing that connects to the switch port is that one. (^ - ^bb)
==============================================
anyway just in case you want to know the story ...
the connection will be like this ...
4006 (v. 6.2(2))---> 2912 ---> [??? IP]
anyway i've tried all command for every switch & router will summarize as the following ...
- 4006 switch : cannot use " | "
4006 sh cam ?
agingtime Show cam aging time
count Showing cam total entries
dynamic Show dynamic cam entries
mlsrp Show cam Multilayer Switching Router info
permanent Show permanent cam entries
static Show static cam entries
system Show system cam entries
so i used ...
4006 sh cam
and it reply with physical port that connect to 2912 switch
4006 sh arp ?
noalias Display IP address instead of alias hostname
so i used it, and it replied with many IP connect at vitual interface
- 4006 router also cannot use " | "
4006# sh arp | ?
% Unrecognized command
4006# sh arp ?
- 2912 can use " | " as you said but it never reply with the MAC or IP i want ... it reply with only IP & MAC on VLAN 1
2912>sh arp ?
| Output modifiers
regards,
07-30-2003 05:14 AM
#sh mac-address-table address ?
H.H.H 48 bit mac address
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