Tuesday, 9 October 2012

What will Happen if we ping in this case?

A very basic question ....

   PC1--------------------------Router 1-------Router 2---------PC2 (, mac : 00:22:33:33:44:55)

The IP address of PC1 is  PC1 and PC2 are windows XP machines.

 At PC1 the default gateway is

We added static arp entry for PC2 in PC1

arp -s 00:22:33:33:44:55

Now tell me , if we ping from PC1 -> ping , what packets will be sent by PC1 ?


  1. In Linux, it does not allow setting up the static entry.

    $ sudo arp -s 00:22:33:33:44:55
    [sudo] password for tux:
    SIOCSARP: Network is unreachable

    $ netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface U 0 0 0 eth0 U 0 0 0 eth0 UG 0 0 0 eth0

    Is this the correct behavior?

    1. The behavior in Linux and Windows is different for this case. If you see , as i mentioned both my PCs are windows XP machine.
      In Linux , you can add only ARP entries for local network, it wont allow you to add other network mac address. So you are seeing this behavior.

      But in Windows machine the command will work. Try in Windows machine if you can, otherwise let me know , i will post the solution.


Related Posts Plugin for WordPress, Blogger...