Re: DHCP on Solaris: How to renew lease when VPN is active
- From: deja_bhoot2000@xxxxxxxxx
- Date: 22 Dec 2005 10:07:06 -0800
I am reviving this thread with some additional information.
The problem is that the IP lease is NOT being renewed before the
expiry, IF VPN is running. Let me explain step-by-step, together with
what snoop shows.
1. If I reboot the machine, DHCP works, an IP is obtained. Hostname is
set to unknown, but there's a startup script that fixes this. The lease
is issued for 24 hours, and renew time is set to 12 hours (plus or
minus some random value).
SNOOP:: OLD-BROADCAST -> BROADCAST DHCP/BOOTP DHCPREQUEST
2. If after a few minutes, I issue "ifconfig hme0 dhcp extend" command,
the lease is extended to 24 hours, starting from now. This is fine.
SNOOP:: n1-n2-n3-n4.dsl.static.ISP.net ->
n5.eth_n6.dhcp.dsl-gw_n7.City.ISP.net DHCP/BOOTP
DHCPREQUEST
(where n1.n2.n3.n4 is my previously obtained ip address; n5, n6, n7,
City and ISP are specific to ISP).
3. I start VPN in the following way.
Command: /usr/local/bin/open_tunnel -d hme0 vpn.Company.COM USERID@vpn
Enter the Shared Key for USERID@vpn : <shared key typed>
Enter the PAP Authentication Secret for USERID@vpn : <PAP typed>
Enter the RADIUS Password for USERID@vpn : <Password typed>
Tunnel open for "USERID@vpn" as "IP1" to "IP2"
Where both IP1 and IP2 are distinct ip addresses.
Once VPN is running, this machine can ONLY connect to employer's domain
(telnet / rsh / ping etc work only for machines in Company's domain). I
suppose this is from a security point of view, and is the whole point
of VPN.
If I now issue a DHCP extend command, nothing happens. Lease is not
extended, and, in fact, snoop shows that no requests were issued. In
fact, at this point, even nslookup does not work.
As a result, VPN runs fine until DHCP lease expires. Once the lease
expires, VPN tunnel closes, and VPN connection is lost. After this,
DHCP automatically renews the lease.
So, I have a catch 22! To keep VPN running, I need to renew the lease,
but if VPN is running, the lease can not be renewed. I would appreciate
any guidance in this issue.
Thanks in advance for your suggestions.
Bhoot Nath
.
- Follow-Ups:
- Re: DHCP on Solaris: How to renew lease when VPN is active
- From: Andrew Gabriel
- Re: DHCP on Solaris: How to renew lease when VPN is active
- References:
- Re: DHCP on Solaris: unable to obtain IP address -- RESOLVED!
- From: Andrew Gabriel
- Re: DHCP on Solaris: unable to obtain IP address -- RESOLVED!
- Prev by Date: Sshd core dumping
- Next by Date: Re: DHCP on Solaris: How to renew lease when VPN is active
- Previous by thread: Re: DHCP on Solaris: unable to obtain IP address -- RESOLVED!
- Next by thread: Re: DHCP on Solaris: How to renew lease when VPN is active
- Index(es):
Relevant Pages
|