If layer 3 interface for that specific network is configured on router then router will discover physical address of compute,
Arp works as fallows
When a new computer joins a LAN, it is assigned a unique IP address to use for identification and communication. When an incoming packet destined for a host machine on a particular LAN arrives at a gateway of router . Router looks for ARP table to find a MAC address that matches the IP address and forwards the traffic .By flooding the broadcast message to all host connected in systems a ARP table is created in router belong to layer 3 gateway configuration on router . A table called the ARP cache maintains a record of each IP address and its corresponding MAC address.if gateway is not configured on router mean it will just forward traffic on basis of routing table to next hop
enter image description here
https://i.stack.imgur.com/XxOgj.png
If layer 3 interface for that specific network is configured on router then router will discover physical address of compute,
Arp works as fallows
When a new computer joins a LAN, it is assigned a unique IP address to use for identification and communication. When an incoming packet destined for a host machine on a particular LAN arrives at a gateway of router . Router looks for ARP table to find a MAC address that matches the IP address and forwards the traffic .By flooding the broadcast message to all host connected in systems a ARP table is created in router belong to layer 3 gateway configuration on router . A table called the ARP cache maintains a record of each IP address and its corresponding MAC address.if gateway is not configured on router mean it will just forward traffic on basis of routing table to next hop
enter image description here
https://i.stack.imgur.com/XxOgj.png
Router#sh ip arp Protocol Address Age (min) Hardware Addr Type Interface Internet 172.16.10.1 - 00D0.5839.C102 ARPA GigabitEthernet0/1 Internet 172.16.10.2 1 0060.478D.1107 ARPA GigabitEthernet0/1 Internet 192.168.10.1 - 00D0.5839.C101 ARPA GigabitEthernet0/0 Internet 192.168.10.2 0 0060.2F0A.B64D ARPA GigabitEthernet0/0
Router#sh ip arp Protocol Address Age (min) Hardware Addr Type Interface Internet 172.16.10.1 - 00D0.5839.C102 ARPA GigabitEthernet0/1 Internet 172.16.10.2 1 0060.478D.1107 ARPA GigabitEthernet0/1 Internet 192.168.10.1 - 00D0.5839.C101 ARPA GigabitEthernet0/0 Internet 192.168.10.2 0 0060.2F0A.B64D ARPA GigabitEthernet0/0