Switch – the main purposes of ARP CACHE in the Switch

arpethernetswitch

I know that when a PC send a packets to any remoter router then first of all it checks out the Router MAC address which is connected with it, but it gets this MAC Address of Router from ARP Cache, but i don't know is ther the same process of the ARP Cache in the Switch?
please elaborate me

Best Answer

Answering the original router question: Arp caches are there to map an IP addess to a mac address. There's nothing unique about a router. .. it needs an ARP cache just like any other IP device.

Managed switches likewise need an Arp cache so they can communicate with the stations managing them.

As we discussed in chat, you need to add an IP address to your switch so you can communicate via ARP.

vlan 2
 name management_vlan
!
interface Vlan2
 ip address 192.0.2.20 255.255.255.0
 no shutdown
 no ip route-cache
!
ip default-gateway 192.0.2.254

This isn't what you asked about, but if you need to see what mac addresses have been learned on a Cisco switch, use show mac address-table.

Keep in mind that mac learning and ARP are completely different processes on a layer 2 switch. Mac learning is used for communication through the switch. ARP is required for communication to the switch itself.