Set IP address from CMD Prompt

How do you set the IP address by using the command prompt?

Questions by dreamcast

Showing Answers 1 - 0 of 0 Answers

lila123

  • May 28th, 2010
 

Set IP address from CMD prompt :
type cmd in run
type following command in sequence like IP address,Subnet mask, Default Getway, DNS,Wins, ect...

exmpl :  netsh interface ip set address name="Local Area Connection" static 192.168.1.2 255.255.255.0 192.168.1.1


here is the 192.168.1.2 is IP
255.255.255.0 is subnet mask and
192.168.1.1 is default getway

By Amit J.

There are Two ways to Set the IP address from CMD Prompt

1. Go to start, select run, type CMD, and in CMD Prompt type the command 

 C:>netsh interface ip set address name="Local Area Connection" source=dhcp

2.Go to start, select run, type CMD, and in CMD Prompt type the command 

C:>netsh interface ip set address local static 192.168.20.100 255.255.255.0 192.168.20.1 1

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions