Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 12:25:44 +0100
From:      "Jasvinder S. Bahra" <bbdl21548@blueyonder.co.uk>
To:        <freebsd-questions@freebsd.org>
Subject:   Binding dhclient to a particular network interface
Message-ID:  <002301c7d10a$09ee5180$0600010a@atlantis>

Next in thread | Raw E-Mail | Index | Archive | Help
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






Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?002301c7d10a$09ee5180$0600010a>