Tags

, , ,

Show existing interface configuration:

netsh interface ip show config

Set IP address, subnet mask, gateway and DNS:

netsh interface ip set address name=”Local Area Connection” static 192.168.0.100 255.255.255.0 192.168.0.1 1
netsh interface ip set dns “Local Area Connection” static 192.168.0.200

Enable DHCP on interface:

netsh interface ip set address “Local Area Connection” dhcp

Export IP settings to text file:

netsh -c interface dump > location.txt