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

Hydra: Notes

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

WinRAR command

Examples: Compress four folders f:\z1 f:\z2 f:\z3 f:\z4 to one file f:\z.rar. "c:\Program Files\WinRAR\Rar.exe" a f:\z.rar f:\z1 f:\z2 f:\z3 f:\z4 F:\>"c:\Program Files\WinRAR\Rar.exe" RAR 5.61 x64 Copyright (c) 1993-2018 Alexander Roshal 30 Sep 2018 Trial version Type 'rar -?' for help Usage: rar - - a Add files to archive c Add archive comment ch Change archive parameters cw Write archive comment to file d Delete files from archive e Extract files without archived paths f Freshen files in archive i[par]= Find string in archives k Lock archive l[t[a],b] List archive contents [technical[all], bare] m[f] Move to archive [files only] p Print file to stdout r Repair archive rc Reconstruct missing volumes rn Rename archived ...