host A and B are in different subnet, connected like the following:
host A-----sw1------(fa0/0)Router1(fa0/1)-----sw2-----host B
A first pings B, and succeed. After this,what is in A's arp table?
I know MAC of router1's fa0/0 will be in A's arp table, but which IP address it will associated with? IP of fa0/0 or IP of host B?
The following is my thought. When A tried to ping B, but without the knowledge of B's MAC. It generated an ARP flooding in its subnet, asking for B's MAC. Since no one else knew this IP, except fa0/0 of router1 knew it is in another subnet. So fa0/0 will reply the ARP request with its own MAC. Then A will record fa0/0's MAC associated with B's IP in its ARP table. Is this right? (the answer gave me the different way, it says A will record fa0/0's MAC with fa0/0's IP in its arp table.)