Configure Static IP for Windows 11 Virtual Box VM with Wired NIC
In some cases, you might want to configure a static IP address for your Windows 11 Virtual Box VM with a wired NIC. This could be useful in scenarios where you don't have access to a DHCP server or if you need to ensure that the virtual machine always has the same IP address on your network. This article will walk you through the process of configuring a static IP address for a Windows 11 virtual machine running on Virtual Box with a wired NIC.
Prerequisites
To follow this guide, you'll need the following:
- A Windows 11 virtual machine running on Virtual Box with a wired NIC
- Basic knowledge of networking concepts
- Access to the Virtual Box settings for the virtual machine
Configuring the Virtual NIC
The first step in configuring a static IP address for your Windows 11 virtual machine is to configure the virtual NIC in Virtual Box. To do this, follow these steps:
- Shut down the Windows 11 virtual machine.
- In Virtual Box, select the virtual machine from the list and click on the "Settings" button.
- In the settings window, click on the "Network" tab and select the "Adapter 1" tab.
- In the "Attached to" dropdown, select "Host-only Adapter".
- In the "Name" dropdown, select the host-only adapter you want to use.
- Check the "Cable connected" checkbox to enable the virtual NIC.
- Click the "OK" button to save the settings.
Configuring the Windows 11 Virtual Machine
Now that the virtual NIC is configured, you can configure the static IP address for the Windows 11 virtual machine. To do this, follow these steps:
- Start the Windows 11 virtual machine.
- In the virtual machine, right-click on the Start button and select "Network Connections".
- Right-click on the active network adapter and select "Properties".
- In the "Properties" window, select "Internet Protocol Version 4 (TCP/IPv4)" and click the "Properties" button.
- Select "Use the following IP address" and enter the static IP address, subnet mask, and default gateway for your network.
- Enter the preferred and alternate DNS servers for your network, if required.
- Click the "OK" button to save the settings and close the windows.
Testing the Configuration
To ensure that the static IP address is configured correctly, you can use the "ping" command to test the virtual machine's connectivity to the network and the Internet. To do this, follow these steps:
- Open a command prompt window in the virtual machine.
- Enter the "ipconfig" command to display the IP address configuration for the virtual machine.
- Enter the "ping" command followed by the IP address or hostname of a known device on your network or the Internet.
- If the virtual machine can reach the network and the Internet, the "ping" command will display the response time for the device or hostname.
- Configuring a static IP address for a Windows 11 virtual machine running on Virtual Box with a wired NIC requires configuring the virtual NIC in Virtual Box and the Windows 11 virtual machine.
- To configure the virtual NIC, select the host-only adapter and enable the virtual NIC in Virtual Box.
- To configure the Windows 11 virtual machine, enter the static IP address, subnet mask, and default gateway for your network in the "Internet Protocol Version 4 (TCP/IPv4)" properties.
- To test the configuration, use the "ipconfig" and "ping" commands to test the virtual machine's connectivity to the network and the Internet.