Currently, I have a set up where a machine has multiple IP addresses. For some experimentation, I have set up some
ip rule entries such that for certain IP addresses, the packet gets forwarded to another virtual interface that is local on the device.
The issue is now, for this specific IP address, when it receives an ARP request for this IP address, it seems like the machine doesn't identify it as a local IP address anymore.
Is there a way to either force an ARP reply for these addresses (which point to a local virtual interface)?
I am running on Ubuntu 16.04.
For example, for one of the IP Address, let's call it
<x>, I added an IP rule in a table that overrides the local routing table.
ip route add <x> dev <internal-virtual-interface>
So if I did
ip route get <x>, it would return
... <internal-virtual-interface> ... instead of
... dev lo ...