Skip navigation
Cisco Learning Home > Learning Center > Discussions

_Communities

820 Views 3 Replies Latest reply: Jul 14, 2011 8:34 AM by shakedkoffee RSS

Currently Being Moderated

ARP question

Jul 14, 2011 4:18 AM

shakedkoffee 17 posts since
Oct 1, 2010

Hello,

 

I came across this question:

On an Ethernet network, PC1 sends a message to PC2. The message must cross two routers along the pathway. So, will the PC1 broadcasts an ARP request to determine PC2’s MAC address before building the frame?

I'd say no, because PC1 will see that the destination host is not on his network, so it will put the packet with the PC2 address in an ethernet frame with his default gateway as destination. Am I wrong?    

 

And another question: they are talking about an ethernet network. Shouldn't it be more correct to talk about an internetwork since there are two routers in the middle?

 

Thank you, less then two weeks to my CCENT exam...

  • Currently Being Moderated
    1. Jul 14, 2011 4:40 AM (in response to shakedkoffee)
    Re: ARP question

    Hi

     

    answer is yes or no...

     

    For the  very first packet it will broadcast arp request for the destination ip address and default geteway ( i e - router ) will reply with his ethernet interface mac-address as l2 destination address. then pc1 store this info into cache memory and  build packet with PC2 ip address as L3 destination and router ethernet interface mac address as L2 destination  , Once the packet reach at gateway router , router will check it's routing table and next-hope to forward that packet , it will again build packet with P2 ip address as L3 destination and Next-hope interface mac-address as L2 destination .... and packet will proccess at each hope in same manner untill it reach at it's destination ... then destination machine i e PC2 revert with PC1 ip address as L3 address and his gateway mac-address as L2 destination address..

     

    During first communication all the devices store ip-mac binding in cache memory hence rest of the packets for this session will bypass arp resolution and send directly by info stored in cache memory.

     

    Thanks |

    aks  

  • Paul Stewart  -  CCIE Security, CCSI 6,986 posts since
    Jul 18, 2008
    Currently Being Moderated
    2. Jul 14, 2011 6:23 AM (in response to aks)
    Re: ARP question

    The only case that pc1 would arp for pc2 directly is--

     

    1) they are on the same subnet (determined by the local IP + netmask compared to the destination IP--pc2)

    2) if the pc thinks they are on the same IP subnet (incorrect mask)

    3) there is no route (default gw is not set on pc2)

     

    The arp in 2 or 3 is considered a proxy arp. In that case, the first hop router would respond (unless it has proxy arp disabled)

     

    As for calling something an Ethernet network or internetwork--stuff like this, I'd just always consider the context. Strictly speaking, it may be an internetwork that is comprised of multiple Ethernet networks.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)