netsh and dhcp

  • Thread starter Thread starter Laura Hradowy
  • Start date Start date
L

Laura Hradowy

How to you write the netsh command to change from static
ip to dhcp and visa versa.

It has changed from windows 2000, and I am getting errors
now.
 
Hi Laura,

The syntax is:

to set to DHCP:
netsh interface ip set address name="Local Area Connection" source=dhcp

to set to static:
netsh interface ip set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1


Thanks,
Marc Reynolds
Microsoft Technical Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top