Setting static IP via commandline: "the parameter is incorrect" error


  1. Posts : 248
    Windows 10 Pro
       #1

    Setting static IP via commandline: "the parameter is incorrect" error


    Could someone tell me specficially what is wrong with the following command? It looks to me to be concordant with the instructions I'm trying to follow:

    Code:
    C:\Windows\system32>netsh interface ip add dns name="Ethernet" static 8.8.8.8 index=2
    The parameter is incorrect.

    For reference, the following worked just fine:

    Code:
    C:\Windows\system32>netsh interface ip set dns name="Ethernet" static 192.168.1.1
      My Computer


  2. Posts : 1,471
    Win10 Home x64 - 1809
       #2

    For secondary dns
    netsh interface ip add dns name="Ethernet" 8.8.8.8 index=2
      My Computers


  3. Posts : 248
    Windows 10 Pro
    Thread Starter
       #3

    I see, it was "static" which shouldn't be there. I don't get why it's meant to be in the other command but not this one but okay, thanks!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:51.
Find Us




Windows 10 Forums