Vous êtes sur la page 1sur 10

Change IP address and DNS servers using the Command Prompt

Page 1 of 10

Help Desk Geek | Online Tech Tips | Switching To Mac | The Backroom Tech

Help Desk Geek Help Desk Tips For IT Pros


Help Desk Geek is a blog for Discussions about help desk tips and how-to computer tips EmailYouTubeTwitterFacebookRSS Help DeskLinuxOffice TipsTools ReviewWindows 7Windows XpHow To HOME ARCHIVES FEATURED POSTS REVIEWS
Search

Change IP address and DNS servers using the Command Prompt


August 7th, 2008 by Aseem | File in: Networking

Changing TCP/IP settings using the GUI property is very easy and simple. But what about if you want to have more fun doing it, and change the IP and DNS properties using the windows command prompt? If you are a Linux guru or a batch scripting wizard this should not be complicated, if you are new to the command prompt, well, today is a good day to start. We will change the IP address and DNS servers using the built-in utility in Windows called Netsh is a nifty utility to change system networking settings, locally or remotely. To run Netsh click on start then RUN and type CMD press ENTER.

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 2 of 10

When the command prompt comes up type Netsh, now you should be ready to execute commands. Simple huh. Just to warm up type interface ip show config that will show up the TCP/IP network settings. Now, how you change the IP address and Default Gateway settings? To change the Local Area Connection TCP/IP settings type the following command: interface ip set address name=Local Area Connection static 192.168.10.42 255.255.255.0 192.168.1.1

As you can see, when you use Netsh you need to specify what network properties you need to change, in the example above, we changed the network properties for Local Area Connection then we setup a static IP address, Subnet Mask and at the end the default gateway. Changing the DNS IP address is almost identical as the procedure above, type the following command on the Netsh prompt: interface ip set dns Local Area Connection static 192.168.1.1 To Setup WINS, type the following command: interface ip set wins Local Area Connection static 192.168.1.1 To set the network properties to obtain the IP address from a DHCP server, type the following command: interface ip set address Local Area Connection dhcp To set DNS to obtain IP address automatically type the following: netsh interface ip set dns Local Area Connection dhcp There you have it, a useful tool to help you on your network configuration. 8 There are 8 comments, care to add yours?
2

16
Like

0
tweets

tweet

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 3 of 10

IP addressing made easy www.crypton.co.uk Manage IPv4 & IPv6 Subnets - Keep track of your IP addresses DNS, DHCP, IPAM troubles www.menandmice.com/consulting World leaders in remote and on-site DDI consulting and audit services. DNS Tree DNSTree.com See the delegation of you domain all the way from the root-servers DNS, DHCP & IPAM Software www.nixusoftware.com Leading Software Appliance Vendor. Free Online Demo & Evaluation!

More posts from the Networking Category

Network Two Computers Running Windows XP How To Check the Proxy Server Settings on your Computer

Error Loading Windows and Finding Hard Disks on Dell PowerEdge Internet Connection Problem Part VI | Default Gateway

Popular Posts This Month

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 4 of 10

Use Google Web Fonts in the Google Docs Word Processor

Cursor Jumps Around While Typing in Windows 7?

Fix Could Not Find This Item When Deleting in Windows 7

Merge Two Partitions in Windows 7


SIGN UP FOR THE DAILY EMAIL NEWSLETTER Enter your email and hit enter Submit Query

FEATURED POSTS

Share Windows XP or 7 Printer with Mac

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 5 of 10

Top 10 Differences between Windows 7 and Windows 8

Should You Defrag an SSD?

Change the Windows 7 Login Screen Background Image

RECENT POSTS

Remove a Printer Driver from Windows 7

Force Windows 7 to Use Wired Connection over Wireless

How to Trace Dependents in Excel 2010

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 6 of 10

Windows 7 Screensaver and Power Options Not Working?

MOST COMMENTED

Fix Windows was unable to find a certificate to log you on to the network

Share a Printer from XP to Windows 7

99 Ways to Make Your Computer Blazingly Fast

Windows 7 File Search Indexing Options

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 7 of 10

8 Responses to Change IP address and DNS servers using the Command Prompt
1. nancyrmathews says: December 28, 2009 at 7:37 am I have an IP address conflict and your tips did not end up working. Any other ideas? Reply 2. Sarah says: September 17, 2010 at 12:15 am Thanks a lot! That was very useful. It works when I have "IP conflict" error message, right? Thank you. Reply 3. kay says: February 23, 2011 at 1:25 am How do I identify whether the IP and DNS are static or obtained automatically using cmd? Reply 4. Cody says: May 26, 2011 at 1:23 am I get access is denied at school. Reply 5. Andrew says: September 11, 2011 at 6:14 pm Very helpful article. netsh is a useful tool which solved my IP address conflict problem. Reply 6. Raj says:

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 8 of 10

October 27, 2011 at 11:08 pm thanks ! this was quite simple and it works!! Reply 7. Ryan says: November 13, 2011 at 7:47 pm Here is an article that does basically the same thing, except it shows you how to do it remotely using psexec. itswapshop.com/content/how-set-or-change-ip-addresses-gateways-subnet-masks-and-dnsservers-remotely-windows Reply 8. Asif says: March 30, 2012 at 2:11 am This is really working! Very helpful article for all network support engineers! Reply

Leave a Reply
Name (required): Mail (will not be published) (required): Website:

Comment (required):
SUBMIT

Authors

ASEEM KISHORE Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time.

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 9 of 10

LORI KAUFMAN A technical writer and geek who loves to write tutorials and help people make their lives easier using technology. ERIC FLEMING Eric Fleming is a freelance writer who focuses on Linux and other free software. He began using Ubuntu in 2006, and has been writing technology articles since 2007.

SIGN UP FOR DAILY EMAIL NEWSLETTER

Enter your email and hit enter Subscribe


CONNECT WITH US

RSSFacebookTwitterYouTubeEmail
ABOUT HELP DESK GEEK

Welcome to Help Desk Geek- a blog full of help desk tips for IT Professionals. My name is Aseem Kishore and I work as a Systems Analyst in Dallas, TX. I graduated from Emory University in Atlanta, GA in 2002 with a degree in Computer Science and Mathematics. Read More
RECENT POST FROM ONLINE TECH TIPS

How to Copy/Transfer Files to iPad Use Facebook Messenger on Windows Checklist for Selling Computers, Hard Drives, Smartphones and Tablets Recommendations for Dealing with Cable Companies and Cell Phone Providers Use Timed Links for Secure Online Messaging

RECENT POST FROM SWITCHING TO MAC

Configuring Siri Settings Top Free Antivirus Software for Mac Test Your Hard Drive Speeds RAM Upgrade Instructions for Your Mac iPhone 4S Taking Pictures Upside Down?

RECENT POST FROM THE BACKROOM TECH

Resend Email in Outlook 2003, 2007, 2010 Repair Windows Installer Errors Fix Please Insert a Disk into Drive in Windows Change Default Log Off Button in Windows 7 Start Menu Fix The Windows Logon Process has Unexpectedly Terminated

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012

Change IP address and DNS servers using the Command Prompt

Page 10 of 10

Help Desk Geek | Online Tech Tips | Switching To Mac | The Backroom Tech HomeAboutContactArchiveFeatured PostReviews

http://helpdeskgeek.com/networking/change-ip-address-and-dns-servers-using-the-comman...

6/6/2012