Configuring a Static IP on Windows Server 2022 and Setting Up External Virtual Switch in Hyper-V

Configuring a Static IP on Windows Server 2022:

1. Open Network and Sharing Center:

In the left menu, select “Change adapter settings”.

2. Select and Right-Click Your Network Connection, then Select “Properties”

3. Select “Internet Protocol Version 4 (TCP/IPv4)”:

Click the item, then click “Properties”.

4. Configure IPv4 Settings:

Select “Use the following IP address” and enter the information provided by your network administrator: eg:

IP address: 10.x.x.x
Subnet mask: 255.255.254.0
Default gateway: 10.x.x.x

Select “Use the following DNS server addresses” and enter the DNS servers:

Preferred DNS server: 10.x.x.x
Alternate DNS server: 10.x.x.x or 10.x.x.x

5. Confirm and Apply Settings:

Click “OK” to complete, then click “OK” or “Close” again to close the properties window.

6. Restart Network Connection (Optional):

Right-click on the configured network connection and select “Disable”, then right-click again and select “Enable”.

Setting Up an External Virtual Switch in Hyper-V:

1. Launch Hyper-V Manager and select the host you wish to configure.

2. Create an External Virtual Switch:

In the “Actions” menu on the right, click “Virtual Switch Manager”.
Select “New virtual network switch”, then choose “External”.
Click “Create”.

3. Configure the External Virtual Switch:

In the “Name” field, give the switch a meaningful name, e.g., “ExternalSwitch”.
In the “Connection Type” section, select your only physical network adapter.
Check “Allow management operating system to share this network adapter”.

4.Apply and Confirm Settings:

Click “Apply” and “OK” to confirm.

This allows both the host and virtual machines to connect to the internet simultaneously.

留下评论

通过 WordPress.com 设计一个这样的站点
从这里开始