hobbzilla <(E-Mail Removed)> wrote:
> Running RHEL ES 4 update 3
> eth0: connected to switch at 1Gbps
> eth1: connected to VLAN enabled ports on switch at 1Gbps
> eth2: cable unplugged (but will be connected to a hub in our DMZ)
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:14:38:4F:5D:88
> inet addr:172.24.1.67 Bcast:172.24.1.255 Mask:255.255.255.0
> ...
> eth1 Link encap:Ethernet HWaddr 00:14:38:4F:5D:87
> inet addr:172.24.3.67 Bcast:172.24.3.255 Mask:255.255.255.0
> ...
> eth2 Link encap:Ethernet HWaddr 00:50:BF:B6:01:AD
> inet addr:172.25.1.67 Bcast:172.25.1.255 Mask:255.255.255.0
> From another machine on that same switch:
> When I set eth2 to an ip address of 172.24.1.68 and even though eth2
> doesn't even have a network cable attached, I can ping all 3
> addresses!!
Linux, like many other stacks (at least by default) considers the IP
addresses you think you are assigning to an interface to be a property
of the host as a whole. So, it will accept traffic destined to any of
its local IPs, on any of its interfaces.
Having replies make it back to the sender will depend on the
connectivity of the mesh to which the interfaces are connected.
> From my workstation I can ping the 172.24.3.x but if I ifdown eth0
> or unplug the cable to eth0 I lose my ability to ping the eth1
> interface. This just doesn't make a whole lot of sense unless RHEL
> by default is doing some sort of ip masq or something of the
> sort. Any ideas on what I should be looking for?
From what source IP are you sending those pings? Is it from the
172.24.3.X subnet?
There is another feature of Linux networking - if you have multiple
interfaces connected to the same broadcast domain, (eg set of
switches) then IIRC not only will the system accept IP traffic for any
of its IP's on any of its interfaces, any of its interfaces will take
part in ARP for any of its IPs. This can lead to "interesting"
behaviour when multiple interfcaces, even those in separate IP
(sub)nets are connected to the same broadcast domain. So, on the
system(s) from which you are pinging, you might check the ARP caches
and see if the MAC for a given IP actually matches the MAC of one of
the other interfaces in the system.
There is a sysctl called "arp_ignore" or perhaps "ignore_arp" that can
be set to have an interface reply to ARPs only for IP's assigned to
that specific interface.
rick jones
--
The glass is neither half-empty nor half-full. The glass has a leak.
The real question is "Can it be patched?"
these opinions are mine, all mine; HP might not want them anyway...

feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...