We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

How to change the ip by command line

turbot_yu
turbot_yu asked
on
Medium Priority
250 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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006
Commented:
what do you mean netsh does not work? does it error? have you got enough rights to do it?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
I am the administrator, I try to use the netsh command to do it, but cannot work.
CERTIFIED EXPERT
Top Expert 2006
Commented:
you still havent told me how it doesnt work, do the changes not get made or are you having troubles actually using the command?

Author

Commented:
when using the command it said the ip is not a acceptable ip address
CERTIFIED EXPERT
Top Expert 2006
Commented:
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
IT Consultancy
CERTIFIED EXPERT
Commented:
Yup, something like

netsh
int
ip
set address local static x.x.x.x 255.255.255.0 x.x.x.x 1

Author

Commented:
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.
Steve KnightIT Consultancy
CERTIFIED EXPERT

Commented:
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.

Commented:
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)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.