Re: DHCP Assigned IP Addresses

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

 



On Wed, 16 Apr 2003, Lynn, Michael (IDS DM&DS) wrote:

> Greetings.
> 
> As you are probably aware, kickstart supports building servers with dhcp assigned ip addresses.
> 
> My question has to do with the default behaviour of dhcpcd.  If I build a server using a ks.cfg with
> 
> network --device eth0 --bootproto dhcp
> 
> the ifup script ends up executing dhcpcd with a -H and assigns a hostname to the server that is provided by the dhcp server.  I would like to avoid this and have the server hostname be assigned from
> /etc/hosts.
> 
> My first thought is to insert code into the ks.cfg that patches /etc/sysconfig/network-scripts/ifup to avoid using the -H flag on dhcpcd.
> 
> Anyone tackle this yet?  Any suggestions?

In my experience the hostname is set at install time, and the name
selected then sticks.

You can set it yourself in %post by updating /etc/sysconfig/network.

I prefer to have the name set at boot time by dhcp: to fix the name, I'd
be happy to set it in the dhcpd.conf file.



Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux