0% found this document useful (0 votes)
7 views14 pages

Virtualization Slides 5

This document provides a detailed guide on connecting virtual machines to a physical network using an external switch in Windows Server 2022, including the setup of a Domain Controller with Active Directory Domain Services (AD DS). It outlines the necessary steps for configuring IP addresses, creating an external virtual switch, and promoting a server to a Domain Controller. The document serves as a practical lab exercise for students to understand network connectivity and Active Directory management.

Uploaded by

hamzaiqbal10277
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views14 pages

Virtualization Slides 5

This document provides a detailed guide on connecting virtual machines to a physical network using an external switch in Windows Server 2022, including the setup of a Domain Controller with Active Directory Domain Services (AD DS). It outlines the necessary steps for configuring IP addresses, creating an external virtual switch, and promoting a server to a Domain Controller. The document serves as a practical lab exercise for students to understand network connectivity and Active Directory management.

Uploaded by

hamzaiqbal10277
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Windows Server 2022 Administration

Instructor: Gulnaz Mushtaq

External Switch:

In this lab, we will connect virtual machine(s) to our physical machines on a physical network. For
this activity, you have to arrange an extra laptop PC. Keep in mind the following topology:

Hyper-V

Network: [Link]/24
VM

IP: [Link]

EXT SW Wi-Fi IP: [Link]

Wi-Fi physical NIC


PC
Physical Host machine -Virtualization Server

You can use a wired network (Ethernet) but here we use the wireless switch as we all have a
wireless switch in our homes. Connect the PC to a wireless network and give any IP address from
the given network e.g., [Link]. Also, enable the inbound ICMP firewall rule in PC just like we
have done in previous exercises.

Preparing PC:

As we have already assigned the IP addresses to the VM servers in the previous lectures, now we
will assign the IP address to the PC from the same IP scheme i.e. [Link]/24 so that the
process of communication between VM(s) and PC can be initiated. For this purpose, come to your
PC and connect it to your home Wi-Fi. Now open the network adaptors panel by running the
command [Link]
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Assign IP on Wi-Fi NIC e.g. [Link]

Disable IPv6.

Now enable the ICMP inbound rule on this PC.

Creating an external virtual switch:

By nature, an external switch works like an internal switch but it is created on a real physical
network interface card. So, in our case, we have both Ethernet NIC (wired) and Wi-Fi NIC
(wireless) in our virtualization server. Here, we create an external switch on Wi-Fi NIC.

In Hyper-V go to Virtual Switch Manager:

Select the option New virtual network switch and choose the required type External and click on
Create Virtual Switch. Here give it an appropriate name e.g. EXT SW Wi-Fi. From the dropped-
down menu, select the Wi-Fi adapter’s adaptor. Then click on Apply. A confirmation screen will
appear, click on Yes. It will create external switch in the Hyper-V.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

When an external switch is created in the Hyper-V, an adapter is automatically created in the physical
host machine by the name of that switch. In this case, an adapter by the name

vEthernet (EXT SW Wi-Fi) will be created. To verify this, run command [Link] on the physical
host and you will see the network interface cards (network adaptors) of your physical machine (host).

Attaching external switch to the VM(s) and start communication:


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Now attach this external switch to your VM(s) to communicate to the PC on your network. Go to
the target VM(s), right-click and Settings.

In the Settings window, click on Network Adaptor and on the right side, select the desired
external switch i.e. EXT SW Wi-Fi and then Apply and Ok.

Checking connectivity between the VMs and PC:

To check the connectivity between VMs and PC, log in to the VMs one by one and send ping
commands to the PC. For example, if you are on VM server 1, send ping commands to PC, in this
regard, run the following commands in the command prompt:

ping [Link]

You will see that the ping request will be successful.


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Installing Active Directory Domain Services on Windows Server:

How to set up a Domain Controller? Setting up your first Domain Controller and installing Active
Directory Domain Services (AD DS) on Windows Server is excellent to start managing the IT
infrastructure. This lesson will show how to install AD DS and promote the server to Domain
Controller.

Active Directory Domain Services:

A server running the Active Directory Domain Services (AD DS) role is called a Domain Controller.
It authenticates and authorizes all users and computers in a Windows domain type network,
assigning and enforcing security policies for all computers and installing or updating software.

Setup a Domain Controller:

There are three steps in total to set up a Domain Controller. The below step-by-step guide will
ensure that you install and configure a Domain Controller.

Note: The steps will work for Windows Server 2012, 2016, 2019 and 2022.

Prerequisites:

Choose any of the VM servers to whom you want to make an Active Directory Domain Controller.
Connect that VM server to any switch first. Go to the IP settings of that VM server and in the
Preferred DNS settings, give the server’s own IP address.

Change the computer name of your server e.g. DC01

Install Active Directory Domain Services (AD DS):

Follow the steps to install Active Directory Domain Services (AD DS) on Windows Server.

Start Server Manager. Go to Dashboard > Manage > Add Roles and Features.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Click Next.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Select Role-based or feature-based installation. Click Next.

Again, click Next until you get the following window:

Check the checkbox Active Directory Domain Services.

A window will show that it will add features that are required for Active Directory Domain Services.
Click Add Features.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Click Next.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

In the Select features window, you don’t need to select any features and click Next.

Again click next and then click Install:


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

The installation will start. Wait until it gives the message of installation succeeded.

In the next step, we will promote the server to a Domain Controller.

Promote the server to Domain Controller

Now that the Active Directory Domain Services feature installation is completed on Windows
Server, additional steps are required to make this machine a domain controller.

Click on Promote this server to a domain controller.


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Select Add a new forest. Fill in the root domain. Click Next.

In our example, we will use the root domain [Link]


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Type the Directory Services Restore Mode (DRSM) password twice. Click Next.

Ignore the delegation warning at the top. Click Next.

Click Next.
Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Click Next.

Click Next then again click Next.


Windows Server 2022 Administration
Instructor: Gulnaz Mushtaq

Let the system check prerequisites. When the prerequisites get successful, click on Install.

A reboot will automatically occur at the end of the promotion operation.

Sign in to the domain:

Type in the credentials to sign in to the domain. The password is the same that you used when you
sign in to the local server before installing AD DS and promoting the server to Domain Controller.

Explore the Active Directory Domain Controller roles:

Once you get logged into the domain controller. Open Server Manager Dashboard and go to
Tools on the right top.

You will see different roles installed.

You might also like