Solved

VMware Can Ping VMs But Can't Ping Management

Posted on 2012-03-21
7
1,961 Views
Last Modified: 2012-06-21
I have an ESXi 5.0 machine I cannot ping, therefore I cannot log onto it via vCenter.  I can ping VMs on the ESXi machine.

ESXi=10.0.2.50
VM on ESXi=10.0.2.30
vCenter on 10.0.1.0 network

Can I add a route to ESXi to tell it the route to 10.0.1.0 is 10.0.2.8?  This is how I got the VMs to find 10.0.1.0, added a route to the Windows routing table.  Is there an ESXi routing table?
0
Comment
Question by:Drafter421
  • 4
  • 3
7 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 37748932
Did you specify a Default Gateway on ESXi 5.0? (on the console?)

Yes, there is a routing table.

e.g. #> esxcfg-route -a 192.168.1.0/24 192.168.2.2

see here

http://admin.alfalinks.lv/en/content/how-add-static-route-vmware-esxi-server
0
 

Author Comment

by:Drafter421
ID: 37748938
I specified the gateway to the internet but that is different than the gateway to the 10.0.1.0.
0
 

Author Comment

by:Drafter421
ID: 37748941
Internet = 10.0.2.6
To 10.0.1.0=10.0.2.8
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 118
ID: 37748946
okay, you will need to add another route, using the command esxcfg-route
0
 
LVL 118
ID: 37748947
~ # esxcfg-route --help
esxcfg-route <options> [<network> <gateway>] | <default gateway>
   <network> can be specified in 3 ways:
    * As a single argument in <IP>/<Mask> format
    * Or as a <IP> <Netmask> pair.
    * Or as 'default'

  -a|--add                   Add route to the VMkernel,
                             requires <network> (described above)
                             and gateway IP address
  -d|--del                   Delete route from the VMkernel.
                             Requires <network> (described above)
  -l|--list                  List configured routes for the VMkernel
  -n|--neighbor-list         Show Neighbor Cache entries for the VMkernel
  -f|--family <V4> or <V6>   Address family to work on.
                             Defaults to V4.
  -r|--restore               Restore route setting to configured values
                             on system start. (INTERNAL USE ONLY)
  -h|--help                  Show this message.

If no options are specified then it will print the default IPv4 gateway.
The default IPv4 gateway can be set directly as : esxcfg-route <gateway>

Examples:

  To add a route to 192.168.100.0 network through 192.168.0.1
      esxcfg-route -a 192.168.100.0/24 192.168.0.1
      or
      esxcfg-route -a 192.168.100.0 255.255.255.0 192.168.0.1

  To set the VMkernel default gateway of 192.168.0.1
      esxcfg-route 192.168.0.1
      or
      esxcfg-route -a default 192.168.0.1

  To delete a 192.168.100.0 route from the VMkernel:
      esxcfg-route -d 192.168.100.0/24 192.168.0.1

  To view the IPv4 ARP table:
      esxcfg-route -n

  To add a route to  2001:10:20:253::/64 network through 2001:10:20:253::1
      esxcfg-route -f V6 -a 2001:10:20:253::/64 2001:10:20:253::1

  To set the VMkernel default gateway of 2001:10:20:253::1
      esxcfg-route -f V6 -a default 2001:10:20:253::1

  To delete a 2001:10:20:253:: route from the VMkernel:
      esxcfg-route -f V6 -d 2001:10:20:253::/64 2001:10:20:253::1

  To view the IPv6 Neighbor cache:
      esxcfg-route -f V6 -n

~ #
0
 

Author Closing Comment

by:Drafter421
ID: 37748959
Thanks for the quick reply.  That did it.
0
 
LVL 118
ID: 37748963
No problems, always glad to help, where I can.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now