Windows XP Community - XPHeads



renewing the dynamic IP address

microsoft.public.windowsxp.network_web


Reply
  #1 (permalink)  
Old 08-19-2008, 05:38 PM
David
 
Posts: n/a
renewing the dynamic IP address
Hi

Sometimes I unplug the Ethernet cable momentarily, and plug it back in.
After I do that, the IP address is not always renewed. Usually it's not a
problem, unless I connected the PC back to a different network, and I must
get a new IP.
Question is - when does Windows renew its IP, and when doesn't it?
Can I configure something to have it always renew it's IP after plugging the
cable?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-19-2008, 06:25 PM
David B.
 
Posts: n/a
Re: renewing the dynamic IP address
Open a command prompt, type "ipconfig /renew" without the quotes.

--

----
Crosspost, do not multipost http://www.blakjak.demon.co.uk/mul_crss.htm
How to ask a question http://support.microsoft.com/kb/555375



"David" <David@discussions.microsoft.com> wrote in message
news:616314B3-DEC8-4295-A988-BEB6D81B1970@microsoft.com...
> Hi
>
> Sometimes I unplug the Ethernet cable momentarily, and plug it back in.
> After I do that, the IP address is not always renewed. Usually it's not a
> problem, unless I connected the PC back to a different network, and I must
> get a new IP.
> Question is - when does Windows renew its IP, and when doesn't it?
> Can I configure something to have it always renew it's IP after plugging
> the
> cable?
>
> Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-19-2008, 08:35 PM
John Wunderlich
 
Posts: n/a
Re: renewing the dynamic IP address
=?Utf-8?B?RGF2aWQ=?= <David@discussions.microsoft.com> wrote in
news:616314B3-DEC8-4295-A988-BEB6D81B1970@microsoft.com:

> Hi
>
> Sometimes I unplug the Ethernet cable momentarily, and plug it
> back in. After I do that, the IP address is not always renewed.


How do you determine that the IP address is renewed? By looking at the
lease dates? By unplugging the cable, the DHCP server has no idea that
the machine is not still there and will maintain the IP address
reservation until it times out (sometimes days). When plugging the
machine back in, Windows will try to obtain an IP address from the
server, but the server has no idea that the computer was ever gone, so
it will simply inform it of what it thinks is its current address. The
lease date/time may not be updated.

Ideally, bring up a command prompt and type:
ipconfig /release
before disconnecting the cable. This will formally return the IP
address back to the DHCP server and force a DHCP cycle when reconnected
-- but don't be surprised when you get the same IP address you had
before.

> Usually it's not a problem, unless I connected the PC back to a
> different network, and I must get a new IP.


Obtaining an IP address *should* happen automatically when plugging
into different network.

> Question is - when does Windows renew its IP, and when doesn't it?


It _renews_ its IP when the lease is 1/2 over. It attempts to _obtain_
an IP address when senses a connection to a new network.

> Can I configure something to have it always renew it's IP after
> plugging the cable?


It should always try to obtain an IP address when connected. Unclear
is your definition of "renew".

-- John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-19-2008, 09:01 PM
AJR
 
Posts: n/a
Re: renewing the dynamic IP address
"Dynamic" means exactly that - the address is assigned each time you connect
and will be different each time - it would be unusual to have the same
"dynamic" address assigned when unpluging and replugging - a "static"
address would not change.


"David" <David@discussions.microsoft.com> wrote in message
news:616314B3-DEC8-4295-A988-BEB6D81B1970@microsoft.com...
> Hi
>
> Sometimes I unplug the Ethernet cable momentarily, and plug it back in.
> After I do that, the IP address is not always renewed. Usually it's not a
> problem, unless I connected the PC back to a different network, and I must
> get a new IP.
> Question is - when does Windows renew its IP, and when doesn't it?
> Can I configure something to have it always renew it's IP after plugging
> the
> cable?
>
> Thanks



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-19-2008, 09:53 PM
John Wunderlich
 
Posts: n/a
Re: renewing the dynamic IP address
"AJR" <ajrjdr@comcast.net> wrote in
news:#gwQO7jAJHA.4992@TK2MSFTNGP06.phx.gbl:

> "Dynamic" means exactly that - the address is assigned each time
> you connect and will be different each time - it would be unusual
> to have the same "dynamic" address assigned when unpluging and
> replugging - a "static" address would not change.
>
>


On the contrary... DHCP has a strong preference to maintain the same
IP address when obtaining an address. Only if the "old" address were
no longer available or not valid on the current network would the
request be denied and a different address be assigned. When this
happens, a warning is logged in the System Events Log.

-- John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-20-2008, 03:57 AM
Jack \(MVP-Networking\).
 
Posts: n/a
Re: renewing the dynamic IP address
Hi
It really depends on the DHCP server.
Most End-Users have a Cable/DSL Router that includes a DHCP server and it
assigns the IP.
Some Routers would behave like the OP posted above, others might have
various behavior.
A Good Router includes a DHCP server that can Reserve an IP within the DHCP
range. I.e it remembers the MAC number of the computers and assigns the same
IP to the same computer.
Otherwise, if you need the same IP configure the computer with a static IP
that is out of the range of the DHCP Server.
Jack (MS, MVP-Networking)

"David" <David@discussions.microsoft.com> wrote in message
news:616314B3-DEC8-4295-A988-BEB6D81B1970@microsoft.com...
> Hi
>
> Sometimes I unplug the Ethernet cable momentarily, and plug it back in.
> After I do that, the IP address is not always renewed. Usually it's not a
> problem, unless I connected the PC back to a different network, and I must
> get a new IP.
> Question is - when does Windows renew its IP, and when doesn't it?
> Can I configure something to have it always renew it's IP after plugging
> the
> cable?
>
> Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-20-2008, 08:02 AM
David
 
Posts: n/a
Re: renewing the dynamic IP address
Thanks for all the replies, guys,
but I was looking for something else.

Using release/renew is what I do now, but want to avoid it. Many times I
(and others at the office) forget it, and end up using a wrong IP on a
different network (may cause collisions some times).
By "renewing the IP" I mean - sending a DHCP-REQUEST to the DHCP server, and
either keep its IP if it gets an ACK, or start a DHCP-DISCOVER session to
obtain a new one if it gets a NACK.
Of course, if the PC stayed on the same network, the DHCP server will reply
with an ACK to the PC's request, so it will maintain the same IP; but if we
change to another network, we will get a NACK and start a DHCP-DISCOVER
session to receive a new IP.
You can see if the IP was renewed by the obtain time in "ipconfig /all", and
I even used Wireshark sniffer - and I see that sometimes the PC sends a
DHCP-REQUEST after plugging the cable back in, and sometimes not.

Appreciate your help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:39 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74