Changing IP with command Prompt
Is there any way we can change the ip address, subnet mask, default
gateway and the dns numbers can be changed from command prompt
in widows?
Is there any way we can change the ip address, subnet mask, default
gateway and the dns numbers can be changed from command prompt
in widows?
We can change Ip address using command line “netsh” is the command for that. Find the usage in below command. We used following details in example
IP address : 192.168.1.50
Subnet Mask : 255.255.255.0
Default Gateway : 192.168.1.1
Lan name : Local Area Connection
DNS Server : 192.168.1.2
Commands as follows
netsh interface ip set address name=”Local Area Connection” static 192.168.1.50 255.255.255.0 192.168.1.1
netsh interface ip set dns “Local Area Connection” static 192.168.1.2
Was this answer helpful?
LikeDislike