?
Solved

How to change the ip by command line

Posted on 2006-11-01
10
Medium Priority
?
233 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 1400 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 1400 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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

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 1400 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 400 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 200 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

762 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