LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP Address renewal.. (https://www.linuxquestions.org/questions/linux-networking-3/ip-address-renewal-9035/)

sancho5 11-21-2001 01:32 PM

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!

mcleodnine 11-21-2001 09:51 PM

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.

sancho5 11-23-2001 08:18 AM

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.


All times are GMT -5. The time now is 06:11 PM.