From owner-freebsd-current@FreeBSD.ORG Fri Mar 13 08:03:13 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 533711065673 for ; Fri, 13 Mar 2009 08:03:13 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from mail.math.leidenuniv.nl (mail.math.leidenuniv.nl [132.229.231.57]) by mx1.freebsd.org (Postfix) with ESMTP id CBFA38FC18 for ; Fri, 13 Mar 2009 08:03:12 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from [132.229.231.13] (polaris.math.leidenuniv.nl [132.229.231.13]) by mail.math.leidenuniv.nl (Postfix) with ESMTP id D5D266E8B5; Fri, 13 Mar 2009 08:45:36 +0100 (CET) From: Marten Vijn To: Olivier =?ISO-8859-1?Q?Cochard-Labb=E9?= In-Reply-To: <3131aa530903122333x244bd56aue4f4179991942aea@mail.gmail.com> References: <3131aa530903122333x244bd56aue4f4179991942aea@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Fri, 13 Mar 2009 08:45:36 +0100 Message-Id: <1236930336.23817.6.camel@polaris> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: How to configure DHCP client on a bridge ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2009 08:03:13 -0000 On Fri, 2009-03-13 at 07:33 +0100, Olivier Cochard-Labbé wrote: > Hi, > > I'm trying to follow the advice fount in the handbook by configuring > the IP address on the bridge0 interface rather than on a member > interface. > Then I've configured my rc.conf like that: > > cloned_interfaces="bridge0" > ifconfig_bridge0="addm bge0 addm xl0 DHCP" > ifconfig_bge0="up" > ifconfig_xl0="up" > > But, with this configuration, the dhclient didn't start automatically > on the bridge0 interface. > After a reboot, my bridge0 status is: > [olivier@d630]~>ifconfig bridge0 > bridge0: flags=8843 metric 0 mtu 1500 > ether 82:03:c8:73:85:cc > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: xl0 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 55 > member: bge0 flags=143 > ifmaxaddr 0 port 2 priority 128 path cost 55 > > I need to manually start the dhclient on the bridge0 for getting my IP address: > > [root@d630]~#dhclient bridge0 > DHCPREQUEST on bridge0 to 255.255.255.255 port 67 > DHCPNAK from 192.168.100.254 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 6 > DHCPOFFER from 192.168.100.254 > DHCPREQUEST on bridge0 to 255.255.255.255 port 67 > DHCPACK from 192.168.100.254 > bound to 192.168.100.58 -- renewal in 432000 seconds. > You could move (parts of) your ip configuration to /etc/rc.local It is run once at boot time, Marten > I'm ussing current: > [root@d630]~#uname -a > FreeBSD d630.freenas.org 8.0-CURRENT FreeBSD 8.0-CURRENT #14: Thu Mar > 12 14:17:22 CET 2009 > root@d630.freenas.org:/usr/obj/usr/src/sys/DellD630 amd64 > > What is the good rc.conf parameters for using a dhclient on a bridge interface ? > > Thanks, > > Olivier > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Marten Vijn linux 2.0.18 OpenBSD 3.6 FreeBSD 4.6 http://martenvijn.nl http://opencommunitycamp.org http://wifisoft.org