Help with Linux and DHCP
Scott Ehrlich
se at panix.com
Thu Mar 1 13:05:36 EST 2001
Here's what is happening -
The PC, when first booted, obtained a DHCP address. Since that time,
regardless of what I try, has kept the same address. A few times I did
reboot it, was shown a different IP address during startup, ifconfig still
showed eth0 as the original IP. At present, no matter what, I still have
that original IP.
I want to get rid of that address and let the interface dynamically be
assigned whatever address an assignment provides.
In a similar issue, how do I release and renew a lease?
Thanks.
Scott
On 1 Mar 2001, Derek Atkins wrote:
> DHCP, by default, wants to renew the same IP Address. Indeed, unless
> there is a particular reason why, the DHCP server will give you the
> same IP address as well.
>
> I guess I don't understand what you are trying to do. The DHCP client
> will automatically renew the lease for you. All you need to do is
> down the interface if you want to disconnect. There is no supported
> way in the DHCP protocol to 'release' a lease at the server.
>
> -derek
>
> Scott Ehrlich <se at panix.com> writes:
>
> > Hello to all:
> >
> > I have a PC at work onto which I installed Slackware 7.0 and enabled DHCP.
> > I also upgrade the kernel to 2.2.18. Since doing all this, the dhcp
> > client will not release the IP address it obtained from initial booting.
> > I've tried removing /etc/dhcpc/* except for the .exe script for logging
> > when it detects a new IP address.
> >
> > I've looked at the man pages for dhcp, dhcpcd, and ifconfig, and nothing
> > lets me release the IP address.
> >
> > How can I force the release and force query and acceptance of a new
> > address should a lease or reboot offer address?
> >
> > Thanks.
> >
> > Scott
> >
> > -
> > Subcription/unsubscription/info requests: send e-mail with
> > "subscribe", "unsubscribe", or "info" on the first line of the
> > message body to discuss-request at blu.org (Subject line is ignored).
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list