Re: sticky dhclient

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

 



John Meagher wrote:

> Hello all,
> 
> I set up an RH9 machine with DHCP and later switched it to
> static in /etc/sysconfig/network-scripts/ifcfg-eth0.
> 
> BOOTPROTO=none
> --plus the ip info
> 
> The interface works fine with the static info.
> All of this in connection with setting up an internal nameserver.
> 
> However that hasn't stopped my resolv.conf  from
> being overwritten with the old nameserver information:
> 
> ;generated by /sbin/dhclient-script
> search mydomain
> nameserver the-old-one
> nameserver another-old-one
> 
> What else is required to turn off the overwrite by dhclient?

Just kill dhclient process (or reboot). Since you changed the BOOTPROTO
to none, the  ifup/ifdown script don't know that they need to stop
dhclient so it continues to run. The better sequence would be
1. ifdown eth0 - kills dhclient
2. change BOOTPROTO to none
3. ifup eth0

HTH,
	Pavel.

> 
> Thanks
> 
> John
> 
> 
> 
> 
> -- 
> Shrike-list mailing list
> Shrike-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/shrike-list
> 



-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux