Solved

Netsh to set local IP

Posted on 2006-11-16
7
730 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

726 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