d***@yahoo.com
2005-11-08 00:57:54 UTC
I setup the machine following guidelines on Rich Teer's webpage.
http://www.rite-group.com/consulting/solaris_dhcp.html
After a reboot, ip is assigned; hostname becomes "unknown", but I have
a little script in /etc/rc2.d that takes care of setting back the
proper hostname. So far, so good.
The problem is that the lease is NOT being renewed in time. For
example, on 11/06 morning, running "ifconfig hme0 dhcp status" returned
the following:
Interface State Sent Recv Declined Flags
hme0 BOUND 60 2 0
(Began, Expires, Renew) = (11/06/2005 02:56, 11/07/2005 02:56,
11/06/2005 15:25)
This means that lease was obtained at 2:56AM on 11/6, and is set to
expire in 24 hours from the time lease was obtained. However, the lease
was NOT renewed up until about 3:39AM on 11/7, about 1 hour and 43
minutes after the lease expired. This is illustrated below.
Interface State Sent Recv Declined Flags
hme0 BOUND 63 2 0
(Began, Expires, Renew) = (11/07/2005 03:39, 11/08/2005 03:39,
11/07/2005 15:39)
Why is this happening? How can I make sure that the lease is renewed in
time? Also, what does "Renew" time mean in the status? If need be, I
can setup a cron job, or "sleep-renew-sleep" type of script that will
run all the time, but how do I tell "ifconfig" to do that? The only
options are start and drop -- there's no renew option..
Thanks in advance for your suggestions.
http://www.rite-group.com/consulting/solaris_dhcp.html
After a reboot, ip is assigned; hostname becomes "unknown", but I have
a little script in /etc/rc2.d that takes care of setting back the
proper hostname. So far, so good.
The problem is that the lease is NOT being renewed in time. For
example, on 11/06 morning, running "ifconfig hme0 dhcp status" returned
the following:
Interface State Sent Recv Declined Flags
hme0 BOUND 60 2 0
(Began, Expires, Renew) = (11/06/2005 02:56, 11/07/2005 02:56,
11/06/2005 15:25)
This means that lease was obtained at 2:56AM on 11/6, and is set to
expire in 24 hours from the time lease was obtained. However, the lease
was NOT renewed up until about 3:39AM on 11/7, about 1 hour and 43
minutes after the lease expired. This is illustrated below.
Interface State Sent Recv Declined Flags
hme0 BOUND 63 2 0
(Began, Expires, Renew) = (11/07/2005 03:39, 11/08/2005 03:39,
11/07/2005 15:39)
Why is this happening? How can I make sure that the lease is renewed in
time? Also, what does "Renew" time mean in the status? If need be, I
can setup a cron job, or "sleep-renew-sleep" type of script that will
run all the time, but how do I tell "ifconfig" to do that? The only
options are start and drop -- there's no renew option..
Thanks in advance for your suggestions.