Networking Forums

Networking Forums > Computer Networking > Windows Networking > Netsh Command on VPN Connection

Reply
Thread Tools Display Modes

Netsh Command on VPN Connection

 
 
Ben
Guest
Posts: n/a

 
      03-25-2006, 08:39 PM
Hi,

I'm trying to run the following Netsh command on a VPN connection;

"Netsh interface ip set dns name=OfficeVPN register=both"

according to ipconfig /all the interface is called 'OfficeVPN', but the
Netsh command error with "Invalid interface OfficeVPN specified". Is it
possible to run this command on a VPN connection? Or will it only run on
ethernet nics?
Also according to this link,
http://www.microsoft.com/resources/d....mspx?mfr=true
the WinXP command to register the DNS connection should be:

"Netsh interface ip set dns name=OfficeVPN ddns=enabled"

However my XP (SP2) says command ddns=enabled is invalid, and I have to use
register=both. Is the MS documentation incorrect?

Ben


 
Reply With Quote
 
 
 
 
Bill Grant
Guest
Posts: n/a

 
      03-25-2006, 10:24 PM
If you want to use the name of the interface you must enclose it in
quotes. eg

netsh interface ip set dns name = "OfficeVPN" register = both

Ben wrote:
> Hi,
>
> I'm trying to run the following Netsh command on a VPN connection;
>
> "Netsh interface ip set dns name=OfficeVPN register=both"
>
> according to ipconfig /all the interface is called 'OfficeVPN', but
> the Netsh command error with "Invalid interface OfficeVPN specified".
> Is it possible to run this command on a VPN connection? Or will it
> only run on ethernet nics?
> Also according to this link,
> http://www.microsoft.com/resources/d....mspx?mfr=true
> the WinXP command to register the DNS connection should be:
>
> "Netsh interface ip set dns name=OfficeVPN ddns=enabled"
>
> However my XP (SP2) says command ddns=enabled is invalid, and I have
> to use register=both. Is the MS documentation incorrect?
>
> Ben



 
Reply With Quote
 
Robert L [MS-MVP]
Guest
Posts: n/a

 
      03-26-2006, 05:03 AM


Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"Bill Grant" <not.available@online> wrote in message news:%(E-Mail Removed)...
If you want to use the name of the interface you must enclose it in
quotes. eg

netsh interface ip set dns name = "OfficeVPN" register = both

Ben wrote:
> Hi,
>
> I'm trying to run the following Netsh command on a VPN connection;
>
> "Netsh interface ip set dns name=OfficeVPN register=both"
>
> according to ipconfig /all the interface is called 'OfficeVPN', but
> the Netsh command error with "Invalid interface OfficeVPN specified".
> Is it possible to run this command on a VPN connection? Or will it
> only run on ethernet nics?
> Also according to this link,
> http://www.microsoft.com/resources/d....mspx?mfr=true
> the WinXP command to register the DNS connection should be:
>
> "Netsh interface ip set dns name=OfficeVPN ddns=enabled"
>
> However my XP (SP2) says command ddns=enabled is invalid, and I have
> to use register=both. Is the MS documentation incorrect?
>
> Ben



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SP3 Netsh command does not include wlan command. Stephen Liffen Wireless Networks 4 09-15-2008 02:42 PM
Network Connection Window empty / netsh errors out Spicy Mikey Windows Networking 2 06-21-2007 02:45 PM
netsh bridge command Sandy Proesch Windows Networking 1 05-16-2005 02:13 AM
launching dial up connection from command line Tobias Goller Windows Networking 1 12-29-2004 03:49 PM
command line connection to server Woody Windows Networking 0 03-02-2004 02:06 PM



1 2 3 4 5 6 7 8 9 10 11