Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2007 21:14:02 +0100
From:      "Jasvinder S. Bahra" <bbdl21548@blueyonder.co.uk>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: Binding dhclient to a particular network interface
Message-ID:  <000401c7d2e6$2bdaf770$0600010a@atlantis>
References:  <002301c7d10a$09ee5180$0600010a@atlantis> <46ACF835.7040402@crackmonkey.us> <000601c7d238$065da370$0600010a@atlantis> <001101c7d23e$ea6e2200$bf4a6600$@com> <001901c7d2da$1cc36760$0600010a@atlantis> <46AE3B2A.4050306@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck,

I gave this a shot, but this stopped the interface being assigned an IP
address at all (i.e... before the change, the interface had a valid IP
address assigned by the DHCP server in my cable modem, but after making the
change and restarting, the "ifconfig" command shows the interface having an
IP address of 0.0.0.0).

I do agree though - the man page explicitly says that this should work.

Oh, and i'm absolutely sure that the interface is configured to use DHCP.
i.e...

------ /etc/rc.conf snippet -------------------
network_interfaces="ed1 ed2 lo0"
ifconfig_ed1="DHCP"
ifconfig_ed2="inet 10.1.0.1  netmask 255.255.255.0"
ifconfig_lo0="inet 127.0.0.1"
----------------------------------------------

I added the dhclient_flags line you suggested, after the ifconfig_lo0 line
shown above, though as far as I know the order does not matter.  Thanks for
the suggestion though.

Anyone have anymore ideas?

Regards,

Jazz

----- Original Message ----- 
From: "Chuck Swiger" <cswiger@mac.com>
To: "Jasvinder S. Bahra" <bbdl21548@blueyonder.co.uk>
Cc: <freebsd-questions@freebsd.org>
Sent: Monday, July 30, 2007 8:25 PM
Subject: Re: Binding dhclient to a particular network interface


> Jasvinder S. Bahra wrote:
> > Terry,
> >
> > I tried adding the interface line to the dhclient configuration file
(and
> > then rebooting), but it had no effect.  Entering the "sockstat -l4"
command
> > showed that local address was still "*:68".
>
> "man dhclient" suggests that the interface needs to be specified on the
> command line.  Try adding:
>
>    dhclient_flags="ed1"
>
> ...to /etc/rc.conf, and double-check that you already have that interface
> configured to use DHCP while you're there.  :-)
>
> Regards,
> -- 
> -Chuck






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000401c7d2e6$2bdaf770$0600010a>