1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Remote IP change of a workstation

Discussion in 'Networking (Hardware & Software)' started by smigen, 2006/12/16.

  1. 2006/12/16
    smigen

    smigen Inactive Thread Starter

    Joined:
    2006/07/03
    Messages:
    26
    Likes Received:
    0
    I'm currently remote from the workstation/network.

    I had a DHCP reservation built for it on a 2003 server which it has been using. I needed to change the reservation IP address for it and it's in place. Restarted the DHCP service on the server and DHCP Leases shows me it's there waiting (inactive) to be used.

    Logged into the workstation remotely and rebooted it with a "shutdown -r" command expecting it to pickup it's new address but it didn't and is retaining it's old one. The NIC on the workstation is set to Dynamic not Static.

    What am I overlooking too make this change from my remote location?
     
    Last edited: 2006/12/17
  2. 2006/12/17
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    You can force a PC to renegotiate it's IP lease from the DHCP server. You use IPCONFIG:

    ipconfig /release
    ipconfig /renew

    Will release the lease and then force the PC to renegotiate the lease with the DHCP server. Run these commands at the command prompt on the client PC.
     

  3. to hide this advert.

  4. 2006/12/17
    smigen

    smigen Inactive Thread Starter

    Joined:
    2006/07/03
    Messages:
    26
    Likes Received:
    0
    Well yeah.....locally I can, and just did after stopping by that office on my way home from skiiing. It picked up the new IP no problems.

    What I was asking is how to do it from a remote location through RDP.

    I can see no problem running the command ->[ipconfig /release] while logged into that workstation but then I'm hosed on the renew part since I've just disconneted the NIC from the session.

    Correct?
     
    Last edited: 2006/12/17
  5. 2006/12/18
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Sorry - missed the remote point!

    You could copy the two commands into a batch file and then trigger the batch file.
     
  6. 2006/12/22
    Bill Castner

    Bill Castner Inactive

    Joined:
    2006/08/30
    Messages:
    1,980
    Likes Received:
    0
    He would still be disconnected with the script.

    See if having done locally the ipconfig series of commands, the IP now becomes sticky for the local workstation.

    The DHCP service is rather lazy. If it finds on the workstation an already valid IP within its scope, it likely will only renew the lease. Laptop users face this commonly when going from location A to location B, and the subnet scheme is the same at both locations. They need to use ipconfig to force a fresh DHCP renewal, or otherwise they face having a valid IP address, and nonsensical Gateway and DNS entries.

    While IP Reservation is nice; for your needs, using a static IP would make more sense.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.