W7 Cannot Set IP on Network TAP Adapter

Steven Petraglia spetragl at optonline.net
Thu Jan 29 09:43:31 PST 2015


I tried to escape it, but no luck.
    "Local Area Connection 2"
    Local^ Area^ Connection^ 2
    Local\ Area\ Connection\ 2

-----Original Message----- 
From: David Woodhouse
Sent: Thursday, January 29, 2015 11:48 AM
To: Steven Petraglia
Cc: Niels Peen ; openconnect-devel at lists.infradead.org
Subject: Re: W7 Cannot Set IP on Network TAP Adapter

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 




More information about the openconnect-devel mailing list