Re: What does XP do with lease for shutdown/restart?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Peabody wrote:

In article <070m74xuen.ln2@xxxxxxxxxxxxxxxxxxxx>,
baloo@xxxxxxxxx says...

>> It's clear that either the computer or the router is
>> saving the old lease info through a power-down, and
>> then they just set up the same lease when powered up.

> Right. DHCP clients are supposed to explicitly send the
> DHCP server a DHCP RELEASE when it's not going to use
> the lease any more. No version of Windows does this,
> even if you explicitly release in ipcfg, ipconfig,
> "repair network connection," or disabling the network
> interface. Because Windows does not do this, as far as
> the DHCP server is concerned, Windows doesn't release
> the lease.

>> What I want them to do is start over with a new lease
>> when powered up, which is what always happened with a
>> direct connection to Cox without the router.

> DHCP doesn't work that way. DHCP servers will always
> give you the IP of your last lease, even if it's expired
> or you have released it (though the latter is not
> possible in Windows). DHCP servers identify your
> computer by MAC address, if you want DHCP to give you a
> different IP, you need to either specifically configure
> the DHCP server to give you the specific IP assignment
> you want. If you can't/won't/don't have access to do
> that need to change network cards entirely.

Well, it's not the assigned IP address that's the problem,
it's the lease term that I want to start over. And that's
only because for some reason it isn't renewing mid-term, and
my internet conection gets shut down when it finally
expires. If it would start a new lease term on reboot, as a
practical matter it wouldn't be a problem because I shut
down overnight.

And by the way, I tried doing "ipconfig /release" and
rebooting, and it DID start the term over on reboot. Maybe
my router's DHCP server is just goofy enough to recognize
what happening.

Well, you can renew a DHCP lease anytime and the DHCP server handles it in
stride. It kicks the expire time back out like it's a new lease, you just
get the same IP. I wonder why yours isn't renewing automatically midtime.

Or, maybe the problem all along was that it
was the computer, not the router, that was remembering the
original term and asking for it to be reinstated.

I'm not sure what you're getting at here.

So it appears I do need to figure out how to establish a
shutdown script or batch file, both for MCE and Home.

I'm a little confused why you're trying to overengineer what should be an
automatic process. It might help me to know what the end result you're
shooting for (not what steps you want to take to get there)?

>> If I fix the connections to specific local IP numbers,
>> so that DHCP is no longer involved, do leases just go
>> away?

> No. You should never, ever statically assign yourself
> when you're using a DHCP assigned network. Sooner or
> later, this *will* cause an IP conflict, and you will be
> the cause.

It's only the LAN side that would have fixed IPs. I don't
see how that would cause a conflict. Each computer has its
MAC, and would be assigned IPs accordingly at the router.
On the WAN side the router would continue to use DHCP with
the ISP.

Right, but the router could assign the IP that you're using on your LAN to
another computer, resulting in an IP conflict on your LAN. If you want to
set things up manually, I suggest doing this in the router with static DHCP
assignments. If you want to change the client's configuration by hand
instead of working through DHCP, you should disable the DHCP server on the
router first or it can cause problems for you.

.



Relevant Pages

  • Re: DHCP lease and dhclient.eth0.leases.
    ... It has two entries. ... gets me a new lease. ... Netgear router was failing to properly negotiate a new lease on its own ... a router or a real DHCP server on you LAN? ...
    (Debian-User)
  • Re: Scavenging question...
    ... You have more than one DHCP server updating DNS ... You have a very short DHCP lease time ... Dynamically update DNS A and PTR records for DHCP clients that do not ...
    (microsoft.public.windows.server.dns)
  • Re: Router or switch? Please advise
    ... Their response to why they frown on routers is that some people misconfigure them and broadcast their own DHCP signal to the network at large. ... Only way I could see that happening is if you plugged the school port into the LAN outlet on my router rather than the WAN. ... I doubt the college would give access to servers in their network from the dorm rooms or anything; without full control over the dorm room computers to ensure antivirus, etc. protection is installed they'd only be asking for big troubles. ... The only thing to watch for is if the IP address served up by the college DHCP is the same subnet as the DHCP server in your router. ...
    (microsoft.public.win2000.networking)
  • Re: Eth0 disconnects from router?
    ... If the DHCP server is built in to the router, ... that comes down to reconfiguring your router. ... You want a fairly long lease time. ...
    (Debian-User)
  • Re: Ethernet MAC address?
    ... various reasons, yet those devices assuredly had connectivity. ... This would not be a big problem if the lease time (how long a DHCP assigned ... you boot your Macand the router gives it an IP ... So your Mac could show an assigned IP address, but the DHCP server would ...
    (comp.sys.mac.portables)