Can someone tell me why do I have arp table entry outside interface network?
Server has 2 interfaces, both on the same network:
eth0 10.10.34.146/22
eth1 10.10.33.188/22
ip route
default via 10.10.32.2 dev eth0 proto static metric 1024
10.10.32.0/22 dev eth0 proto kernel scope link src 10.10.34.146
10.10.32.0/22 dev eth1 proto kernel scope link src 10.10.33.188
arp -n
Address HWtype HWaddress Flags Mask Iface
176.119.32.2 ether d4:d7:48:b5:a3:c1 C eth1
176.119.32.2 ether d4:d7:48:b5:a3:c1 C eth0
And then, when I ping 8.8.8.8 (from eth0) I get icmp reply but arp table does not change.
But when I ping -I eth1 8.8.8.8 I get icmp reply and there is a new entry in arp table:
8.8.8.8 ether d4:d7:48:b5:a3:c1 C eth1
But, when I add 'ip route add default via 176.119.32.2 dev eth1' to the routing table and ping 8.8.8.8 from eth1 there is no new arp table entry for 8.8.8.8.
Why is that?
Thanks.
NOTE: Both interfaces are connected to Cisco switch with 'ip local-proxy-arp' on the SVI with ip 176.119.32.2/22 which is default gw, and both are in Private VLAN.