Setting IP Address at Command-line
Windows XP/2003 and above contain commands which allow configuration of the machine's IP address at the command-line.
To set the IP address:
netsh interface ip set address local static <IP address> <subnet mask> <gateway> <metric of gateway>
netsh interface ip set address local static 192.168.0.100 255.255.255.0 192.168.0.1 1
To set DNS:
netsh interface ip set dns local static 192.168.0.150 primary
netsh interface ip set address local source=dhcp
netsh interface ip set dns local source=dhcp
Copyright © 1996-2019 Cadzow TECH Pty. Ltd. All rights reserved.
Question/comment about this page? Please email firstname.lastname@example.org