LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-21-2001, 02:32 PM   #1
sancho5
Member
 
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?

Thanks!
 
Old 11-21-2001, 10:51 PM   #2
mcleodnine
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/dchp-eth0.info (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
sancho5
Member
 
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?
Thanks.
 
  


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
SMIME certificate renewal FBergeron Linux - Software 2 03-29-2019 12:43 PM
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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration