tap-windows
tap-windows copied to clipboard
DHCP failure on reconnect after the very first connection
Windows 10 64-bit Openvpn GUI
The error is
Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv ) MANAGEMENT: >STATE:1559241905,CONNECTED,ERROR,10.8.0.2,xx.xx.xx.xx,9090,,
The very first connection to the server is successful, and the window minimizes itself as expected. If I reconnect, or disconnect and connect, every attempt after that fails.
I found an old forum post on this https://forums.openvpn.net/viewtopic.php?t=12362 They have absolutely no solution to this, and I have yet to find an problem with my config.
All non-Windows clients work fine without this issue
Workarounds:
- reinstalling the TAP adapter with the included scripts (or the one in the forum, or one that resets all adapters)
- going to "Network Connections" in control panel (ncpa.cpl) and disable TAP adapter, reenable TAP adapter, reconnect
- add the directive to the client config
ip-win32 manual
and set the IP, Subnet, Gateway, manually (again using ncpa.cpl)
The first 2 of my workarounds have to be done EVERY SINGLE TIME one wants to connect or reconnect to the VPN. The third one is an almost permanent fix, but if the server gives you a different IP, you have to do extra work...
Hi ,I have encountered a very similar problem, When I frequently use the tap network card to connect to the network and disconnect, sometimes my physical network card will not recive dhcp package from the dhcp server.I tried to capture packets with wireshark and found a strange phenomenon. The packet can be captured by wireshark, but it is not sent from the physical network card.