Re: run scrip after dhcp renew?



Le jeudi 31 juillet 2008, kj a écrit :
Hi guys,

I want to have my Lenny workstation run a script after my DHCP lease
gets renewed.

I've managed to get this done after networking starts/restarts, but
not when the lease gets renewed without restarting network. I don't
find any information in dhcp3-client's man pages either.

Anyone know how to do this?

thanks
--kj

Take a look to man dhclient-script. It permit hook in the dhcp protocol.
I'm pretty sure you can have a hook in the lease renewing.

Regards

--
Thomas Preud'homme

Why Debian : http://www.debian.org/intro/why_debian

Attachment: signature.asc
Description: This is a digitally signed message part.



Relevant Pages

  • Re: Internet reboots every hour at quarter til the hour
    ... reason fails to renew and then expires. ... The above may not be meaningful if you have a router in the path. ... and examine its lease expiration date/time. ... One reason for failure to renew a DHCP lease is a misconfigured ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Linksys Router Security Alert!
    ... Actually, with many ISPs, and depending on your usage pattern, dynamic IP ... off or disconnect your machine that has the lease on this IP address (lots ... disconnect or power off your machine or firewall device, ... DHCP lease on the IP address has expired. ...
    (comp.security.firewalls)
  • Re: Restarting modem/router through software
    ... Your DHCP lease may be expiring, ... bridge mode) to "renew" the lease before the expiry period. ... to restart the modem every couple of days. ... renewing the lease, and it is expiring, then a new IP address after ...
    (Fedora)
  • Re: hacked?
    ... Mine always shows up as yanking a DHCP lease but it does not show up as ... > i have one print server but i didnt think print servers ...
    (microsoft.public.windows.server.sbs)