From owner-freebsd-questions@FreeBSD.ORG Tue Jun 5 17:57:36 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 CC42716A41F for ; Tue, 5 Jun 2007 17:57:36 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id ABA4E13C44B for ; Tue, 5 Jun 2007 17:57:36 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (jn@ns1 [69.55.238.237]) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l55HvYc5089284; Tue, 5 Jun 2007 13:57:34 -0400 (EDT) (envelope-from lists@jnielsen.net) Received: (from www@localhost) by ns1.jnielsen.net (8.12.9p2/8.12.9/Submit) id l55HvXAY089283; Tue, 5 Jun 2007 13:57:33 -0400 (EDT) (envelope-from lists@jnielsen.net) X-Authentication-Warning: ns1.jnielsen.net: www set sender to lists@jnielsen.net using -f Received: from 70.150.196.243 ([70.150.196.243]) by newwebmail.jnielsen.net (Horde MIME library) with HTTP; Tue, 05 Jun 2007 13:57:33 -0400 Message-ID: <20070605135733.bju5l1fioc40c00c@newwebmail.jnielsen.net> Date: Tue, 05 Jun 2007 13:57:33 -0400 From: John Nielsen To: ivan@careytech.com.au References: <46654109.8070507@careytech.com.au> In-Reply-To: <46654109.8070507@careytech.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) / FreeBSD-4.9 X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean 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 17:57:36 -0000 Quoting Ivan Carey : > 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? Manually specifying network_interfaces is deprecated (take that line out). Putting both NIC's on the same subnet and segment but with different IP's like this may not be too useful.. > 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. That is because the route to 192.168.1.1 is associated with em0 at this point. > 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. For that to be most useful you'll want to set something up so they can share the same IP. The lagg(4) (link aggregation) virtual interface has already been mentioned, but I believe it is still only available in -CURRENT. Other possibilities might include attaching ifconfig scripts to link up/down events or [lack of] ping responses on one or both interfaces. JN