Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 13:58:34 -0800 (PST)
From:      "Jeremy C. Reed" <reed@reedmedia.net>
To:        freebsd-chat@freebsd.org
Subject:   ethernet interface listening to other interface's IP
Message-ID:  <Pine.LNX.4.43.0203131351060.31667-100000@pilchuck.reedmedia.net>

next in thread | raw e-mail | index | archive | help
Should an ethernet interface listen to another interface's IPs?

I've been told that all flavours of Unix work that way. I should do some
tests, but I am interested in some comments.

I was told (under Linux) that this server had two NIC cards configured
with different IPs, but with one cable disconnected from one NIC card, the
other interface still listened to the other's IP.

I was told that you have to firewall so the packets will only be accepted
on the correct interface.

I think that that you shouldn't have to setup a firewall as a workaround:
If your NIC card is configured for a particular IP and you want to stop
it, then simply unplugging the ethernet cable should do it.

(I do understand that many services listen to INADDR_ANY; but I am
referring to the connection being listened to in the first place at the
interface itself.)

What is the correct behaviour and why?

   Jeremy C. Reed
   http://bsd.reedmedia.net/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0203131351060.31667-100000>