From owner-freebsd-current@FreeBSD.ORG Fri Mar 13 06:39:01 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 58FC610656D4 for ; Fri, 13 Mar 2009 06:39:01 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 2CFAB8FC1C for ; Fri, 13 Mar 2009 06:39:01 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so1527048wfd.7 for ; Thu, 12 Mar 2009 23:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=sKjtWrnIyN1KGNMQKqsmh4rKYRNAH8MD3II1BNdpfso=; b=lOXOFB+qiLv1PGIG3zDJwMpT097roMEQgQe/6UbmbUeOP/dT1Nr2/M2UIKFngUxMqA V1t2uorJst5IKJFz+8rC8zdAP+F12q1KMoNGkS63o61rDYik1iUZzHht5AKvhfA3EPA9 UbgikQPPZmEeycWp04/Q6pwlQE5P7L0EnpKiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=JGWPoHPxd74zi2JE4GvoUgdX769YjBquJkr/g1Vd6JBlHmjCkiHnmSU+KOL4Yeg1Dw K55NFlg8dMBjsUWDdp6YyKlNN9NS8dV0Njv8uoH+FywDZmuFSrgKyaOea2VkW6a7fVAX kyhLC/r40UzlirPNCuZl/viU08kVqoB3W9i7Y= MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.143.29.18 with SMTP id g18mr389903wfj.28.1236925996003; Thu, 12 Mar 2009 23:33:16 -0700 (PDT) Date: Fri, 13 Mar 2009 07:33:15 +0100 X-Google-Sender-Auth: 13a3bb03697d7515 Message-ID: <3131aa530903122333x244bd56aue4f4179991942aea@mail.gmail.com> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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 06:39:02 -0000 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. 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