From owner-freebsd-questions@FreeBSD.ORG Wed Oct 12 13:37:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 152A616A41F for ; Wed, 12 Oct 2005 13:37:57 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B18C43D46 for ; Wed, 12 Oct 2005 13:37:56 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so108109nzd for ; Wed, 12 Oct 2005 06:37:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nKxGBkV6JsXrSM+J+CEyUdxSHUAVRZVHBe6gqfTe6joZyrTHl41klDu7dc1wAUB7YTSeSHLdTXqTYTuR8QyQJet+4BUt+zC3RCSLEAa6TKoh0d4N9H52ev0IcujCHbCpLHBn4VR+ZJWWQL9+8uBpTBWfdAQ4n32ZMJk+QmyUdN4= Received: by 10.36.74.2 with SMTP id w2mr864963nza; Wed, 12 Oct 2005 06:37:55 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Wed, 12 Oct 2005 06:37:55 -0700 (PDT) Message-ID: Date: Wed, 12 Oct 2005 17:37:55 +0400 From: "Andrew P." To: Olaf Greve In-Reply-To: <434D02AF.9@axis.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051012104241.GA34129@dogma.freebsd-uk.eu.org> <434D02AF.9@axis.nl> Cc: freebsd-questions@freebsd.org Subject: Re: How to properly set-up multiple NICs? 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: Wed, 12 Oct 2005 13:37:57 -0000 On 10/12/05, Olaf Greve wrote: > Hi, > > I have a short and surely straightforward question: I want to set-up two > NICs on two of my FBSD 5.x servers. Each server will have a dedicated > NIC for all "outside world" traffic, and between the two machines I want > to set-up a 192.168.1.x local network via a cross-wire cable, dedicated > to local syncing of both machines. > > I am assuming the proper way to do this is to simply (using sysinstall) > configure one NIC with the real live IP address, gateway, mask setting > etc., hooked up to the outside world, and the other one with a > 192.168.1.x IP address, directly connected to the other machine's > similarly (though with a different IP address, of course) configured > 192.168.1.y IP address over a cross-wire. > > Correct, or am I missing something? > > Also: when not using sysinstall: is /etc/rc.conf the only location where > such settings need to be made, or are there other files as well that > need to be manipulated for multiple NICs? > > Note: Normally I would simply test this myself and make it work, but > tomorrow I'll have to add my new second server to the production > environment and my current live machine is one of the two machines that > need to be reconfigured. As I'll have preciously little time allocated > for the installation, I want to get as much anticipated in advance as > possible... > > Cheers, and tnx for any and all replies! > Olafo > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > I don't think you've missed anything. In /etc/rc.conf you can add something like: ifconfig_rl0=3D"inet 192.168.17.1 netmask 0xffffff00" ifconfig_lo0_alias0=3D"inet 172.17.0.1 netmask 0xffffffff" ifconfig_vge0=3D"dhcp" ...to give you the general idea. It's enough to bring the NICs up and running, but then consider DNS and other issues that provide for a networking environment. Good luck, Andrew P.