Lab Environment Preparation Contd
- Launch the VM with Hyper V installed.
- Create a new Virtual Network Adapter for the guest virtual machine and configure a NAT Gateway to enable internet connectivity
- Open Powershell as Administrator
- Create a New Internal Switch
New-VMSwitch -Name "InternalNAT" -SwitchType Internal
- View the Properties of the switch and note the ifindex
-
Create an IP Address for the NAT Gateway
New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 13
-
Create a NAT Network
New-NetNAT -Name "InternalNAT" -InternalIPInterfaceAddressPrefix 192.168.0.0/24
- Configure DHCP Server to Dynamically assign IP addresses to guest Virtual Machines
-
Add Roles and Features from Server Manager and Select DHCP Server and continue the steps to install DHCP Server
-
Create a New DHCP Scope
- Continue with rest of wizard using defaults.
- This finishes the network configuration for the Hyper-V Host.
- Now we need to create VMs inside this VM.