Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

How can I force Vista to get new IP on wireless network change

microsoft.public.windows.vista.networking sharing






Speedup My PC
Reply
  #1 (permalink)  
Old 10-10-2007
Julian
 

Posts: n/a
How can I force Vista to get new IP on wireless network change
[Rock Xtreme laptop with Vista HP] My wifi connection is set to use DHCP if
available but has a (manual) alternate fixed address set up (which I assumes
was to be used when DHCP is not available)

When I go to my regular cafe, it connects correctly obtaining an IP address
from their Netgear router... when I come home Vista reconnects to my home
network(also a Netgear router) but since this router does not use DHCP it
SHOULD go back to the alternate address... but it doesn't, and I usually get
an IP address conflict warning (as the cafe seems to give me the IP
192.168.1.x address that is my home router's address)

Is this a general Vista problem - that on network change IP addresses are
not renewed - or is there some setting I have overlooked that will force it
to get a new address? (without using IPCONFIG /renew... why should I have to
do all that!)

Thanks!

PS IPv6 is turned OFF on all network connections
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-11-2007
Robert L \(MS-MVP\)
 

Posts: n/a
Re: How can I force Vista to get new IP on wireless network change
Post the result of ipconfig /all here when connecting to home network. Also
if you use static at home, ipconfig /renew doesn't work. Check this post to
make sure you setup it correctly.

How to: assign multiple static IPs ...You have two ways to assign multiple
IP addresses on Vista. ... you enable DHCP and select Alternative
Configuration. then add static IP address. ...
http://www.chicagotech.net/netforums...opic.php?t=496


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com


"Julian" <Julian@discussions.microsoft.com> wrote in message
news:3706AB11-6135-4E25-ADEA-8A75E92EAF4A@microsoft.com...
> [Rock Xtreme laptop with Vista HP] My wifi connection is set to use DHCP
> if
> available but has a (manual) alternate fixed address set up (which I
> assumes
> was to be used when DHCP is not available)
>
> When I go to my regular cafe, it connects correctly obtaining an IP
> address
> from their Netgear router... when I come home Vista reconnects to my home
> network(also a Netgear router) but since this router does not use DHCP it
> SHOULD go back to the alternate address... but it doesn't, and I usually
> get
> an IP address conflict warning (as the cafe seems to give me the IP
> 192.168.1.x address that is my home router's address)
>
> Is this a general Vista problem - that on network change IP addresses are
> not renewed - or is there some setting I have overlooked that will force
> it
> to get a new address? (without using IPCONFIG /renew... why should I have
> to
> do all that!)
>
> Thanks!
>
> PS IPv6 is turned OFF on all network connections



Reply With Quote
  #3 (permalink)  
Old 10-11-2007
Julian
 

Posts: n/a
Re: How can I force Vista to get new IP on wireless network change
> Post the result of ipconfig /all here when connecting to home network.

Have taken a snapshot at home, will take one at the cafe later and again
when I come home again

> if you use static at home, ipconfig /renew doesn't work.


Ah! It means "renew" in the sense of GET a new DHCP IP! There's no trusting
technical terminology sometimes, I thought it would do that or reload IP
manual settings as appropriate. Thanks for letting me know.

[Comment becomes - "without 'repairing' or disabling/re-enabling the
adapter" <g>]

> Check this post to make sure you setup it correctly.
> http://www.chicagotech.net/netforums...opic.php?t=496


I think I'm set up OK but I checked it anyway, only to find that I don't
understand what it is saying: DHCP is enabled (TCP/IPv4...
Properties...General "Obtain an IP address automatically" checked; Advanced
tab shows DHCP enabled) but no option for adding further IP addresses (all
buttons greyed); Alternate Configuration is "User Configured". No idea how to
set multiple static addresses, but I don't need that at the moment.

BTW - the underlying Q is: when Vista switches networks why doesn't it get a
new IP address - or at the very least check the settings and IF there is a
"conflict" do the sensible thing? [If the adapter has an IP address on a
network without DHCP and that IP address is not the Alternate.... User
Configured setting then it is clearly wrong]

Thanks for the help so far...

Reply With Quote
  #4 (permalink)  
Old 10-13-2007
Joe Guidera
 

Posts: n/a
Re: How can I force Vista to get new IP on wireless network change
The alternate user address is only assigned after the DHCP request fails.
In other words, you can determine the "fail" address that is issued. Vista
does request a new address when the network connection changes (assuming you
have that network interface set to request via DHCP). Bear in mind if you
go to sleep while in a location that provides a DHCP issued address and then
"wake up" in another location, it can take a while (I've seen it take about
30 seconds or more) before Vista gives up on the old profile and tries
searching for a new one (and thus obtains a new address).

Not that it should be problematic, but is there any reason why you aren't
using DHCP at home as well?

Joe

"Julian" <Julian@discussions.microsoft.com> wrote in message
news:80B3028B-DCE7-418F-AF67-16E692F782AC@microsoft.com...
>> Post the result of ipconfig /all here when connecting to home network.

>
> Have taken a snapshot at home, will take one at the cafe later and again
> when I come home again
>
>> if you use static at home, ipconfig /renew doesn't work.

>
> Ah! It means "renew" in the sense of GET a new DHCP IP! There's no
> trusting
> technical terminology sometimes, I thought it would do that or reload IP
> manual settings as appropriate. Thanks for letting me know.
>
> [Comment becomes - "without 'repairing' or disabling/re-enabling the
> adapter" <g>]
>
>> Check this post to make sure you setup it correctly.
>> http://www.chicagotech.net/netforums...opic.php?t=496

>
> I think I'm set up OK but I checked it anyway, only to find that I don't
> understand what it is saying: DHCP is enabled (TCP/IPv4...
> Properties...General "Obtain an IP address automatically" checked;
> Advanced
> tab shows DHCP enabled) but no option for adding further IP addresses (all
> buttons greyed); Alternate Configuration is "User Configured". No idea how
> to
> set multiple static addresses, but I don't need that at the moment.
>
> BTW - the underlying Q is: when Vista switches networks why doesn't it get
> a
> new IP address - or at the very least check the settings and IF there is a
> "conflict" do the sensible thing? [If the adapter has an IP address on a
> network without DHCP and that IP address is not the Alternate.... User
> Configured setting then it is clearly wrong]
>
> Thanks for the help so far...
>

Reply With Quote
  #5 (permalink)  
Old 10-13-2007
Julian
 

Posts: n/a
Re: How can I force Vista to get new IP on wireless network change
OK - a bit later than planned but here are some IPCONFIG results (at the
bottom after the comments) - the key thing to note is that the IP address
appears as "(preferred)" when that is NOT the alternate setting established...

Thanks for the input folks...

> The alternate user address is only assigned after the DHCP request fails.
> In other words, you can determine the "fail" address that is issued. Vista
> does request a new address when the network connection changes (assuming you
> have that network interface set to request via DHCP). Bear in mind if you
> go to sleep while in a location that provides a DHCP issued address and then
> "wake up" in another location, it can take a while (I've seen it take about
> 30 seconds or more) before Vista gives up on the old profile and tries
> searching for a new one (and thus obtains a new address).


Which is basically my point: it *should* detect a network change and
invalidate the previous IP address immediately, but it doesn't - hence IP
conflicts. Yes, I knew that the alternate was the "fail" result, which is a
bit annoying in the first place - but there you go.

> Not that it should be problematic, but is there any reason why you aren't
> using DHCP at home as well?


Only that I wanted fixed IP addresses so that port forwarding on the LINUX
based router would be guaranteed to work... and there were several potential
DHCP servers and I could never find out how to configure a system so with
more than one DHCP server (one couldn't guarantee which devices would be on,
so it was never clear that there would be a DHCP server or how to work with
more than one, so it was easier just to give them all fixed IP addresses)

Here's the IP config data... (dummy MAC addresses... last thing I'm going to
do with a locked down system is publish the permitted MAC addresses!)

IP Config 11 Oct AM - Home Network

Windows IP Configuration

Host Name . . . . . . . . . . . . : MyHost
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 3945ABG Network
Connection
Physical Address. . . . . . . . . : AA-BB-CC-DD-EE-FF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.1.80(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8169/8110 Family PCI
Gigabit Ethernet NIC (NDIS 6.0)
Physical Address. . . . . . . . . : AA-BB-CC-DD-EE-FF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 10 October 2007 03:14:28
Lease Expires . . . . . . . . . . : 20 October 2007 09:37:11
Default Gateway . . . . . . . . . : 192.168.2.254
DHCP Server . . . . . . . . . . . : 192.168.2.254
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Cafe Network

Windows IP Configuration

Host Name . . . . . . . . . . . . : Berossus
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 3945ABG Network
Connection
Physical Address. . . . . . . . . : AA-BB-CC-DD-EE-FF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.1.12(Preferred) [NO IT ISN'T!]
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 11 October 2007 11:29:37
Lease Expires . . . . . . . . . . : 12 October 2007 11:29:37
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8169/8110 Family PCI
Gigabit Ethernet NIC (NDIS 6.0)
Physical Address. . . . . . . . . : AA-BB-CC-DD-EE-FF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes


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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vista -> xp wireless network =?Utf-8?B?TmF0aGFu?= microsoft.public.windows.vista.networking sharing 6 04-28-2010 11:32
Cannot connect Vista to Wireless Network =?Utf-8?B?VmlzdGFhYQ==?= microsoft.public.windows.vista.networking sharing 5 07-11-2009 22:15
vista and xp wireless network tired and emotional microsoft.public.windows.vista.networking sharing 14 07-20-2007 14:30
vista logs off of network each time you change a user? joe microsoft.public.windows.vista.general 0 05-03-2007 00:23
Vista - XP wireless network =?Utf-8?B?QnJpYW4gTGV3?= microsoft.public.windows.vista.general 2 02-28-2007 22:54




All times are GMT +1. The time now is 08:10.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120