LinuxQuestions.org
Review your favorite Linux distribution.
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 07-31-2002, 12:50 PM   #1
krumholz
LQ Newbie
 
Registered: Jul 2002
Location: Chicago
Distribution: RH9
Posts: 24

Rep: Reputation: 15
New IP address event ?


If my lease is not renewed and I am given a new IP address (assume that I dont re-boot) is there a way I can run an application - i.e. I want to drop my firewall and use my new ip address parsing the address from the RH 7.3 file in /etc/dhcpc called dhcpd-eth0.info. My parsing script would be called from /etc/rc.d/rc.local, at boot, but I want to call the parsing script if my ip address changes.

Thanks in advance !!!!
 
Old 07-31-2002, 02:10 PM   #2
rsbecker007
Member
 
Registered: Dec 2001
Location: South Bend, IN
Distribution: Debian, Red Hat, LFS
Posts: 39

Rep: Reputation: 15
I'm not sure if this will help much, but check out the clients at dyndns.org, one is written in perl and I think it can detect a change in ip address, I would check that out and see how it is written to get an idea of how to make this work
 
Old 08-01-2002, 01:02 PM   #3
rsbecker007
Member
 
Registered: Dec 2001
Location: South Bend, IN
Distribution: Debian, Red Hat, LFS
Posts: 39

Rep: Reputation: 15
I just checked out the README that the perl client had and it made me think that if you make an executable shell script

/etc/dhclient-enter-hooks

you could have it contain the call to do whatever you want when your address changes.
 
  


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
Event Capturing rem1986 Linux - General 2 12-13-2005 01:11 PM
Timer Event wallwaters Linux - Software 1 05-26-2005 10:46 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
Event logging RajaRC Linux - Networking 2 10-28-2004 01:59 AM
Event Sounds.. jhorvath Slackware 2 10-01-2002 05:13 PM


All times are GMT -5. The time now is 10:35 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