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! |
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. |
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. |