03-16-2006 08:45 AM - edited 03-03-2019 12:05 PM
Hi,
Can someone explain me what is the difference between these 2 commands, they provide the same output Mac adress, I did not get why we have 2 differents kind of commands
Please advise
Regards,
03-16-2006 08:54 AM
Hi,
The difference is the 'sh arp' displays a cache of MAC addresses that have been resolved by L3 devices in the processing of determining the MAC address that corresponds to a given IP address, whereas the mac-addres-table displays the MAC addresses that are learned by a L2 switching device on each interface.
The first command applies to a L3 device and the second to a L2 device.
Hope that helps - pls rate the post if it does.
Paresh
03-16-2006 10:25 AM
Thx very much, it was very helpful
karim
03-16-2006 08:56 AM
Karim
The explanation of your question is that the MAC-address table is built by the switch operating at layer 2 to support layer 2 forwarding by the switch, while the ARP table is built by layer 3 processing of the MSFC or the router to support layer 3 forwarding of IP packets. Additional differences are that the MAC-address table is built by passivly listening to incoming traffic and associating the source MAC address with the port that it arrived on. The ARP table is built more actively since when the MSFC or router needs to forward to an IP address and the MSFC or router does not already know the MAC address it will send an ARP request to learn the proper MAC address.
HTH
Rick
03-16-2006 10:25 AM
Very good explanation thx a lot
Karim
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