Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-21-2001, 02:32 PM   #1
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
IP Address renewal..

Hey there,
Couple questions.

Is there a way to determine from "ifconfig" if the current IP information was given out via DHCP?

What is the standard method (from BASH, not a graphical/menu driven utility) for releasing & renewing your dhcp lease?

If dhcpcd is active, should the output of `ps -A` show this?

Old 11-21-2001, 10:51 PM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
For the direct approach you could have a look at /var/state/dhcp/ (assuming dhcpcd as the client). This can tell you the lease time, address, renew, yaddah, yaddah, yaddah.

ps -aux |grep "dhcpcd" can tell you the command line used to start the client.
Old 11-23-2001, 09:18 AM   #3
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Original Poster
Rep: Reputation: 30
I'm assuming the /var/state/.... path you gave can also supply the information for primary domain suffix, DNS servers, etc.?

I don't have a listing under 'ps' for dhcpcd; I must be using pump. What differences can you tell me about the usage of pump vs. dhcpcd, if anything?


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 renewal question avirup dasgupta Linux - Networking 3 11-13-2005 07:02 PM
dhcp renewal Gollum78 Ubuntu 2 10-15-2005 05:43 AM
SMIME certificate renewal FBergeron Linux - Software 1 06-20-2005 10:51 AM
Re-run IPTables script after Lease Renewal Spotnik Linux - Networking 4 02-01-2004 08:11 AM
DHCP Renewal Problem MrSmith Linux - Networking 2 03-29-2003 04:20 PM

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

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