From owner-freebsd-questions@FreeBSD.ORG Sun Jul 29 20:27:37 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7617416A417 for ; Sun, 29 Jul 2007 20:27:37 +0000 (UTC) (envelope-from fatman.uk@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id ED2A613C459 for ; Sun, 29 Jul 2007 20:27:36 +0000 (UTC) (envelope-from fatman.uk@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so1101081uge for ; Sun, 29 Jul 2007 13:27:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=Zvq7DsDxUjelkrUf+3QANNS7I9WSic3Xbd8qjuXTqdDr/Vd5rK1jo2Tnj686NA+91gPOcQ3SUZ4fBvR1/yVfIMbpvAYpt/PLWCeHplZ+02qN6Tl45jY7vXJEGdgumNk6aajoyj+HIBwiba4EGnzQuk88sQ7C+8WmlPvA+vHbpFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=iFj5ambm0EvgfVwk0rTuYGYVE0rEow+0cdsMIQJKsR6IfnSoKgx5rUmR8lMTsu1YtaAOIFkH3teb/MCngX7N/7Y6qqjWX55tY2pPl/KfyPGnJu8kID/B+MlgEJGrKu547A5TZcwwyyCYgKor4rSFmENxHNLPv+kndgsx1GUBS8g= Received: by 10.67.30.3 with SMTP id h3mr4687385ugj.1185740854513; Sun, 29 Jul 2007 13:27:34 -0700 (PDT) Received: from monju-bosatsu.dreamtrack.dnsalias.com ( [86.18.88.217]) by mx.google.com with ESMTPS id 31sm9495231nfu.2007.07.29.13.27.32 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Jul 2007 13:27:33 -0700 (PDT) Message-ID: <46ACF835.7040402@crackmonkey.us> Date: Sun, 29 Jul 2007 21:27:33 +0100 User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: "Jasvinder S. Bahra" References: <002301c7d10a$09ee5180$0600010a@atlantis> In-Reply-To: <002301c7d10a$09ee5180$0600010a@atlantis> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Adam J Richardson Cc: freebsd-questions@freebsd.org Subject: Re: Binding dhclient to a particular network interface 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: Sun, 29 Jul 2007 20:27:37 -0000 Jasvinder S. Bahra wrote: > > Is there a way of instructing dhclient to listen only on the cable-modem > facing network interface? Hi Jazz, I don't find it necessary to run dhclient as a daemon. My server has two interfaces, one wired and one wifi. In my /etc/rc.conf: ifconfig_fxp0="DHCP" ifconfig_ndis0="WPA DHCP" [You might recognise ndis as the Project Evil driver for using Windows network drivers under BSD.] When the netstart script runs, those two lines have the effect of starting wpa_supplicant on ndis0, and running dhclient on both interfaces. Supposing I temporarily assign a static IP to fxp0, I can revert to DHCP by typing: $ sudo dhclient fxp0 which does some DHCP magic and gets a lease. If I take ndis0 down I find I have to run /etc/netstart again to get it back up, but you didn't want to know that. HtH Adam J Richardson