Solved

VMware Can Ping VMs But Can't Ping Management

Posted on 2012-03-21
7
2,002 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
LVL 120
ID: 37748946
okay, you will need to add another route, using the command esxcfg-route
0
 
LVL 120
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 120
ID: 37748963
No problems, always glad to help, where I can.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

730 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