1832495 Members
6386 Online
110043 Solutions
New Discussion

dhcp Client acting up

 

dhcp Client acting up

If I use dhdpdb2conf to query the dhcp server, it reports everything is ok, but the normal network seems to not be functional (cannot even ping the default router or DNS servers). I think that the short lease time provided by my ISP is contributing, as on my WIN95 system, I can renew from winipcfg, but is states
Lease Obtained: Mon Oct 1 11:27:15 AM
Lease Expires: Tue Oct 2 11:27:15 AM
When as best I can determine, it is currently Tue Oct 2 11:27:15 AM. The problem machine is a 9000/735/125 running HPUX 10.20. Anyway, if I reboot, it will work for approx a day, then shutdown. I am suspecting that the lease is not being maintained properly, and the ISP is shutting down the connection when the lease expires...

Any suggestions appreciated.
6 REPLIES 6
Vincent Fleming
Honored Contributor

Re: dhcp Client acting up

It looks like the date on your dhcp server could be a day off.

I would think it would auto-renew, though.
No matter where you go, there you are.
E. Wong
Frequent Advisor

Re: dhcp Client acting up

Will,

Any particular reason you are requesting dynamic IP from your ISP? If this is your only option, you could ask your ISP to increase your lease time to more than 86400 secs (24HRS) if possible. Otherwise request a static IP.

rgds,

E.
compute, therefore you are

Re: dhcp Client acting up

A static ip would be wonderful, but I haven't broached the subject with the ISP as of yet. It seems to work fine on Win95 client, which is what I used to obtain the example times. However, on the hp-ux side, I don't see any way to determine the lease state or expiration time. Is there some command I haven't stumbled across??

Re: dhcp Client acting up

clearly, a static IP would be the preferred solution, but the system works just fine with Win95, so I was wondering if perhaps they were using GMT or something of that ilk, rather than being off a day. My Win95 system is set to the correct date, so that's not the problem.
Bill Thorsteinson
Honored Contributor

Re: dhcp Client acting up

If you are using dhcp as a client, you should have a
dhcp client daemon running. It should try to renew
the lease starting about half way through the lease.
It appears the daemon is not running.

I had problems with a client crashing if it couldn't
get a lease. I wrapped it in a loop like:

while sleep 1; do dhcpclient; sleep 60; done.

An alternate approach would be to run a cron job to
renew the lease every twelve hours.

Re: dhcp Client acting up

I guess I can try that...but I do not seem to have any documentation on the dhcpclient command. man -k says nothing relevant. Know where I can find the appropriate arguments? I am trying 'dhcpclient -b lan0' but it doesn't seem to be doing anything...