Here is my understanding, when the packet is within subnet - only ARP or ARP cache comes into picture. Basically, the L2 is enough - we just need to match the device ADDRESS - i.e. MAC ADDRESS.
Now, when the packet is for other subnet - the device is look for its routing table, based on the rule the packet will be send to the gateway.
My question is when this happens - do the sender will change the ethernet frame destination MAC address to router MAC address? As the sender doesn't know anything about the destination MAC address. Is my understanding right. Once the router will receive( a router will receive the packet because its mac address matches) the packet, it will check the destination IP and based on the routing table - it will forward the packet to the appropriate gateway. Once the packet moves to the other gateway, will they change the source IP as the other gateway IP? If the other gateway is in the same subnet as of the destination subnet. They will simply use ARP or ARP CACHE -right. However,a router needs to track that the PACKET actually belongs to the other network - Is it a NAT - network address table that it will look for. Thus, the