From owner-freebsd-questions@FreeBSD.ORG Sat Jul 28 11:26:08 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 5A9CA16A418 for ; Sat, 28 Jul 2007 11:26:08 +0000 (UTC) (envelope-from bbdl21548@blueyonder.co.uk) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3751613C46C for ; Sat, 28 Jul 2007 11:26:08 +0000 (UTC) (envelope-from bbdl21548@blueyonder.co.uk) Received: from [172.23.170.137] (helo=anti-virus01-08) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1IEkQw-0004ck-QP for freebsd-questions@freebsd.org; Sat, 28 Jul 2007 12:26:06 +0100 Received: from [82.37.197.203] (helo=atlantis) by asmtp-out1.blueyonder.co.uk with smtp (Exim 4.52) id 1IEkQw-0003eX-Aw for freebsd-questions@freebsd.org; Sat, 28 Jul 2007 12:26:06 +0100 Message-ID: <002301c7d10a$09ee5180$0600010a@atlantis> From: "Jasvinder S. Bahra" To: Date: Sat, 28 Jul 2007 12:25:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: 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: Sat, 28 Jul 2007 11:26:08 -0000 One of my machines has two network cards in it - one of which connects to a switch, and the other to a cable modem. The IP address assigned to the switch facing network interface is fixed. However, the IP address assigned to the network interface connected to the cable modem, is dynamically assigned by the DHCP server built into the cable modem. If I run the following command at the command line... sockstat -l4 I am presented with a list of IPv4 listening services. Unsurprisingly, one of these services is "dhclient". However, unlike some of the other services listed, it seems to be listening on both network interfaces - local address is listed as "*.68". Is there a way of instructing dhclient to listen only on the cable-modem facing network interface? Note that I did check the man pages for dhclient and dhclient.conf, but I didn't see anything specific to my requirements. There was something mentioned about how to configure settings for a particular interface, but that is not exactly what I need. Thanks all, Jazz