Juz said:
The problem with XP's "Alternate Config" setup is that it relies on DHCP
*not* being available for the alternate fixed ip to kick in.
I work from two sites, DHCP is available at both, but at my primary site I
need to use a fixed address that allows me access to certain servers behind
our firewall.
If i try and use XP's "alternate config". my laptop just finds DHCP in both
places, and uses it.
What we really need is the ability to either quickly switch between 2
alternate network configs, or the ability to assign an IP config to a user.
I wouldn't mind having to log in as a different user at each of my sites, if
the network setup would allow unique settings for each.
Use the "netsh" command to specify the IP configuration. You can type
it a command prompt or include it in a .bat file.
To specify a fixed address:
netsh interface ip set address <connection> static <ip> <mask>
<gateway> <gateway metric>
For example:
netsh interface ip set address "Local Area Connection" static
192.168.0.100 255.255.255.0 192.168.0.254 10
netsh interface ip set address "Wireless Network Connection" static
10.20.30.100 255.0.0.0 10.0.0.1 20
To specify a DHCP address:
netsh interface ip set address <connection> dhcp
For example:
netsh interface ip set address "Local Area Connection" dhcp
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)
Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.
Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com