Cadzow Knowledgebase

Normal view

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.

Static Address

To set the IP address:

netsh interface ip set address local static <IP address> <subnet mask> <gateway> <metric of gateway>

For example:

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

Dynamic Address

netsh interface ip set address local source=dhcp

netsh interface ip set dns local source=dhcp

See Also


Copyright © 1996-2019 Cadzow TECH Pty. Ltd. All rights reserved.
Information and prices contained in this website may change without notice. Terms of use.

Question/comment about this page? Please email webguru@cadzow.com.au