Firstly what I understand, Default Gateway--> When we set the default gateway in PC the network layer check the destination IP address and if it is not on same broadcast domain as the source IP address it set destination MAC address to be of the router which further make routing decision.
Proxy ARP -->{{It is used when host do not have default gateway set}} When the destination IP address's MAC address is not in the table of PC it sent an ARP request to know its MAC address. THE switch broadcast the request and it also goes to router and the router knows the destination IP address as it is directly connected to it so it gives its MAC address as proxy.
Now my question is that MY network is like this-->> Host A---Switch1----Router----Switch2---Host B and Host A has IP address of 192.168.1.1 (no default gateway set) and same for host B with IP address 192.168.2.1(no default gateway set) so why can't Host A ping Host B using Proxy ARP.Router has interfaces as 192.168.1.254 and 192.168.2.254
IS proxy ARP not enabled by default but it is given in cisco.com it is enabled by default so why can not then
AND Also
which is given preference default gateway method or proxy ARP is default gateway is set and router knows path to destination