Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-21-2001, 02:32 PM
|
#1
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
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!
|
|
|
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:
|
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.
|
|
|
11-23-2001, 09:18 AM
|
#3
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Original Poster
Rep:
|
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 02:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|