targetting specific NIC on multi-homed host
I'm hoping someone here can help me understand this problem:
I have a server with 4 Gb Ethernet interfaces. All interfaces are connected via a 24-port switch to other servers in the lab and the uplink. Each interface has a statically assigned IP address and appears to be active.
When SSH'ing to any of the four IP addresses on this box, it appears that all SSH traffic is going through eth0. tcpdump -i eth0 displays the SSH packets on eth0, even though the SSH session is directed to the IP address of eth1, eth2 or eth3.
Similarly, when pinging the IP addresses of eth1, eth2, or eth3, tcpdump shows that all the ICMP packets are being handled by eth0 rather than the interface associated with the IP address.
What I'm expecting is that pinging the IP address of eth1 will result in ICMP packets incoming on eth1, pinging eth2 will result in ICMP packets on eth2, etc. I'm at a loss as to why packets directed to the IPs of eth1,2 & 3 are all being handled by eth0.
My next step will be to examine the ARP tables of the switch, although I'm not quite sure what to look for. I don't have a lot of experience with network configuration. Any help / explanation would be appreciated.
Again, I'm interested in targeting a specific interface on a server with multiple GbE connections. I would like to direct a stream of TCP/IP client data directly to a specific interface on the server by specifying that interface's IP address in the client program.