Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Help with Linux and DHCP



How do you know that you're not being assigned the same address?
DHCP _does_ try to assign the same address when it can.

-derek

Scott Ehrlich <se at panix.com> writes:

> 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
> >
> 

-- 
       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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org