Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Troubleshooting virtual machine default gateway connection issues
Symptoms
- The default gateway connection fails.
- Cannot connect to anything outside of the subnet.
- You experience connectivity issues.
Purpose
Resolution
To troubleshoot this issue:
- Verify default gateway connectivity.
To verify default gateway connectivity:
- Use the ipconfig command to determine your computer's IP address and subnet mask. For more information, see Verifying virtual machine TCP/IP settings (1007875).
- Verify that the IP address and net mask displayed for your default gateway are correct by pinging the gateway IP address. Use the command:
Ping 10.10.10.1
The output looks similar to:
Pinging 10.10.10.1 with 32 bytes of data:
Reply from 10.10.10.1: bytes=32 time=2ms TTL=255
Reply from 10.10.10.1: bytes=32 time<1ms TTL=255
Reply from 10.10.10.1: bytes=32 time<1ms TTL=255
Reply from 10.10.10.1: bytes=32 time<1ms TTL=255
Ping statistics for 10.10.10.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms
Note: If you do not know the correct IP address for your default gateway, contact your network administrator.
- If there is more then one hop between the host and the gateway, run the Trace Route command to see at which hop the ping fails to reply:
tracert 10.10.10.1
The output looks similar to:
Tracing route to 10.10.10.1 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 10.10.10.1
Trace complete.
- If you cannot successfully ping your default gateway's IP address, verify that your default gateway is connected to the network and functioning properly and that ESX Virtual Switch configurations are in compliance. For more information, see VLAN Configuration on Virtual Switch, Physical Switch, and Virtual Machines (1003806).
For related troubleshooting information, see Troubleshooting virtual machine TCP/IP connection issues (1007842).
Additional Information
The default gateway is an entry point and an exit point in a virtual machine sub-net, VLAN, or network.
In general, a gateway is a routing device that knows how to pass traffic between different subnets and networks.
Layer 2 and layer 3 switches with VLAN configuration allow IP assignment to each VLAN that will be used as default gateway as for that particular VLAN. A router contains routes for other subnets.
Tags
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Product Family:
- Product(s):
- Product Version(s):

