Automatic IP renew problem
Windows Vista Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


12»»

Automatic IP renew problemExpand / Collapse
Author
Message
Posted 2/8/2008 7:16:02 AM
 

Group: Forum Members
Last Login: 2/18/2008 12:57:17 PM
Posts: 7, Visits: 9
Hi,

I use a laptop at the office and at home. My problem is that Vista won't update its network settings automatically when I change from one network to another.

Per example, my office network has 192.168.0.0/255.255.255.0 addresses and my home network has 192.168.1.0/255.255.255.0 addresses. When I arrive at home and the computer connects to the network, it keeps its 192.168.0.0/255.255.255.0 address, which of course results in limited connectivity.

I have to use the Repair tool each time to get the connection back (and it means waiting for a looooong minute in front of the computer...)

Thanks,

Alex


__
Alex
Post #14277
Posted 2/8/2008 7:47:43 AM


Lead Forum Moderator

Lead Forum Moderator

Group: Vista Forum Moderator
Last Login: Today @ 4:34:23 PM
Posts: 2,172, Visits: 2,120
Instead of doing that, use a command window (with elevated rights) to run the following:

ipconfig /release

ipconfig /renew

That should force your DHCP server (wherever it happens to be at the time) to assign you a new IP address.


ASUS A832nSLI-Deluxe, AMD 64X2 4400 OC 2.4GHz, 3GB OCZ,
Running: Windows 7, Vista 32-bit, Ubuntu 8.10, Ubuntu 8.04 LTS

Post #14284
Posted 2/8/2008 5:41:46 PM
 

Group: Forum Members
Last Login: 2/18/2008 12:57:17 PM
Posts: 7, Visits: 9
Hi,

Thank you for the trick, it would be much faster than "repairing" the network connection... I didn't think of that.

However, I wonder why Windows doesn't do this automatically as the networks doesn't even have the same name... It seems obvious that it should try to get an IP from the current router.

Any idea?

Thanks,


__
Alex
Post #14315
Posted 2/9/2008 10:48:52 AM


Administrator

Administrator

Group: Administrators
Last Login: 11/11/2008 9:24:04 PM
Posts: 2,103, Visits: 2,251
You can try turning off IPv6 I have seen it cause DHCP problems.

AMD64 X2 5200+ 2.60GHz | 3GB DDR 667 | RAID 0 SATA3.0 WD Caviars 320GB total | Foxconn MCP61VM2MA-RS2H Geforce 6100 nforce400 chipset | Vista Ultimate x86
Post #14327
Posted 2/9/2008 9:40:17 PM


Lead Forum Moderator

Lead Forum Moderator

Group: Vista Forum Moderator
Last Login: Today @ 4:34:23 PM
Posts: 2,172, Visits: 2,120
When you run IPCONFIG /all you will see, among other things, the duration of your DHCP-assigned IP address "lease".

My guess is that, until that lease expires, or the machine is rebooted, Vista will not attempt to get a new IP address. Thus, because your old address is a different subnet than your new network, you won't get an IP address and because the lease has not yet "expired", Vista makes no attempt to get a new IP address.

When you do the IPCONFIG /release, you're terminating the lease; thus, when you do the IPCONFIG /renew, you're requesting a new lease and you get a new IP address with it.


ASUS A832nSLI-Deluxe, AMD 64X2 4400 OC 2.4GHz, 3GB OCZ,
Running: Windows 7, Vista 32-bit, Ubuntu 8.10, Ubuntu 8.04 LTS

Post #14359
Posted 2/11/2008 9:34:53 PM
 

Group: Forum Members
Last Login: 2/18/2008 12:57:17 PM
Posts: 7, Visits: 9
Hi,

I will try turning IPv6 off, I'll keep you posted.

As for the lease time, I'm pretty sure that reducing the lease duration could be a pretty workaround, but it seems abnormal to me that Windows wouldn't request a new IP address even when it connects to a new network. It wouldn't assume that it's IP from the previous network would still be valid, would it?

Thanks


__
Alex
Post #14423
Posted 2/11/2008 11:12:52 PM


Administrator

Administrator

Group: Administrators
Last Login: 11/11/2008 9:24:04 PM
Posts: 2,103, Visits: 2,251
I forgot to ask is this a wireless connection? A wired connection should be able to tell when its plugged in and not so it will go out and get an IP everytime.

AMD64 X2 5200+ 2.60GHz | 3GB DDR 667 | RAID 0 SATA3.0 WD Caviars 320GB total | Foxconn MCP61VM2MA-RS2H Geforce 6100 nforce400 chipset | Vista Ultimate x86
Post #14427
Posted 2/11/2008 11:15:46 PM


Administrator

Administrator

Group: Administrators
Last Login: 11/11/2008 9:24:04 PM
Posts: 2,103, Visits: 2,251
alexbilo (2/11/2008)
Hi,

I will try turning IPv6 off, I'll keep you posted.

As for the lease time, I'm pretty sure that reducing the lease duration could be a pretty workaround, but it seems abnormal to me that Windows wouldn't request a new IP address even when it connects to a new network. It wouldn't assume that it's IP from the previous network would still be valid, would it?

Thanks


No, it's not normal what is happening. It is suppose to get a new IP every new connection since the subnet or leasable IP range can change in my experience. Windows is smarter than that. For whatever reason it's holding that IP. I faintly remember having a problem like this but if I did the correct "Disconnect" then "Connect To" in the wireless controls it would properly released/renew on its own.(that was a wireless problem though)


AMD64 X2 5200+ 2.60GHz | 3GB DDR 667 | RAID 0 SATA3.0 WD Caviars 320GB total | Foxconn MCP61VM2MA-RS2H Geforce 6100 nforce400 chipset | Vista Ultimate x86
Post #14428
Posted 2/12/2008 9:28:35 AM
 

Group: Forum Members
Last Login: 2/18/2008 12:57:17 PM
Posts: 7, Visits: 9
Disabling IPv6 didn't do it...

I talk about a wireless connection, but I experiment the same problem with the wired connection.

If I was connected to my home's wireless connection and I connect to the wired connection at the office, I have to renew the IP manually all the same.

Thanks,


__
Alex
Post #14443