From owner-freebsd-stable@FreeBSD.ORG Thu Jan 25 16:14:28 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6AD316A400; Thu, 25 Jan 2007 16:14:28 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD2013C459; Thu, 25 Jan 2007 16:14:28 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from mail.ninth-nine.com ([IPv6:2001:3e0:4cf:1:d2:ff:fe23:1b4]) (authenticated bits=0) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with ESMTP id l0PGEQcd081710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Jan 2007 01:14:27 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Fri, 26 Jan 2007 01:14:26 +0900 From: Norikatsu Shigemura To: Pete French Message-Id: <20070126011426.d7950892.nork@FreeBSD.org> In-Reply-To: References: X-Mailer: Sylpheed 2.3.0rc (GTK+ 2.10.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [IPv6:2001:3e0:4cf:0:230:48ff:fe41:2455]); Fri, 26 Jan 2007 01:14:27 +0900 (JST) Cc: freebsd-stable@FreeBSD.org, Norikatsu Shigemura Subject: Re: Netgraph at startup - rc.conf ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 16:14:28 -0000 On Thu, 25 Jan 2007 15:36:33 +0000 Pete French wrote: > I have a machine with two interfaces in it - bge0 and beg1. I now > find I need to usse ng_fec to make these into one interface due to > the way out networking contractors are installign a new site. > Seems like no problem from the command line, but what I can't > find anywhere in the documentation is how to make this happen > at boot time using rc.conf. I am assuming my line which > looks like: > ifconfig_em0="inet 172.16.1.6 netmask 255.255.0.0" > becomes > ifconfig_fec0="inet 172.16.1.6 netmask 255.255.0.0" > but obviously I need to do something to create fec0 before > that happens. Preseumably something like cloned_interfaces="fce0", > but where does it get the parameters from to create the interface ? SEE ALSO: http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/104884 If you apply this patch, you can use ng_fec like following in your /etc/rc.conf: fec_interfaces="fec0" fecconfig_fec0="bge0 bge1" ifconfig_fec0="inet 172.16.1.6 netmask 255.255.0.0"