W7 Cannot Set IP on Network TAP Adapter
David Woodhouse
dwmw2 at infradead.org
Thu Jan 29 08:48:26 PST 2015
On Thu, 2015-01-29 at 11:22 -0500, Steven Petraglia wrote:
> I ran into this little issue a while back.
> If I install openconnect-gui, it calls OpenVPN to install the TAP Adapter
> 'Local Area Connection 2'.
>
> Later when I connect to it, OpenConnect runs "vpnc-script-win.js" which
> attempts to set the IP Address of the TAP Network Adapter via this command:
> netsh interface ip set address "Local Area Connection 2" static
> 135.210.170.183 255.255.0.0
>
> The problem is, there's a bug in the Microsoft 'netsh' that doesn't handle
> white space in the Adapter name, causing
> it not to match the name and generate an error "Element Not Found".
Can it really not handle it? Or does it just need to be escaped somehow?
I did try torturing the character set handling by changing my TAP
adapter name to 'TAP♥' but I didn't explicitly try spaces... although I
thought the default did indeed have spaces, as you say, and was working.
--
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150129/5f36e947/attachment.bin>
More information about the openconnect-devel
mailing list