Solved

How to change the ip by command line

Posted on 2006-11-01
10
231 Views
Last Modified: 2010-03-18
I tried to change the ip by command line, the netsh, but not work.

That is originally has one ip, but now need to change to another one.
0
Comment
Question by:turbot_yu
[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
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 48

Assisted Solution

by:Jay_Jay70
Jay_Jay70 earned 350 total points
ID: 17853920
what do you mean netsh does not work? does it error? have you got enough rights to do it?
0
 

Author Comment

by:turbot_yu
ID: 17854690
I am the administrator, I try to use the netsh command to do it, but cannot work.
0
 
LVL 48

Assisted Solution

by:Jay_Jay70
Jay_Jay70 earned 350 total points
ID: 17854700
you still havent told me how it doesnt work, do the changes not get made or are you having troubles actually using the command?
0
Independent Software Vendors: 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!

 

Author Comment

by:turbot_yu
ID: 17855737
when using the command it said the ip is not a acceptable ip address
0
 
LVL 48

Assisted Solution

by:Jay_Jay70
Jay_Jay70 earned 350 total points
ID: 17855754
then you used the wrong syntax start with netsh /?
then go through each step as the help explains  netsh /? then you will see options  
netsh interface /?
then netsh interface set /?

etc etc etc
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 100 total points
ID: 17856905
Yup, something like

netsh
int
ip
set address local static x.x.x.x 255.255.255.0 x.x.x.x 1
0
 
LVL 14

Assisted Solution

by:FriarTuk
FriarTuk earned 50 total points
ID: 17857564
0
 

Author Comment

by:turbot_yu
ID: 17863615
netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

yes, I tried like this but not work.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17864436
But what does it do.  As jayjay say type

netsh    then press return and you end up netsh console
int   return
etc.
at each level you can type help to see the commands.

Is netsh running at all, what is the error - you don't get it on 2000 for instance.
0
 
LVL 14

Expert Comment

by:FriarTuk
ID: 17865832
depending on your router, your ip might be 192.168.1.10 or 192.168.2.10, also be sure you included the metric of 1

i just did this on my pc & it worked setting it to static then back to dhcp

netsh interface ip set address "Local Area Connection" static 192.168.0.70 255.255.255.0 192.168.0.1 1

netsh interface ip set address "Local Area Connection" dhcp (ip 0.55)

maybe you need to reset you tcp/ip stack
netsh int ip reset c:\resetlog.txt  (http://support.microsoft.com/?kbid=299357)
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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