Can someone show me the commands to find a mac-address on a switch and if I know the port I am looking to find it on, also how i find the IP address on that port
Solved! Go to Solution.
sh mac address-table interface gigabitEthernet x/x
Then on layer 3 device to resolve it to ip address take the mac from above and run
show ip arp x.x.x
sh mac address-table interface gigabitEthernet x/x
Then on layer 3 device to resolve it to ip address take the mac from above and run
show ip arp x.x.x
you don't need layer 3 device, will work fine on layer 2 switch as long ip & gateway are configured.
For eg. on Cisco 2960G switch.
c2960#sh mac address-table interface gi0/3
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
32 68b5.99fc.d1df DYNAMIC Gi0/3
Total Mac Addresses for this criterion: 1
c2960#sh ip arp 68b5.99fc.d1df
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.10.32.6 0 68b5.99fc.d1df ARPA Vlan32
c2960#
Gentlemen
Thank you very much, that was it..
Hello Patrick,
Thank you for the reply.
how to config switch as long ip & gateway are configured
thanks guy ! it helped me a lot.
Use this command, show mac address inter g1/0/x
Mac address to IP address on Layer 3 switch -
#sh ip arp | include <all or last 4 of mac address>