I am testing a new Network Interface card, and I need to do
basic loopback tests on the card. To do this, i have made the
- Created two IP aliases on eth1 and eth1:1, and setup two
IP addresses on different networks [22.214.171.124, and 126.96.36.199]
on the same interface on my machine.
- Created two "phantom" IP addresses. Basically, these addresses
do not exist, but i tried this thinking the kernel may send out
the packets [188.8.131.52 and 184.108.40.206]
- Statically added the arp entries of both these phantom ip addresses,
so that the kernel does not send out an ARP for these addresses.
[arp -s 220.127.116.11 00:11:22:33:44:55
arp -s 18.104.22.168 00:11:22:33:44:55]
Now, when i tried to ping from 22.214.171.124 to 126.96.36.199, tcpdump
did not capture any packets on eth1.
Next, i tried to add static routes
route add -host 188.8.131.52 gw 184.108.40.206
route add -host 220.127.116.11 gw 18.104.22.168
[basically trying to make the kernel think that the addresses can be
reached by the gateways provided.
Still, tcpdump does not capture packets on eth1.
Looks like the kernel is recognising that both 22.214.171.124 and
126.96.36.199 are aliased addresses to the same phy, and it is
not sending out the packets.
How do i make the kernel to send packets out to my hardware, so that
i can loop it back at the hardware?
Any help will be greatly appreciated!