Search This Blog

Windows XP: Change IP Address With DOS netsh Command Line

I often need to change my laptop IP Address. While at office, I use DHCP, and set IP static while I at site to do Telecom Eqipment commissioning. I usually use DOS command line to change IP address with netsh command. View example bellow.

My Ethernet name "Local Area Connection"

Example command to set dhcp

Example command to set static IP Address:192.168.1.2,  mask: 255.255.255.0, default gateway: 192.168.1.1, default gateway metric:1
Save command in notepad, save as in .bat format. Example: setting_ip_static.bat
I put batch file at my desktop. Now I only need to double click those batch file to change my IP Address.

share and comment


Related Posts :