From owner-freebsd-questions@FreeBSD.ORG Tue Jun 5 12:48:01 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B77316A46E for ; Tue, 5 Jun 2007 12:48:01 +0000 (UTC) (envelope-from mailing.lists@dvterry.com) Received: from mail.dvterry.com (mail.dvterry.com [64.34.163.247]) by mx1.freebsd.org (Postfix) with ESMTP id 2620213C4B7 for ; Tue, 5 Jun 2007 12:48:01 +0000 (UTC) (envelope-from mailing.lists@dvterry.com) Received: from [10.24.65.11] (user1.coxfiber.net [216.54.27.211]) by mail.dvterry.com (Postfix) with ESMTP id 34FF9338050; Tue, 5 Jun 2007 08:48:00 -0400 (EDT) Message-ID: <46655B80.8040504@dvterry.com> Date: Tue, 05 Jun 2007 08:48:00 -0400 From: magikman User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: bob@a1poweruser.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to correctly use 2 on board 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: Tue, 05 Jun 2007 12:48:01 -0000 Bob wrote: > The most common configuration for using two nic's is one nic is used for > your dsl or cable modem connection to your ISP and the second nic services > your local LAN. > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ivan Carey > Sent: Tuesday, June 05, 2007 6:55 AM > To: freebsd-questions@freebsd.org > Subject: How to correctly use 2 on board nics > > Hello > I have a server board with 2 onboard nic's > I have set them up in rc.conf as follows > > defaultrouter="192.168.1.1" > network_interfaces="em0 em1 lo0" > ifconfig_em0="inet 192.168.1.3 netmask 255.255.255.0" > ifconfig_em1="inet 192.168.1.4 netmask 255.255.255.0" > > The question, is this the correct configuration? > > If I have both nic's connected to the switch I can ping 192.168.1.1 and > 192.168.1.3 and 192.168.1.4 > > If I have only em0 connected I can ping 192.168.1.1 and 192.168.1.3 > > If I have only em1 connected I can ping 192.168.1.3. > > What could the 2 onboard nic's be best used for. I was thinking that in > the event on was to fail then the other would still be ok. > > Any ideas would help. > Thanks, > Ivan > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > I guess the 'correct' way of using two NICs is really dependent upon what your goal of using two NICs is. Do you want to be able to serve two networks out of the NICs, one from each interface? Do you want to create a gateway of some sort? What is it, exactly, you are trying to accomplish by doing this?