> On Sun, 29 Mar 1998, James Amendolagine wrote:
>
> > dhcp retruns the address of a couple of flakey name servers, I
believe that they
> > are just used as a bootstrap kind of thing. You have to have their
real name
> > server in there also. I mannaged this by editing the file:
> > /etc/sysconfig/network-scripts/
> >
> > ifdhcpc-done: echo "nameserver 204.174.64.1" >> /etc/resolv.conf
> > ifdhcpc-done: echo "nameserver 204.174.65.1" >> /etc/resolv.conf
> >
> > This is not the best fix, but I don't have time right now. The
problem is that
> > when your IP expires and dhcpc retrieves the new one it overwrites
> > /etc/resolv.conf again. I don't think that ifdhcpc-done get's called
again.
> > Another thing. Don't set up eth0 to be set up at boot time (with the
control
> > panel). There seems to be an error in the redhat scripts. They try
to start it
> > twice, and it fails the second time. I just added a line
> >
>
> I've been thinking of going onto ADSL myself when I move out of
residence.
> But something you said up there has me wondering about it. Normally
DHCP
> assigns the same address to the same host if the lease is still valid,
and
> no-one else has stolen the IP address. What you've said up there is
that
> the DHCP that ADSL assigns a different IP address each time the dhcp
> client queries for a renewal on the lease. Is this what you meant?
>
> It would be a tad inconvient if you have 5 or 6 TCP connections open
and
> your IP address changes.
OK, I just broke down and looked at the dhcpd man page. It says that
the IP remains
the same as long as your client renews before the expire.
On startup, dhcpd reads the dhcpd.conf file and stores a
list of available addresses on each subnet in memory.
When a client requests an address using the DHCP protocol,
dhcpd allocates an address for it. Each client is
assigned a lease, which expires after an amount of time
chosen by the administrator (by default, one day). Before
leases expire, the clients to which leases are assigned
are expected to renew them in order to continue to use the
addresses. Once a lease has expired, the client to which
that lease was assigned is no longer permitted to use the
leased IP address.
Jamie