Network Unreachable Error on Mercury VulnHub VM in VMware Workstation

Abstract: Resolve Network Unreachable errors in VMware Workstation by verifying NAT adapter settings and ensuring the VMware NAT service is running.

Created: 2026-10-12 by

The "Network Unreachable" error in VMware Workstation when running the Mercury VulnHub VM typically stems from NAT network configuration mismatches or host firewall interference. The most effective fix involves verifying that the virtual machine’s network adapter is set to NAT mode and ensuring the VMware NAT service is actively running on the host system.

Verifying Network Adapter Configuration

The first step in troubleshooting this connectivity issue is to inspect the virtual hardware settings within VMware Workstation. The Mercury VM, like many security-focused virtual machines, relies heavily on specific network protocols for its internal services. If the network adapter is incorrectly configured, the guest operating system cannot route traffic to the host or external networks.

Open the virtual machine settings by right-clicking the Mercury VM in the library and selecting Settings. Navigate to the Network Adapter section. Ensure that the option Connected and Start Connected are both checked. These checkboxes are critical because if the adapter is disconnected at startup, the VM will not attempt to initialize a network interface upon booting.

Next, examine the Network Connection dropdown menu. For most home lab environments, NAT: Used to share the host's IP address is the recommended setting. This mode allows the VM to share the host computer’s IP address, making it appear as another device on the local network. Avoid using Host-only unless you have specifically configured a static IP range for your host-only adapter, as default configurations often lack the necessary routing rules for general internet access or broader network discovery.

If you recently changed your host network (for example, switching from Wi-Fi to Ethernet), VMware may not have automatically updated the NAT configuration. In such cases, switching to Bridged mode temporarily can help isolate whether the issue is with the NAT engine or the physical network interface. However, Bridged mode requires that your router assigns an IP address to the VM via DHCP, which might not always be desirable for privacy reasons in penetration testing scenarios.

Checking VMware Services

VMware Workstation relies on background services to manage network translation and routing. If these services are stopped or corrupted, the VM will report network errors even if the virtual hardware is correctly configured. The primary service responsible for NAT functionality is the VMware NAT Service.

To verify this on Windows, press Win + R, type services.msc, and hit Enter. Locate VMware NAT Service in the list. Right-click it and select Properties. Check the Service Status; it should say Running. If it is stopped, click Start. Additionally, ensure the Startup Type is set to Automatic so that the service launches every time you start VMware Workstation.

On Linux hosts, you would use the terminal to check the status of the daemon. You can restart the VMware networking stack by running sudo systemctl restart vmware-networks.service. This command forces the host to reinitialize all virtual network interfaces, including the NAT gateway.

If the services are running but the problem persists, consider restarting them manually. Sometimes, a stale connection state can cause the NAT engine to hang. Stopping and then starting the service clears this state. Be aware that stopping these services will temporarily disconnect all running VMs, so save any work before proceeding.

Firewall and Host Interference

Your host operating system’s firewall may be blocking the virtual network adapters created by VMware. When VMware sets up a NAT network, it creates virtual adapters (such as VMnet8 on Windows) that must be allowed through the firewall. If a third-party antivirus or strict firewall policy blocks these adapters, the VM will lose connectivity.

Check your Windows Firewall or Linux iptables/nftables rules to ensure that inbound and outbound traffic is permitted for the VMware virtual adapters. You do not need to disable your entire firewall, but you should create an exception for the VMware application and its associated network components. Look for entries related to VMware Workstation or VMnet in your firewall logs if the connection fails unexpectedly.

Additionally, some corporate or university networks employ strict packet inspection that may interfere with the virtualized network traffic. If you are connecting to a public Wi-Fi, try switching to a wired connection or a different network segment to rule out external network restrictions.

Resetting Virtual Network Editor

If standard troubleshooting steps fail, resetting the virtual network configuration is a powerful diagnostic tool. Open VMware Workstation and go to Edit > Virtual Network Editor. You may need administrator privileges to make changes here. Click on Change Settings to gain write access.

Look for the Restore Defaults button at the bottom of the window. Clicking this will remove all custom virtual network configurations and recreate the default NAT and Host-only adapters. This process effectively wipes out any conflicting subnet masks or gateway settings that may have been introduced by previous experiments or software installations. After the reset, power on the Mercury VM and check if the network icon indicates a successful connection.

Note that restoring defaults will require you to reconfigure any custom port forwarding rules you may have set up previously. Also, ensure that the NAT checkbox is selected for VMnet8 after the reset, as this is the adapter used by the majority of VMs in NAT mode.

Related Resources

If you are experiencing broader issues with virtualization software beyond just network connectivity, you might find our guide on Error running virtual machine in VirtualBox helpful, as many underlying principles apply across different hypervisors.

Frequently Asked Questions

Why does my VM show no internet access even though the host has it?

This usually indicates that the NAT gateway is not functioning correctly on the host side. Check if the VMware NAT service is running and ensure that the VM’s network adapter is set to NAT mode rather than Host-only or Bridged.

Can I use Bridged mode instead of NAT for the Mercury VM?

Yes, Bridged mode allows the VM to appear as a separate device on your physical network. However, this exposes the VM directly to your LAN, which may pose security risks during penetration testing if not properly isolated.

What should I do if the Network Editor is grayed out?

You likely lack administrator privileges. Run VMware Workstation as an administrator or log in with an account that has administrative rights to modify system-level network configurations.

Does disabling IPv6 help with network unreachable errors?

In some cases, yes. If your host network prefers IPv6 but the VM only supports IPv4, or vice versa, conflicts can arise. Try disabling IPv6 on the host’s physical adapter or within the VM’s network settings to force IPv4 communication.

How do I know if the Mercury VM is successfully connected to the network?

Inside the VM, open a terminal and run ping 8.8.8.8. If you receive replies, the network stack is working. If you get "Destination Host Unreachable," the issue is likely with the local routing table or the virtual adapter configuration.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More