From owner-freebsd-questions Tue Jun 12 5:29:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alligator.wananchi.com (alligator.wananchi.com [62.8.64.108]) by hub.freebsd.org (Postfix) with ESMTP id 0D1F437B403 for ; Tue, 12 Jun 2001 05:29:08 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from root by alligator.wananchi.com with local (Exim 3.22 #1) id 159n9F-00011o-00; Tue, 12 Jun 2001 15:19:53 +0300 Received: from [209.198.248.2] (helo=siafu.iconnect.co.ke) by poeza.iconnect.co.ke with esmtp (Exim 3.20 #1) id 14VE8E-0004Xt-00 for wash@poeza.iconnect.co.ke; Tue, 20 Feb 2001 17:51:10 +0300 Received: from [212.22.161.3] (helo=ns2.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14VE51-000OHB-00 for wash@iconnect.co.ke; Tue, 20 Feb 2001 17:47:51 +0300 Received: from amavis by ns2.iconnect.co.ke with scanned-ok (Exim 3.12 #1) id 14VE6i-000K5r-00 for wash@iconnect.co.ke; Tue, 20 Feb 2001 17:49:36 +0300 Received: from server.ms-agentur.de ([62.153.134.194] helo=gekko.i-clue.de ident=root) by ns2.iconnect.co.ke with esmtp (Exim 3.12 #1) id 14VE6f-000Jr1-00 for wash@iconnect.co.ke; Tue, 20 Feb 2001 17:49:34 +0300 Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id QAA14552; Tue, 20 Feb 2001 16:54:46 +0100 Message-ID: <3A928424.CAD3496E@i-clue.de> Date: Tue, 20 Feb 2001 15:50:12 +0100 From: Christoph Sold Old-Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Odhiambo Washington Cc: FBSD-Q References: <20010220154936.A14608@poeza.iconnect.co.ke> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Multiple IPs on FreeBSD and TCP/IP Status: RO Lines: 30 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Odhiambo Washington schrieb: > > Hi, > I'm a bit confused when it comes to having multiple IPs on one interface. > Here is my situation: > I have this box running 4.2-STABLE with an fxp0 to which I have assigned > an IP in the range of 212.22.163.0/24. I also happen to have another small > block of 64.110.74.48/28 > So I have this: > ifconfig_fxp0="inet 212.22.163.2 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 64.110.74.50 netmask 255.255.255.240" > defaultrouter="64.110.74.49" > > Now in this situation how does the box identify itself to the outside > world? I have a gw of 212.22.163.1 but it seems if I use this for > defaultrouter then some services seem to fail. AFAIR aliased ip's should be bound as single IP "inet 64.110.74.50 netmask 255.255.255.255". IP aliasing is to have multiple IPs bound to one network board. Using it the way you do, both nets will be connected to the very same wire. Makes little sense to me. Why not break up both nets and put two network boards into the box? HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message