From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 01:33:06 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F0E916A417 for ; Mon, 10 Sep 2007 01:33:06 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 534BF13C4B4 for ; Mon, 10 Sep 2007 01:33:06 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 32480 invoked from network); 9 Sep 2007 20:33:04 -0500 Received: from 124-170-235-206.dyn.iinet.net.au (HELO localhost) (124.170.235.206) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 9 Sep 2007 20:33:03 -0500 Date: Mon, 10 Sep 2007 11:32:57 +1000 From: Norberto Meijome To: jekillen Message-ID: <20070910113257.723eb3bc@localhost> In-Reply-To: <5f65302543fd0f474c9994801c2c1517@prodigy.net> References: <5f65302543fd0f474c9994801c2c1517@prodigy.net> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: ip assignments X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 01:33:06 -0000 On Sun, 9 Sep 2007 11:50:11 -0700 jekillen wrote: > I have built a machine with two network interfaces and tried > assigning local addresses in the same subnet mask: > 192.168.1.1 192.168.1.2 for example to each of the > interfaces and only one of the interfaces will respond to > a connection attempt (via ftp or ssh for example). I found > that each of the interfaces have to be assigned an address > in a different subnet. for them to both be usable. hi Jeff, please show us the relevant settings in rc.conf (or the ifconfig commands you issue if you havent set these settings in rc.conf yet). My gut feelling tells me you are setting the netmask for the aliased interfaces to the "proper" netmask (eg, 255.255.255.0) , rather than the /32 netmask aliases *ON THE SAME SUBNET AS OTHER IP ON SAME NIC* should have. eg: WRONG: ifconfig_bge0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_bge0="inet 192.168.1.2 netmask 255.255.255.0" << THIS netmask should be 255.255.255.255 Search the archives for the reasons behind this. I believe the reasons are specific to FreeBSD TCP/IP stack. Best, B _________________________ {Beto|Norberto|Numard} Meijome "Ugly programs are like ugly suspension bridges: they're much more liable to collapse than pretty ones, because the way humans (especially engineer-humans) perceive beauty is intimately related to our ability to process and understand complexity. A language that makes it hard to write elegant code makes it hard to write good code." Eric Raymond I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.