I want to set the IP address, subnet and gateway using netsh. I have Windows XP on my computer.
When I type the command:
set address "Local Area Connection" static ipAdd sub gateway
I get this error:
Environment variable address “Local Area Connection” static ipAdd sub gateway not defined
When I type:
netsh interface ip set address "Local Area Connection" static ipAdd sub gateway
I get a different error:
the following command was not found.
The DNS and WINS details were successfully set, and I can set the IP settings by typing them by in the Internet Protocol Panel.
The right syntax for the setting ip address command via netsh is :
and setting the dns with the next line :
add secondary dns :
here’s a link!