From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 00:12:45 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 B66BA16A418 for ; Mon, 30 Jul 2007 00:12:45 +0000 (UTC) (envelope-from fatman.uk@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 493A613C474 for ; Mon, 30 Jul 2007 00:12:44 +0000 (UTC) (envelope-from fatman.uk@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so1122962uge for ; Sun, 29 Jul 2007 17:12:44 -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=lOw4B3CglKfpF2xG7l1EumrtJjiUfF8CN4ScvRhZrrq5KnwWRzHwmlT1/65spOpYXKwrFII6WejkDM2npKqmuZOsvV6o9vwwzytr+YSe9I7AXlF06iC+VDZKzvlkowRcqiVJDgNbhSkOZ41zEMFJMTgjSqrQ0oxjXcFv5JtM6MQ= 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=nx3wxJcOe6VHIkf5UOIb5KQZwUxVbeqPaIqsodxKq/d3+C5IYnvM1Q9SpXQZGFl12AvJr0vBGZE4XwM5y8bY40DwQnn1AxMjdyflLwDX2Wt8QdW+2j4DOKz9UTva3he/Z3C/UJWiMAIzHtttwvOqQOCVcziGIkFqYbvtIkcRsIA= Received: by 10.66.239.2 with SMTP id m2mr4806956ugh.1185753763900; Sun, 29 Jul 2007 17:02:43 -0700 (PDT) Received: from monju-bosatsu.dreamtrack.dnsalias.com ( [86.18.88.217]) by mx.google.com with ESMTPS id k5sm10009562nfh.2007.07.29.17.02.42 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Jul 2007 17:02:43 -0700 (PDT) Message-ID: <46AD2AA0.7020002@crackmonkey.us> Date: Mon, 30 Jul 2007 01:02:40 +0100 User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: "Jasvinder S. Bahra" References: <002301c7d10a$09ee5180$0600010a@atlantis> <46ACF835.7040402@crackmonkey.us> <000601c7d238$065da370$0600010a@atlantis> In-Reply-To: <000601c7d238$065da370$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: Mon, 30 Jul 2007 00:12:45 -0000 > The DHCP reference for ed1 means dhclient is started (thereafter running > continuously as a daemon), which sets ed1's IP address to that assigned by > the cable modem. > > Note that dhclient generally runs as a daemon because it has to handle lease > renewals and/or expiration. I have no issues with it running as a daemon. Oh, interesting. I had assumed the interface called dhclient itself if the lease expired, or something. > As you can see, local address is listed as "*:68", which means its listening > on port 68 on all interfaces. I want to instruct dhclient to only listen on > my cable-modem facing network card. If this were the case, issuing the > "sockstat -l4" command would return as above, but with local address saying > "<>:68" (where > <> is, unsurprisingly, the IP address > assigned to the network card by the DHCP server in the cable modem). Is there a dhclient.conf somewhere in your /etc? That would surely hold the answer. Possibly editing /etc/rc.d/dhclient or /etc/netstart might help? I'm at the edge of my FreeBSD knowledge and in danger of falling off, so I'll stop with the suggestions now. :) Adam J Richardson