Re: Binding dhclient to a particular network interface



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@xxxxxxx>
To: "Jasvinder S. Bahra" <bbdl21548@xxxxxxxxxxxxxxxx>
Cc: <freebsd-questions@xxxxxxxxxxx>
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



_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [NEWS] Cisco IOS DHCP Blocked Interface DoS
    ... Cisco IOS devices running several branches of Cisco IOS that have Dynamic ... queue becomes blocked when receiving specifically crafted DHCP packets. ... configuration information from the DHCP server via the network. ... On a blocked Ethernet interface, ...
    (Securiteam)
  • Re: How to share the Internet with Linux and an iPad by Wi-Fi?
    ... # hostapd event logger configuration ... # Interface for separate control program. ... If this is specified, hostapd ... # SSID to be used in IEEE 802.11 management frames ...
    (Debian-User)
  • Re: IP "Alternate configuration"
    ... the TAB "Alternate Conguration". ... I'm already able to configure an interface via Netsh, ... I want to configure my interface to obtain the configuration automatically ... addr LAN DHCP" under the netsh to accomplish this. ...
    (microsoft.public.windows.server.scripting)
  • Re: Problems with OpenBSD dhclient
    ... > Sam Leffler wrote: ... > Lately dhclient hasn't even been setting the IP address all the time. ... > Manually taking the interface down and up solved this. ... configuration mechanism for wireless configuration is not going to work ...
    (freebsd-current)
  • Re: IP "Alternate configuration"
    ... the TAB "Alternate Conguration". ... I'm already able to configure an interface via Netsh, ... I want to configure my interface to obtain the configuration automatically ... addr LAN DHCP" under the netsh to accomplish this. ...
    (microsoft.public.windows.server.scripting)