• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 758
  • Last Modified:

Netsh to set local IP

Hi, I want to use the following command to set a static IP for a PC

I have tried both of these and they dont work:

NETSH interface ip set address "Local Area Connection" static 192.168.10.101 255.255.255.0 192.168.10.100 1
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

Please help!

TIA

0
j4jack
Asked:
j4jack
  • 4
  • 2
1 Solution
 
shawn703Commented:
Try this one:

NETSH interface ip set address name="Local Area Connection" source=static 192.168.10.101 255.255.255.0 192.168.10.100 1
0
 
shawn703Commented:
The name of you network connection is "Local Area Connection" right?  (Not "Local Area Connection 2" or something like that...)  Also you have full admin rights?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
JRockSolidCommented:
I was able to complete the command like this:

netsh interface ip set address local static 192.168.5.101 255.255.255.0 192.168.5.1 1

Hope this works for you
0
 
JRockSolidCommented:
And the name of my Net Con Isnt local   It is Local Area Connection
0
 
JRockSolidCommented:
Any Luck?
0
 
JRockSolidCommented:
Thankyou Jack!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now