How to change IP address from command prompt?
Solved/Closed
nareen123
Posts
10
Registration date
Tuesday April 15, 2008
Status
Member
Last seen
May 29, 2009
-
Updated on Jan 19, 2019 at 12:32 AM
netguy2000 Posts 1 Registration date Wednesday November 28, 2012 Status Member Last seen November 28, 2012 - Nov 28, 2012 at 12:53 AM
netguy2000 Posts 1 Registration date Wednesday November 28, 2012 Status Member Last seen November 28, 2012 - Nov 28, 2012 at 12:53 AM
Related:
- Which two commands do you use to force a new ip configuration?
- Change ip cmd - Best answers
- Batch file to change ip address - Best answers
- Windows network commands - Guide
- Hitman 3 console commands - Guide
- Diskpart commands - Guide
- Cs 1.6 commands - Guide
- What is my ip on my phone - Guide
11 responses
Hi,
You can change the IP from the command prompt. Here are the commands:
This is assuming 3 things.
You will need to run both commands to change the IP.
Hope, it works!
You can change the IP from the command prompt. Here are the commands:
- To change IP and default gateway:
netsh int ip set address "local area connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1
- To change DNS:
netsh int ip set dns "local area connection" static 192.168.0.254 primary
This is assuming 3 things.
- 1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name
- 2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.
- 3) The default gateway and DNS are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all
You will need to run both commands to change the IP.
Hope, it works!
Jun 22, 2009 at 12:59 PM
Aug 1, 2009 at 03:19 AM
Mash