Fedora NetworkManager and dhclient help request
John Abreau
jabr at blu.org
Fri Oct 7 22:11:50 EDT 2011
Hi, Pete.
In your reply, you refer to
/etc/dhclient-eth0.conf:
but I see no mention in your reply of
/etc/sysconfig/network-scritps/ifcfg-eth0
I've had problems with NetworkManager in the past that I finally
resolved by editing ifcfg-eth0. The behavior I observed was that
whenever I made changes to the network settings elsewhere,
NetworkManager would quickly notice them and then silently
change them back to match what was in ifcfg-eth0.
If dhclient-eth0.conf looks correct but ifcfg-eth0 is not, then
maybe that's why it's not working.
If you haven't already done so, I suggest trying what Shawn
O'Shea suggested earlier in this thread: put a line in ifcfg-eth0
that reads
DHCP_HOSTNAME=pds-lnxt500
On Fri, Oct 7, 2011 at 12:50 PM, Pete Snider <pds100 at gmail.com> wrote:
> On Fri, Oct 7, 2011 at 12:04 PM, Ken D'Ambrosio <ken at jots.org> wrote:
>> Hey, Pete -- I refer you to the e-mail thread from when I asked the very same
>> question:
>> http://answerpot.com/showthread.php?2777045-Dynamic+DNS%3A+Ubuntu+vs.+CentOS.
>> or http://tinyurl.com/6hav84b
>>
>> (I know there are other archives, but this was the first Google hit.)
>>
>> Shawn's response (search for "Shawn") was the magic that did the trick for me.
>>
>> -Ken
>>
>>
>>
>> On Fri, 7 Oct 2011 11:42:54 -0400 Pete Snider <pds100 at gmail.com> wrote
>>
>>> Hi,
>>>
>>> As numerous places of work are, I am in a mostly windows shop. I'm
>>> having problems with fedora network manager not setting the hostname
>>> through dhclient to the windows dns and dhcp server. There are 2
>>> people here that are using Ubuntu without any problems. I tried the
>>> same setup but it fails. I created /etc/dhclient-eth0.conf with the
>>> following entries below and still not working. The values do are in
>>> /var/run/nm-dhclient-eth0.conf used by dhclient.
>>>
>>> Any ideas on what to check next or how to resolve the issue.
>>>
>>> thanks,
>>> -pete
>>>
>>>
>>> contents of /etc/dhclient-eth0.conf:
>>>
>>> option rfc3442-classless-static-routes code 121 = array of unsigned integer
>>> 8;
>>>
>>> send fqdn.fqdn "pds-lnxt500.xyz.com.";
>>> send fqdn.server-update on;
>>> send option host-name "pds-lnxt500";
>>>
>>> request subnet-mask, broadcast-address, time-offset, routers,
>>> domain-name, domain-name-servers, domain-search, host-name,
>>> netbios-name-servers, netbios-scope, interface-mtu,
>>> rfc3442-classless-static-routes, ntp-servers;
>>>
>>> interface "tun0" {
>>> send option fqdn.fqdn "pds-lnxt500-vpn.xyz.com.";
>>> send option host-name "pds-lnxt500-vpn";
>>> send option fqdn.server-update on;
>>> }
>>> _______________________________________________
>
> I did see your's and other google pages about this. I've tried both
> 'send option host-name "pds-lnxt500";' and 'send host-name
> "pds-lnxt500";' without success. Notice that fqdn.fqdn and
> fqdn.server-update are also sent. The ps output: 6102 ? S
> 0:00 /sbin/dhclient -d -4 -sf /usr/libexec/nm-dhcp-client.action -pf
> /var/run/dhclient-eth0.pid -lf
> /var/lib/dhclient/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.lease
> -cf /var/run/nm-dhclient-eth0.conf eth0
>
> In examining /var/run/nm-dhclient-eth0.conf the 'send host-name
> "pds-lnxt500";' is present along with the other modifications.
>
> If the dhclient was the problem, I wouldn't expect the other 2 Ubuntu
> machines to work either.
>
> -pete
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
--
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
More information about the gnhlug-discuss
mailing list