Book now with code EOY2025
lon21 wrote: » OK, I've done to further looking into and been thinking. I've concluded each interface on a Cisco device has each a MAC address. 24 ports = 24 mac address. If a ARP is sent from Host A for the default gateway's Mac address it would give you the router's interface MAC address of which Host A is connected too.
1- HostA just connected to SwitchA's Fa0/1's interface. 2- HostA attempts to send a datagram to the other network beyond RouterA using a destination IP address. When that happen, HostA sends an ARP broadcast. 3- How did HostA determines to send an ARP request? Apparently, the ARP table is empty, and they have to send at least an ARP request to someone. To be more specific. The host uses the ANDing process comparing the destination address and the subnet mask with the host's IP address to determine whether the destination address is within the hostA's network. a) If sending the datagram outside of HostA's network, use the default gateway as the "targeted" address for the ARP request frame. b) Otherwise, use the current "targeted" address for the ARP request 4- Obviously, the next step is that the default gateway on the network should perform an ARP reply. HostA would be asking "who has the IP of the default gateway? Please tell HostA." So, since the HostA is trying to send a datagram to a host on another network, HostA's MAC address would be listed in the MAC address table of SwitchA with Fa0/1 being the interface where HostA is located. 5- SwitchA doesn't not know the MAC address of the default gateway, which is the RouterA's interface facing SwitchA. SwitchA has to flood the ARP request to all outgoing ports (except the incoming port) since the ARP request was a broadcast frame with the MAC address, FF:FF:FF:FF:FF:FF. 6- Finally, the default gateway on RouterA picked up the ARP request, and replied with an unicast ARP reply using HostA as destination address this time. 7- SwitchA receives an incoming ARP reply frame from the default gateway, and add the MAC address of the DG to the MAC address table with the Fa0/24 interface assigned to the entry. 8- SwitchA then forward out the ARP reply frame out its Fa0/1 interface since the MAC address has HostA in its table. 9- HostA then acknowledges the ARP reply frame, and add the MAC address of the default gateway to its ARP table so that it doesn't have to look for the gateway again. 10- Now HostA is able to send a packet to the other network, encapsulating destination IP address in the Ethernet frame being forwarded to the DW. 11- RouterA receives the frame, and strip off the Layer 2 header and encapsulate the packet again with a new Layer 2 header using RouterA interface (facing the other network)'s MAC address as the source address.
Use code EOY2025 to receive $250 off your 2025 certification boot camp!