How do you change your static IP from the command line in W2k3

Posted on 2007-08-02
Last Modified: 2010-03-18
I need to change my static IP with a command line tool.
Question by:Treasur2
    LVL 6

    Expert Comment

    Here is a site with all the info you need:
    LVL 3

    Accepted Solution

    To set a static IP address, use this format: netsh interface ip set address local static <IP address> <subnet mask> <gateway> <metric of gateway> as in the following example: netsh interface ip set address local static 1 (Some command lines wrap to two lines here because of space constraints.) To set a client's NIC DNS settings, run this command: netsh interface ip set dns local static primary To set a client back to DHCP, run these commands: netsh interface ip set address local source=dhcp netsh interface ip set dns local source=dhcp


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 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

    23 Experts available now in Live!

    Get 1:1 Help Now