Force expiration of lease on a Solaris box?
John Tabasz (jtabasz)
jtabasz at cisco.com
Tue Mar 6 18:14:50 UTC 2007
And I assume that ifconfig $int release forces an immediate release of
the IP address, so if this is to be done remotely from a central
administrative server, it should be done by writing a executable that
runs the release and primary commands, shipping it to the Solaris box,
then changing the /etc/dhcpd.conf file on the server, then executing the
client side script to force the renew.
This helps quite a bit. Thanks,
John
-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On
Behalf Of Glenn Satchell
Sent: Tuesday, March 06, 2007 4:18 AM
To: dhcp-users at isc.org
Subject: Re: Force expiration of lease on a Solaris box?
>Subject: Force expiration of lease on a Solaris box?
>Date: Mon, 5 Mar 2007 12:20:48 -0800
>From: "John Tabasz \(jtabasz\)" <jtabasz at cisco.com>
>To: <dhcp-users at isc.org>
>
>Hi All,
>
>Anyone out there know if it's possible to force DHCP expiration and
>renewal of a Solaris network interface?
>
>I'm trying to figure out if I can impose my will on a Sun box to get it
>to acquire a different IP address that I have configured for it on my
>DHCP server.
The Solaris DHCP client is embedded within the ifconfig program.
So to release a lease on Solaris:
ifconfig $int dhcp release
and to aquire a new lease:
ifconfig $int dhcp primary
And to get the current state:
ifconfig $int dhcp status
Where $int is theinterface name, such as hme0, bge0 etc.
There's no way to force it to do this from the server though.
regards,
-glenn
More information about the dhcp-users
mailing list