[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] dhcp-renew fails using a remote DHCP server


  • Subject: [Openvpn-users] dhcp-renew fails using a remote DHCP server
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Tue, 5 Oct 2004 13:18:11 +0200 (CEST)

I'm experimenting with the "Media Status" = Always Connected on the TAP device (on Windows XP).

When using this, I found --dhcp-renew and --dhcp-release useful, to have the adapter release and renew the IP when starting/stopping diffrent openvpn tunnels.

All my configurations work fine with this except for one, where I use a DHCP server on the remote network, and bridges that to my TAP interface.

I'm using the check-mac trick to hand out IP adresses without a default gw from my DHCP server.

This worked fine, when Media Status was set to Application Controlled, and I did not use dhcp-renew, but now it doesn't. I just don't get any IP address.

Sniffing the TAP device with windump, it seems like no DHCP request is beeing sent.

So OpenVPN just keeps repeating:

Tue Oct 05 13:09:32 2004 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Oct 05 13:09:32 2004 Route: Waiting for TUN/TAP interface to come up...
Tue Oct 05 13:09:33 2004 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Oct 05 13:09:33 2004 Route: Waiting for TUN/TAP interface to come up...
Tue Oct 05 13:09:34 2004 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Oct 05 13:09:34 2004 Route: Waiting for TUN/TAP interface to come up...
Tue Oct 05 13:09:36 2004 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Oct 05 13:09:36 2004 Route: Waiting for TUN/TAP interface to come up...
Tue Oct 05 13:09:37 2004 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down

until it times out.

Running ipconfig /renew tap-dev gives me an IP adress though...

Is there perhaps a bug that --dhcp-renew only works with the internal DHCP server in the TAP driver?


Another related thing I've always wondered but not asked is:

Does OpenVPN or the TAP driver block DHCP requests from passing the tunnel when using the internal DHCP server in the TAP driver, or how do we make sure the internal DHCP server answers the DHCP requests, and not the DHCP server on the remote bridged network?

--
_________________________________________________________
Mathias Sundman              (^)   ASCII Ribbon Campaign
NILINGS AB                    X    NO HTML/RTF in e-mail
Tel: +46-(0)8-666 32 28      / \   NO Word docs in e-mail

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users