Aw, man! You're supposed to have dhcpcd installed because it's the only thing I researched. ;-)
Option 1: Install dhcpcd. Option 2: Learn dhclient. Here's a man page for dhclient: http://resin.csoft.net/cgi-bin/man.cgi?section=8&topic=dhclient Some info on dhclient.conf: http://resin.csoft.net/cgi-bin/man.cgi?section=5&topic=dhclient.conf Here's an example dhclient.conf file from a very old blog site (1998A): http://www.freebsddiary.org/dhclient.php timeout 60; retry 60; reboot 10; select-timeout 5; initial-interval 2; script "/etc/dhclient-script"; prepend domain-name "mydomain.com "; prepend domain-name-servers 127.0.0.1; interface "ed0" { request subnet-mask, broadcast-address, routers, domain-name-servers, domain-name, host-name; require domain-name-servers; media "link2"; } And, last but not least, some interesting options for dhclient: http://linuxcommand.org/man_pages/dhclient8.html You could watch the .conf file referred to in the documentation for changes. Maybe Tripwire would work for this (instead of a periodic check using cron)? I haven't tried, so I don't know. I may get a chance to look at this in more detail this weekend, but tonight is out, I have a date with my sweetheart. :-) Also, there was this posting from Jesse Kline earlier: >I also got this response from Richi Plana: >"Or, if you're using dhclient, modify the /sbin/dhclient-script script. >There's a section there that actually handles a change in IP address. >Just email the contents of $new_ip_address to your external mail >account." >This one may relate more directly to what you are trying to do. > >I hope this helps, > >Jesse Good luck, and keep us posted! I'm interested to see if dhclient has the same functionality as dhcpcd. Curtis. -----Original Message----- From: Shawn [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 8:55 PM To: [EMAIL PROTECTED] Subject: RE: (clug-talk) DHCP Client? Thanks to both of you for the reply. The ps -e shows me a process called dhclient. I did try a cd /etc/dhcpc and got a "no such file or directory". I was looking for the "/etc/dhcpcd/dhcpcd-eth0.exe" script file to edit it, but without the dhcpcd directory, that's kinda hard. Is there an equivalent script file for dhclient? Or should I just run my scripts in another location (trying to do nsupdate when my ip address changes...) Thanks again. Shawn -----Original Message----- From: Trevor Lauder [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 8:39 PM To: [EMAIL PROTECTED] Subject: Re: (clug-talk) DHCP Client? Although Redhat has a pump rpm it hasn't used it as the dhcp client in years. The one installed by default is dhcpcd. The config directory would be /etc/dhcpc Cheers, -- Personal: Trevor Lauder Web: http://www.thelauders.net E-Mail: [EMAIL PROTECTED] Work: Trevor Lauder Technical Services Specialist Wireless Networks Inc. Web: http://www.wirelessnetworksinc.com E-Mail: [EMAIL PROTECTED] HJ Hornbeck said: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Shawn wrote: > | How do I know which DHCP Client my box is running? > | > | It is a RH8 installation, with 2 NICS - one static IP, the other > dynamic. I don't seem to have a /etc/dhcpcd folder, so I think that one > is out.... > | > | Thanks > | > | Shawn > | > | > > Try "ps -e", many clients hang around in the background to renew the > DHCP lease. I think RH uses pump, but another popular choice is dh-client. > > HJ Hornbeck > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE+TFyUbYQU8p5saQIRAjJaAJ9UHBORAphKNr16AWZw6VV4DY+8EwCghp7W > Rb9qzsP87rZY0nHJNkhMSUo= > =2yln > -----END PGP SIGNATURE----- > >
