LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-30-2004, 05:41 AM   #1
chrisnewey
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
dhcp - get new IP when lease renewed


For reasons I won't bore everyone with I want to run a shell script when my IP changes both at boot time and when the lease is renewed.

The man page for dhcpcd documents a -c switch which would appear to do the job at boot time.

Does anyone know if dhcpcd will also call the script when the IP changes at lease renewal time ?

The man page says:-
-c filename
Specifies the command file which is invoked when
dhcpcd successfully gets an IP address.

I interpret this to mean this to mean that <filename> will be called whenever the assigned IP changes.

Anyone know if this assumption is correct?

Kind Regards

Chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 05:37 AM
Cannot obtain DHCP lease TroelsSmit Linux - Newbie 24 06-18-2005 03:32 AM
DHCP Lease Delete! kofi Linux - Networking 2 07-29-2004 07:00 PM
Technical Q: How can I renew DHCP lease with different IP? paul_m_d Linux - Networking 16 07-26-2004 02:52 AM
Renewing DHCP Lease JimKyle Linux - Networking 10 07-18-2004 06:54 PM


All times are GMT -5. The time now is 06:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration