Tips of How to Switch between DHCP and Static IP Network Automatically in Windows

If you are a mobile computer user and need to work in DHCP and static IP network environment from time to time, you may need to keep on changing the network TCP/IP properties on your laptop. It is really annoying and irritating to repeat this routine task each and every time when switching from one network to another especially when you are in the hurry to solve an urgent issue or need to get the task completed as sooner as possible. Now with this Alternate Configuration functionality offered by Microsoft, it will auto detect the network change and switch for you automatically without the hassle to manually configure it anymore.

The feature of Alternate Configuration is it enable TCP/IP uses alternative configuration if no DHCP server is detected. With such a design, your laptop will be auto switched from dynamic to static IP setting automatically. To enable Alternate Configuration, follow below steps:

i) Click Start menu -> Control Panel.
ii) Click Network Connections.
iii) Right click Local Area Connection and select Properties.
iv) Under General tab, scroll down until you see Internet Protocol (TCP/IP). Click on it and click Properties button.
v) Under General tab, select Obtain an IP address automatically. This setting is to obtain dynamic IP address if DHCP server is found in the network.
vi) Go to Alternate Configuration tab, select User configured. Enter the static IP of your alternate location. This setting is to allow TCP/IP uses static IP once DHCP server is not found.

After getting above steps done, if you work in office with DHCP server enabled, your laptop will use primary configuration to obtain dynamic IP automatically. Once your laptop switch to static IP network environement such as at home or production, your laptop will be auto switched to alternate configuration with the static IP you have configured.

6 Responses to “Tips of How to Switch between DHCP and Static IP Network Automatically in Windows”

  1. Andrew Virender
    October 19th, 2009 03:12
    6

    Very useful information. If I may add, using dynamic IP can allow you to frequently change your IP address and thus give some security and privacy protection.

    However, even better solution would be to use an IP Changer software in combination with surfing through multiple proxy servers. This routes your internet connection through these servers and thus rapidly and frequently change your IP. It effectively hides your real IP and you can thus safely, anonymously and securely surf the internet. Of course there is no fool froof safety on the net but this goes a long way.

  2. alexander
    February 10th, 2009 17:41
    5

    as you all know m$ got many ways to do one thing. this is one way m$ to do this
    i’ve got 2 (3,4,5, many) network configurations
    /home,work, at my brother, etc./
    i create 2 files for every net
    first file is batch file /for exxample home.bat
    second file is netsh config in clear text /home-static.txt
    batch file is calling nets with text file for config

    iii.iii.iii.iii – this is ip address
    mmm.mmm.mmm.mmm – this is netmask
    ggg.ggg.ggg.ggg – this is ip of gateway
    yyy.yyy.yyy.yyy – this is primary dns
    xxx.xxx.xxx.xxx – this is secondary dns

    and something else THIS IS for network connection called “Local Area Connection”
    if you renamed this net just replace name here too !!!
    working ok for me in windows xp /sp1,sp2,sp3/

    file home.bat
    -=-=-=
    netsh -f “home-static.txt”
    -=-=-=
    file home-static.txt
    -=-=-=
    #========================
    # Interface configuration
    #========================
    pushd interface
    reset all
    popd
    # End of interface configuration
    #========================
    # Interface configuration
    #========================
    pushd interface ipv6
    uninstall
    popd
    # End of interface configuration
    # ———————————-
    # ISATAP Configuration
    # ———————————-
    pushd interface ipv6 isatap
    popd
    # End of ISATAP configuration
    # ———————————-
    # 6to4 Configuration
    # ———————————-
    pushd interface ipv6 6to4
    reset
    popd
    # End of 6to4 configuration
    #========================
    # Port Proxy configuration
    #========================
    pushd interface portproxy
    reset
    popd
    # End of Port Proxy configuration
    # ———————————-
    # Interface IP Configuration
    # ———————————-
    pushd interface ip
    # Interface IP Configuration for “Local Area Connection”
    set address name=”Local Area Connection” source=static addr=iii.iii.iii.iii mask=mmm.mmm.mmm.mmm
    set address name=”Local Area Connection” gateway=ggg.ggg.ggg.ggg gwmetric=0
    set dns name=”Local Area Connection” source=static addr=yyy.yyy.yyy.yyy register=PRIMARY
    add dns name=”Local Area Connection” addr=xxx.xxx.xxx.xxx index=2
    set wins name=”Local Area Connection” source=static addr=none
    popd
    # End of interface IP configuration
    -=-=-=-=-=-=-=-=-=-=-=-

  3. michael
    January 18th, 2009 06:16
    4

    yah, too bad it doesnt work.

    I set it up like this…
    Router > dhcp off.

    computer > primary automatic ip
    > alternate 192.168.1.102
    subnet normal
    gateway 192.168.1.1
    dns my router’s dns

    I get an error ip

  4. Ryan
    November 14th, 2008 01:25
    3

    AHA! just found the reason! you need to be on DHCP already!

    thanks again!

  5. Ryan
    November 14th, 2008 01:24
    2

    thanks for that, its a great help! Although the person im trying to do this for doesnt have the alternate configuration box.. any ideas? They are connected to a server but I wouldnt think that this would block access to this feature since he can change his IP etc.

  6. camilo
    November 8th, 2008 10:46
    1

    hey gracias me ayudo mucho. muy buena tu explicacion, te deceo suerte y gracias de nuevo…

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

switch static ip - how to change dhcp to static ip - WINDOWS XP automatically switch over to DHCP - switching to DHCP from fixed IP - auto switch static ip - auto switch to static at home - router dhcp or switch - static ip windows mobile 6.5 - switch and static ip - windows xp Automatically Switch Between Static And DHCP Network - WM 6.5 static IP - static ip address for a switch - static ip solaris 10 - using dynamic Ip even when static is alternate configuration - vista static IP to DHCP - enable upnp network windows xp - How to switch IP - how to change static to dhcp - how to give static ip for AT-gs950/24 switch - solaris10 static ip howto set - Step to turn off DHCP on switch - switch between fixed IP and DHCP - how to change from Static IP to DHCP - how to set static ip on swich - static ip address switch - switch dhcp - switching off dhcp server - use dynamic ip on switch - auto swithc between static and dhcp - change from dhcp to static ip - dhcp overwrite static ip - fix network configurations to acces ip automatically windows 7 - how to switch to static ip - how to give static ip in Solaris 10 - how to switch between Static IP and automatic IP configuration - ip "dhcp server" batch - lan static ip switch - set static dns address windows mobile 6.5 - static or dhcp ip for home network - static dhcp switcher - switiching laptop between dhcp and static - switching static dynamic ip configuration - switch to static or normal ip -