Solved

Netsh to set local IP

Posted on 2006-11-16
7
711 Views
Last Modified: 2008-01-09
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
Comment
Question by:j4jack
  • 4
  • 2
7 Comments
 
LVL 2

Expert Comment

by:shawn703
ID: 17957965
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
 
LVL 2

Expert Comment

by:shawn703
ID: 17957978
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
 
LVL 13

Expert Comment

by:haim96
ID: 17959982
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 3

Accepted Solution

by:
JRockSolid earned 250 total points
ID: 17960527
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
 
LVL 3

Expert Comment

by:JRockSolid
ID: 17960539
And the name of my Net Con Isnt local   It is Local Area Connection
0
 
LVL 3

Expert Comment

by:JRockSolid
ID: 17971444
Any Luck?
0
 
LVL 3

Expert Comment

by:JRockSolid
ID: 18054792
Thankyou Jack!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now