Bob O'Connor wrote:
>
> I have a Redhat 7.2 box that is set up for dynamic addressing (DHCP client).
> This is working fine. I also have a script that is run at boot time to
> manually set the IP to some fixed address via ifconfig (don't ask).
Why not? Without knowing *why* you are doing something so strange it is
hard to suggest how to do it properly. Presumably you have a reason.
> This works fine.
But then you go on to say that it doesn't.
> My question is, is this OK (having dhcpd running and then fixing the IP vie
> ifconfig)?
Do you mean dhcpd? That is the DHCP server. The client is probably
dhcpcd or possibly dhclient.
No, it is not OK. If you are using a locally specified address you
should not be running a DHCP client.
> Reason I ask is that occasionally the network plays dumb (no
> ping, telnet, ftp, nothing). Is it possible and under what situation
> could/would DHCP "reset" the IP to something other that what I set it to a
> boot time with ifconfig?
Yes, if the lease expires and it has to get another. This is probably
what is causing the problem.
> Since I use fixed IP addressing I should probably disable DHCP but that's
> for another day.
You should. Alternatively, configure the DHCP server to always give you
the address you require (sometimes referred to as a "reservation"). If
you are not in control of the DHCP server, don't your network admins get
upset by your doing this?
Regards, Ian
|