none
Change Ip address with Command line

    Question

  • Hi ,

     

    I would like to change IP address Gateway,DNS with command like,

     

    If you have some experiences with this pls let me know.

     

    Best Regards,

    ye yint depar 


    ye yint depar
    Monday, August 22, 2011 7:44 AM

Answers

  •  

    You would use the NETSH command does this.  Check here for more info http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

    This is its internal helpfile: type netsh /?

    .. - Goes up one context level.
    ? - Displays a list of commands.
    abort - Discards changes made while in offline mode.
    add - Adds a configuration entry to a list of entries.
    alias - Adds an alias.
    bridge - Changes to the `netsh bridge' context.
    bye - Exits the program.
    commit - Commits changes made while in offline mode.
    delete - Deletes a configuration entry from a list of entries.
    diag - Changes to the `netsh diag' context.
    dump - Displays a configuration script.
    exec - Runs a script file.
    exit - Exits the program.
    firewall - Changes to the `netsh firewall' context.
    help - Displays a list of commands.
    interface - Changes to the `netsh interface' context.
    offline - Sets the current mode to offline.
    online - Sets the current mode to online.
    popd - Pops a context from the stack.
    pushd - Pushes current context on stack.
    quit - Exits the program.
    ras - Changes to the `netsh ras' context.
    routing - Changes to the `netsh routing' context.
    set - Updates configuration settings.
    show - Displays information.
    unalias - Deletes an alias.

    Regards, ~G MCSE, MCDST, MCITP, MCTS, MCP, CCNA
    Monday, August 22, 2011 8:41 AM
  • Hello,

    Did you look on technet website ?

    netsh interface ip set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress[mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}}

    http://technet.microsoft.com/en-us/library/cc738592(WS.10).aspx#BKMK_1

    Cheers,

     


    http://blog.simaju.fr - Partage de connaissances et retour d'expériences.

    Monday, August 22, 2011 8:47 AM

All replies

  •  

    You would use the NETSH command does this.  Check here for more info http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

    This is its internal helpfile: type netsh /?

    .. - Goes up one context level.
    ? - Displays a list of commands.
    abort - Discards changes made while in offline mode.
    add - Adds a configuration entry to a list of entries.
    alias - Adds an alias.
    bridge - Changes to the `netsh bridge' context.
    bye - Exits the program.
    commit - Commits changes made while in offline mode.
    delete - Deletes a configuration entry from a list of entries.
    diag - Changes to the `netsh diag' context.
    dump - Displays a configuration script.
    exec - Runs a script file.
    exit - Exits the program.
    firewall - Changes to the `netsh firewall' context.
    help - Displays a list of commands.
    interface - Changes to the `netsh interface' context.
    offline - Sets the current mode to offline.
    online - Sets the current mode to online.
    popd - Pops a context from the stack.
    pushd - Pushes current context on stack.
    quit - Exits the program.
    ras - Changes to the `netsh ras' context.
    routing - Changes to the `netsh routing' context.
    set - Updates configuration settings.
    show - Displays information.
    unalias - Deletes an alias.

    Regards, ~G MCSE, MCDST, MCITP, MCTS, MCP, CCNA
    Monday, August 22, 2011 8:41 AM
  • Hello,

    Did you look on technet website ?

    netsh interface ip set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress[mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}}

    http://technet.microsoft.com/en-us/library/cc738592(WS.10).aspx#BKMK_1

    Cheers,

     


    http://blog.simaju.fr - Partage de connaissances et retour d'expériences.

    Monday, August 22, 2011 8:47 AM
  • Dear All, Thanks for all of yours help full information. I will test and revert back to you. Best Regards, Ye yint depar
    ye yint depar
    • Proposed as answer by srirasha Tuesday, September 11, 2012 10:02 AM
    • Unproposed as answer by srirasha Tuesday, September 11, 2012 10:02 AM
    Tuesday, August 23, 2011 7:23 AM