Skip to main content

Use netsh command to set ip address

To display all of the adapters in the computer with their current IP addresses to determine the correct adapter name, type the following command:

netsh interface ip show config

To switch the specified adapter from a static address to DHCP, type the following command:

netsh interface ip set address "Local Area Connection" dhcp


To change to a static address, type the following command:

netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

Popular posts from this blog

nmap - The Network Mapper

WARNING : It is ILLEGAL to scan hosts without permission.

GitHub CLI

GitHub CLI brings GitHub to your terminal. Free and open source. Official website: https://cli.github.com

Microsoft Windows Server 2003 R2 Enterprise Edition VHD

Windows Server 2003 R2 Enterprise Edition with Service Pack 2 This download comes as a pre-configured VHD and helps you evaluate the new features of Windows Server 2003 R2, the most productive infrastructure platform for powering connected applications, networks, and Web services from the workgroup to the data center. https://www.microsoft.com/en-us/download/details.aspx?id=19727 Username: Administrator Password: Evaluation1