Re: Automatic eth0 lost, and using DHCP send-hostname



On Sun, 2008-07-27 at 19:36 +0100, The Holy ettlz wrote:
> Hi,
> 
> > >  2. I can't seem to get the DHCP send-hostname feature to work.
> > 
> > It only works for system connections at the moment, but if you have
> > DHCP_HOSTNAME in your ifcfg file, it should pick that up and send it.
> > Verify this by dumping /var/run/nm-dhclient-eth0.conf and seeing what
> > options are in it.
> 
> I've just been playing with this one at the moment in F8. I've got
> 
>    DHCP_HOSTNAME=rhapsody
> 
> in both /etc/sysconfig/networking/devices/ifcfg-eth0
>     and /etc/sysconfig/network-scripts/ifcfg-eth0
> 
> nm-applet on F8 now shows just "Auto eth0", but I'll leave that for the
> time-being... anyway, with NetworkManager nm-dhclient-eth0.conf contains
> 
>     send host-name "rhapsody";
> 
> BUT I don't think the client is actually sending this --- I captured the
> packets with Wireshark and it's not in any of the DHCP request's
> options.
> 
> When I ran /sbin/dhclient eth0 -cf /etc/dhclient-eth0.conf (which
> contains the same lines as nm-dhclient-eth0.conf above), the hostname
> request is part of the request packet, and the name resolves OK.

What's the output of:

ps aux | grep dhclient

while you're connected using NetworkManager?  Are there any _more_ lines
in /etc/dhclient-eth0.conf than what was in nm-dhclient-eth0.conf?

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]