Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a wireless NIC on my work labtop and I forget the command prompt command to enable DHCP on my nic.

Try typing the following at the command prompt:
netsh interface ip set address "local area connection" dhcp
you can cut and paste, the syntax is correct, assuming you did not rename the connection in the network applet in control panel.
If you want to set it to a static IP, you would use:
netsh interface ip set address "local area connection" static xxx.xxx.xxx.xxx 255.255.255.0 yyy.yyy.yyy.yyy 1
where the X's are the IP, and the Y's are the default gateway (and make sure you add the "1" at the end to indicate the one metric hop to the gateway, it will NOT work without it!)
HTH
-Dave C

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |