From the course: Windows Server 2019: Advanced Networking Features

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Change IPs using netsh and PowerShell

Change IPs using netsh and PowerShell - Windows Server Tutorial

From the course: Windows Server 2019: Advanced Networking Features

Start my 1-month free trial

Change IPs using netsh and PowerShell

- [Instructor] We're going to use the Netsh command to change our IP address and we're also going to show the equivalent in using PowerShell. So you can decide which one is more efficient for you when you need to change an IP address using command line. Just as we did in a previous video, we're going to connect to a hyper view virtual machine locally. That means the graphics are going to change a little bit so we can type these commands without getting disconnected. We'll type in netsh followed by interface, then ip set because we're going to set the IP address and type in address and then the name of our Ethernet connection, which you can get from the Network and Sharing Center, and type static and the IP address that we would like to change it to, followed by the subnet mask and then the gateway. Now to test this out, we can type in ipconfig and just make sure that it all looks correct and there it is. We also need a DNS IP address, so let's type a similar command so we can resolve…

Contents