I have the Mac-Address of one host. I want to know to which interface this host is connected to the cisco switch. I use snmp to do this work.
I want to create a script to do this. So how can i do that? Should i know the vlan ?
Regards
I have the Mac-Address of one host. I want to know to which interface this host is connected to the cisco switch. I use snmp to do this work.
I want to create a script to do this. So how can i do that? Should i know the vlan ?
Regards
You need the following:
show ip arp <ip address>
show mac-address-table address <mac address>
show cdp neighbors <interface> detail
Enjoy