W7 Cannot Set IP on Network TAP Adapter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux