PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > DHCP renewal..
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

DHCP renewal..

Réponse
 
LinkBack Outils de la discussion
Vieux 19/08/2007, 20h30   #1
ISHWAR RATTAN
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut DHCP renewal..


Running a liveCD system.

At the first boot ip-address is obtained via DHCP
The ip-address is changed to a static ip-address
(does work)

After sometime, the system renews the DHCP lease,
is there a way to stop this renewal?

-ishwar


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 20h50   #2
Ken Irving
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..

On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>
> Running a liveCD system.
>
> At the first boot ip-address is obtained via DHCP
> The ip-address is changed to a static ip-address
> (does work)
>
> After sometime, the system renews the DHCP lease,
> is there a way to stop this renewal?


You can do what you want, but I think most DHCP servers expect the clients
to comply with periodically re-upping the lease. I'm not sure, but I think
the lease period is probably specified by the server when the ip is granted.
Read the manpages for client and servers to find out more.

You could, for instance, simply change your network to use a static address
with the ip you receive from the dhcp server -- but of course this would
seriously violate the whole reason for having dynamic addresses. I would
not recommend this; eventually the server would probably give that ip to
another system, and then you'll be screwing up that other user as well as
yourself.

Ken

--
Ken Irving, fnkci+debianuser@uaf.edu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 20h50   #3
Ken Irving
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..

On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>
> Running a liveCD system.
>
> At the first boot ip-address is obtained via DHCP
> The ip-address is changed to a static ip-address
> (does work)
>
> After sometime, the system renews the DHCP lease,
> is there a way to stop this renewal?


You can do what you want, but I think most DHCP servers expect the clients
to comply with periodically re-upping the lease. I'm not sure, but I think
the lease period is probably specified by the server when the ip is granted.
Read the manpages for client and servers to find out more.

You could, for instance, simply change your network to use a static address
with the ip you receive from the dhcp server -- but of course this would
seriously violate the whole reason for having dynamic addresses. I would
not recommend this; eventually the server would probably give that ip to
another system, and then you'll be screwing up that other user as well as
yourself.

Ken

--
Ken Irving, fnkci+debianuser@uaf.edu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 21h10   #4
ISHWAR RATTAN
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..



On Sun, 19 Aug 2007, Ken Irving wrote:

> On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>>
>> Running a liveCD system.
>>
>> At the first boot ip-address is obtained via DHCP
>> The ip-address is changed to a static ip-address
>> (does work)
>>
>> After sometime, the system renews the DHCP lease,
>> is there a way to stop this renewal?

>
> You can do what you want, but I think most DHCP servers expect the clients
> to comply with periodically re-upping the lease. I'm not sure, but I think
> the lease period is probably specified by the server when the ip is granted.
> Read the manpages for client and servers to find out more.
>
> You could, for instance, simply change your network to use a static address
> with the ip you receive from the dhcp server -- but of course this would


I did that but the client still goes for renewal. Temporary solution I have
is to kill the DHCP client (not allow it to run). I am sure that there is
a sane solution avaiilable in this group.

-ishwar


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 21h10   #5
ISHWAR RATTAN
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..



On Sun, 19 Aug 2007, Ken Irving wrote:

> On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>>
>> Running a liveCD system.
>>
>> At the first boot ip-address is obtained via DHCP
>> The ip-address is changed to a static ip-address
>> (does work)
>>
>> After sometime, the system renews the DHCP lease,
>> is there a way to stop this renewal?

>
> You can do what you want, but I think most DHCP servers expect the clients
> to comply with periodically re-upping the lease. I'm not sure, but I think
> the lease period is probably specified by the server when the ip is granted.
> Read the manpages for client and servers to find out more.
>
> You could, for instance, simply change your network to use a static address
> with the ip you receive from the dhcp server -- but of course this would


I did that but the client still goes for renewal. Temporary solution I have
is to kill the DHCP client (not allow it to run). I am sure that there is
a sane solution avaiilable in this group.

-ishwar


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 21h20   #6
Ken Irving
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..

On Sun, Aug 19, 2007 at 03:04:34PM -0400, ISHWAR RATTAN wrote:
> On Sun, 19 Aug 2007, Ken Irving wrote:
>> On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>>>
>>> Running a liveCD system.
>>>
>>> At the first boot ip-address is obtained via DHCP
>>> The ip-address is changed to a static ip-address
>>> (does work)
>>>
>>> After sometime, the system renews the DHCP lease,
>>> is there a way to stop this renewal?

>>
>> You can do what you want, but I think most DHCP servers expect the clients
>> to comply with periodically re-upping the lease. I'm not sure, but I
>> think
>> the lease period is probably specified by the server when the ip is
>> granted.
>> Read the manpages for client and servers to find out more.
>>
>> You could, for instance, simply change your network to use a static
>> address
>> with the ip you receive from the dhcp server -- but of course this would

>
> I did that but the client still goes for renewal. Temporary solution I have
> is to kill the DHCP client (not allow it to run). I am sure that there is
> a sane solution avaiilable in this group.


You are expected to comply and renew the lease; why not just do that?

What I (hesitantly) suggested is to change the network config to static,
not dynamic, at which point you'd have fixed (and stolen?) the IP you
were provided. I'm not familiar with a Debian LiveCD system (I have
used Knoppix and Ubuntu, both based on debian), so not sure of the details,
but presumably /etc/network/interfaces would exist in a RAM filesystem
and could be edited as needed. Alternatively, you could probably come up
with ifconfig commands to do this more directly.

Ken

--
Ken Irving, fnkci+debianuser@uaf.edu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 21h20   #7
Douglas A. Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..

On Sun, Aug 19, 2007 at 10:46:59AM -0800, Ken Irving wrote:
> On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
> >
> > Running a liveCD system.
> >
> > At the first boot ip-address is obtained via DHCP
> > The ip-address is changed to a static ip-address
> > (does work)
> >
> > After sometime, the system renews the DHCP lease,
> > is there a way to stop this renewal?


> You could, for instance, simply change your network to use a static address
> with the ip you receive from the dhcp server -- but of course this would
> seriously violate the whole reason for having dynamic addresses. I would
> not recommend this; eventually the server would probably give that ip to
> another system, and then you'll be screwing up that other user as well as
> yourself.


Or accept the dynamic IP on that interface and setup NAT on the box
(with, e.g. ipmasq if you want install-and-forget or shorewall if you
need tight controll) so you can use your own static IP on your network.

However, I don't know how to do this on a LiveCD system. I only use a
liveCD system to tweak an already installed one and have never needed to
set up networking with one.

Doug.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 22h10   #8
David Brodbeck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..


On Aug 19, 2007, at 11:46 AM, Ken Irving wrote:
> You can do what you want, but I think most DHCP servers expect the
> clients
> to comply with periodically re-upping the lease. I'm not sure, but
> I think
> the lease period is probably specified by the server when the ip is
> granted.
> Read the manpages for client and servers to find out more.


Yes, that's correct. The server tells the client how long the lease
is for, and the client is expected to renew at least that often.
(Some renew more often. Windows clients, for example, seem to renew
a couple times an hour even if given an 8-hour lease.)

If you don't renew and hang on to the IP anyway, *most* servers will
try to avoid re-assigning your IP to some other client, but I don't
think this is guaranteed. It's also generally considered bad form,
since it can cause problems for other network users.

If you control the server, there are ways to make it always give a
particular client the same IP. Many servers try to do this anyway,
if there are enough addresses in the pool.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/08/2007, 22h40   #9
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP renewal..

On Sun, Aug 19, 2007 at 02:25:14PM -0400, ISHWAR RATTAN wrote:
>
> Running a liveCD system.


Which one?

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGyKhcqJyztHCFm9kRAnykAKCq9y4LjWiG5Kwjp+O9yE EW+v4aDwCgtQcq
B20ptsfZ1fAJom6gRZlH47U=
=fsB5
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h42.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16541 seconds with 17 queries