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

LVL 1
j4jackAsked:
Who is Participating?
 
JRockSolidConnect With a Mentor Commented:
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
 
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
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
JRockSolidCommented:
And the name of my Net Con Isnt local   It is Local Area Connection
0
 
JRockSolidCommented:
Any Luck?
0
 
JRockSolidCommented:
Thankyou Jack!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.