Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.