Professional Documents
Culture Documents
Arp Loopb PDF
Arp Loopb PDF
As I understand that there is no MAC address for Loopback interface, how does the ARP functions when i ping
a loopback interface?
Thanks,
Anupama.
Tags: arp, loopback
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
1
How does the ARP works for Loopback...
Hello.
Loopbacks use the router's physical interface's MAC for L2 communication. Let's say we have the following
scenario where in we ping 1.1.1.1 from 2.2.2.2.
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
2
How does the ARP works for Loopback...
Note that each router that receives a packet will look at the destination IP address. If the router doesn't have
the IP address it will refer to the routing table to see what the next hop is. Then, based on the next hop, the
router will look for the L2 mapping for the L3 address and will forward the packet.
If we use serial encapsulation such as HDLC or PPP then there will be no MAC encapsulation.
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
3
How does the ARP works for Loopback...
Note that incoming packet is routed via RIB because it was punted. The reply going out is routed via FIB.
Aref - CCNPx2 (R&S - Security) / Network+ / Security+ 5,055 posts since Nov 29, 2011
Re: How does the ARP works for Loopback Address? Feb 2, 2014 6:55 AM
HI Anupama,
I would agree with Daniel, the Loopback interface does not have any mac address associated to it, also for this
reason it can be always up even when the physical interfaces are shutdown, if the Loopback interface had any
association of L2 with any physical interface it would not be able to be up when the physical interface is down.
From this output you can see that the Loopback interface has no L2 information:
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
4
How does the ARP works for Loopback...
Instead when you try to reach that Loopback interface address, the arp reply from the device will be sent by
the physical interface faced to the arp requester, with its mac address, then once the packet received on the
device, the device will route it internally to the Loopback interface.
router#
IP ARP: rcvd req src 192.168.1.3 0026.0b59.7710, dst 192.168.1.4 Vlan1
IP ARP: sent rep src 192.168.1.4 0021.d8e6.46da, dst 192.168.1.3 0026.0b59.7710 Vlan1
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
5
How does the ARP works for Loopback...
Aref - CCNPx2 (R&S - Security) / Network+ / Security+ 5,055 posts since Nov 29, 2011
Re: How does the ARP works for Loopback Address? Feb 2, 2014 10:04 AM
in response to Anupama
You are welcome Anupama, glad I could be of help.
Regards,
Aref
© 2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
6