This guide is to show you how to configure networking on a nano server. This can be done in a few ways. In this guide I will show you how to Set a static IP address via the Recovery Console and also via PowerShell Direct.
Set IP address via Recovery Console
User Hyper-V to connect to your Nano Server.
Sign into the Recovery Console.
Use the arrow keys to select Networking and press Enter.
Use arrow keys to select an adapter. (I only have one) and press enter.
I have DHCP active in my lab, so I have an IP address already. But if you want to change it to a static IP address press F11.
Press F4 to toggle using DHCP server.
Type in the IP Address, Subnet Mask, and Gateway you want to use and then press Enter to save.
Now our Nano server has an IP address that is manually configured, we can start to manage it and even join it to a Domain.
Change Network Via PowerShell Direct.
Open PowerShell with elevated admin rights.
Enter the below cmdlet.
1 |
Enter-PSSession –VMName "PIXEL-NANO01" -Credential Administrator |
Enter the Administrator Password for your Nano Server.
Now you have a PowerShell Direct connection to your Nano VM without using the network.
Type the below cmdlet to show current IP settings and note down the InterfaceIndex number of the adapter you want to change.
1 |
Get-NetIPConfiguration |
1 |
New-NetIPAddress -InterfaceIndex 3 -IPAddress 192.168.2.17 -PrefixLength 24 -DefaultGateway 192.168.2.1 |
Now we have an IP Address, Subnet Mask and Default Gateway set, we need to add DNS (if you are going to join it to a domain)
To set the DNS Server address use the below cmdlet.
1 |
Set-DnsClientServerAddress -InterfaceIndex 3 -ServerAddresses 192.168.2.201 |
To check everything is setup use the following cmdlet
1 |
Get-NetIPConfiguration |
You should now be able to manage your Nano Server using remote management tools.
[AdSense-A]
1 Comment
Join Nano Server to a Domain – Pixel Robots. · October 12, 2016 at 6:49 am
[…] In this article, I am going to show you how to Join your Nano Server to the domain. We can only join your Nano Server to the domain once it has an IP address and DNS set up. You can view how to do that here. […]