Makes vEthernet IP consistent

Issue:

  • Changing IP address of Ethernet adapter vEthernet on Windows 11 with Hyper-V

Solution:

Check if vEthernet is hidden

  1. In the "Network Connections" window, press the "Alt" key to display the menu bar.

  2. Click on "View" and make sure the "Show hidden devices" option is checked.

Create a new virtual switch in Hyper-V Manager

  1. Open Hyper-V Manager.

  2. Click on your computer's name in the left pane.

  3. In the Actions pane on the right, click on "Virtual Switch Manager."

  4. Click "New virtual network switch" under "Create virtual switch."

  5. Select the type of switch: "External" (connects to the physical network), "Internal" (connects only to the host and other virtual machines), or "Private" (connects only to other virtual machines).

  6. Click "Create Virtual Switch."

  7. Enter a name for the new virtual switch and configure its settings, such as the connection type and the physical network adapter (if needed).

  8. Click "OK" to create the virtual switch and close the Virtual Switch Manager.

Assign a consistent IP address to the vEthernet adapter

  1. Open "Control Panel" and navigate to "Network and Internet" > "Network and Sharing Center" > "Change adapter settings."

  2. Right-click on the vEthernet adapter and choose "Properties."

  3. In the Properties window, scroll down and double-click on "Internet Protocol Version 4 (TCP/IPv4)."

  4. In the new window, select "Use the following IP address."

  5. Enter an appropriate IP address, subnet mask, and default gateway for your virtual network. Ensure that the IP address you assign is unique within the virtual network and does not conflict with other devices.

  6. Click "OK" to apply the changes and close the Internet Protocol Version 4 (TCP/IPv4) Properties window.

  7. Click "OK" again to close the vEthernet adapter Properties window.

Troubleshoot vEthernet network connection

  1. Verify the virtual switch configuration in Hyper-V Manager.

  2. Check the physical network adapter: a. Ensure the physical network adapter selected for the "External" virtual switch has an active network connection. b. Check that the physical adapter's driver is up-to-date. You can do this by opening "Device Manager," expanding the "Network adapters" section, right-clicking on your physical network adapter, selecting "Properties," and then navigating to the "Driver" tab to update the driver if needed.