I have a wireless router installed at my home (provided by ISP). Scenario:

Router IP:

My Machine IP (X):

IP of machine Y:

Now when I ping Y from my machine X.(ping from

My Routing table says:   U     9      0        0 wlan0

This is a local route and now the ARP will be consulted for the MAC address of Y. Suppose Y has mac: yy:yy:yy:yy:yy:yy Thus a packet will be sent out from wlan0 towards the router.

Now How will the router forward the packet? Will it switched based on MAC or Layer 3 IP lookup will be used to forward in the packet?

  • It likely is also an implementation detail, given tthat this is a router. It should work only on ARP - layer 2 - but who knows what some engineer in his wisdom has implemented. – TomTom Jul 28 '13 at 18:05

One would expect that because this involves only machines in the same network, the router will just act as a switch and look only at the MAC address. But routers in the real world don't always behave precisely the way you would expect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.