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 auto renew - not working
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

DHCP auto renew - not working

Réponse
 
LinkBack Outils de la discussion
Vieux 20/08/2007, 22h10   #1
betty Snoop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut DHCP auto renew - not working

Out of the box Debian 4.0 installation.

/etc/network/interfaces
-------------------------------
allow-hotplug eth0
iface eth0 inet dhcp
-------------------------------

Unplugging my network cable I get the following output:
e100: eth0: e100_watchdog: link down

Plugging it in again recognized that it's connected in, but the IP will not
renew. On reboot it always renews the IP correctly.

Why does it not renew the IP automatically? Should I be using something
other than "allow-hotplug"?

  Réponse avec citation
Vieux 21/08/2007, 04h30   #2
Kumar Appaiah
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP auto renew - not working

On Mon, Aug 20, 2007 at 02:50:27PM -0600, betty Snoop wrote:
> -------------------------------
> allow-hotplug eth0
> iface eth0 inet dhcp
> -------------------------------
> Plugging it in again recognized that it's connected in, but the IP will not
> renew. On reboot it always renews the IP correctly.
>
> Why does it not renew the IP automatically? Should I be using something
> other than "allow-hotplug"?


I am not sure about whether it is needed, but do you have auto eth0
somewhere in your interfaces file? man interfaces seems to suggest
having that as well...

HTH.

Kumar
--
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


--
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 21/08/2007, 04h40   #3
Jose Luis Rivas Contreras
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP auto renew - not working

betty Snoop wrote:
> Out of the box Debian 4.0 installation.
>
> /etc/network/interfaces
> ------------------------------
> -
> allow-hotplug eth0
> iface eth0 inet dhcp
> -------------------------------
>
> Unplugging my network cable I get the following output:
> e100: eth0: e100_watchdog: link down
>
> Plugging it in again recognized that it's connected in, but the IP will
> not renew. On reboot it always renews the IP correctly.
>
> Why does it not renew the IP automatically? Should I be using something
> other than "allow-hotplug"?

Maybe auto eth0?

Maybe your router is forgetting IPs? Mine does and I just put a
cron.hourly with a dhclient eth0...

Regards,
Jose Luis.
--

ghostbar on debian linux 'sid' 2.6.22 x86_64-SMP - #382503
Weblog: http://ghostbar.ath.cx/ - http://linuxtachira.org
http://debian.org.ve - irc.debian.org #debian-ve #debian-devel-es
San Cristóbal, Venezuela. http://chaslug.org.ve
Fingerprint = 3E7D 4267 AFD5 2407 2A37 20AC 38A0 AD5B CACA B118


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

iD8DBQFGyl3tOKCtW8rKsRgRAnfkAJ9yaWtmvxURTXSFSfeZzy +IUkEJ7gCdF/hJ
v6/yrv0bwg8DqFr4cd+WT9Y=
=9jjE
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 21/08/2007, 17h20   #4
betty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP auto renew - not working


> I am not sure about whether it is needed, but do you have auto eth0
> somewhere in your interfaces file? man interfaces seems to suggest
> having that as well...
>




The man page for interfaces states the following:
"allow-auto" and "auto" are synonyms


--
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 21/08/2007, 17h50   #5
Kumar Appaiah
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP auto renew - not working

On Tue, Aug 21, 2007 at 08:57:35AM -0700, betty wrote:
> The man page for interfaces states the following:
> "allow-auto" and "auto" are synonyms


Accepted. Thanks for the pointer.

Kumar
--
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036


--
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 21/08/2007, 23h50   #6
Florian Kulzer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DHCP auto renew - not working

On Mon, Aug 20, 2007 at 14:50:27 -0600, betty Snoop wrote:
> Out of the box Debian 4.0 installation.
>
> /etc/network/interfaces
> -------------------------------
> allow-hotplug eth0
> iface eth0 inet dhcp
> -------------------------------
>
> Unplugging my network cable I get the following output:
> e100: eth0: e100_watchdog: link down
>
> Plugging it in again recognized that it's connected in, but the IP will not
> renew. On reboot it always renews the IP correctly.
>
> Why does it not renew the IP automatically? Should I be using something
> other than "allow-hotplug"?


As far as my experience goes, the most reliable approach for this kind
of situation is to install "ifplugd" and to configure it to handle all
wired network interfaces which are not plugged in permanently.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
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
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 16h56.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, 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,13977 seconds with 14 queries