Switch easily between DHCP and Fixed IP on Notebook

R

RichardR

I use wireless at home and when travelling on my notebook. For some reason
AT&T insist on having fixed IP addresses at home and on the road it's all
dynamic of course. Surely there is an easy way to switch between the 2
profiles in Win XP without having to go and change the actual network setting
every time?
Thanks
 
R

Robert L. \(MS-MVP\)

You can setup TCP/IP using two DHCP and static or you can use net plus batch
to switch between dynamic and static IP. This how to may help.
ipconfig
3) If you get "DHCP server unreachable" while using ipconfig /renew,
you may want to update the network card drive or go to NIC configuration to
change the ...
www.howtonetworking.com/Networking/ipconfig.htm



--
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
 
S

Steve Winograd

I use wireless at home and when travelling on my notebook. For some reason
AT&T insist on having fixed IP addresses at home and on the road it's all
dynamic of course. Surely there is an easy way to switch between the 2
profiles in Win XP without having to go and change the actual network setting
every time?
Thanks

Create batch files that use the "netsh" command to change the network
settings. The command syntax is:

Fixed.bat:

netsh interface ip set address <connection> static <ip> <mask>
<gateway> <gateway metric>

DHCP.bat:

netsh interface ip set address <connection> dhcp

Examples of the commands with actual values substituted:

netsh interface ip set address "Wireless Network Connection" static
192.168.0.101 255.255.255.0 192.168.0.1 20

netsh interface ip set address "Wireless Network 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
 
R

RichardR

Robert,
OK thanks - I've looked at NETSH but have't tried it yet.
Re "How to setup two IPs on a computer" I don't see in win XP Pro
"Alternative Configuration under the Properties of TCP/IP" ??
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top