Netsh Command on VPN Connection

Discussion in 'Windows Networking' started by Ben, Mar 25, 2006.

  1. Ben

    Ben Guest

    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/...all/proddocs/en-us/netsh_int_ip.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
     
    Ben, Mar 25, 2006
    #1
    1. Advertisements

  2. Ben

    Bill Grant Guest

    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
     
    Bill Grant, Mar 25, 2006
    #2
    1. Advertisements

  3. 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
    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
     
    Robert L [MS-MVP], Mar 26, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.