Link to home
Start Free TrialLog in
Avatar of Drafter421
Drafter421Flag for Afghanistan

asked on

VMware Can Ping VMs But Can't Ping Management

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?
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Drafter421

ASKER

I specified the gateway to the internet but that is different than the gateway to the 10.0.1.0.
Internet = 10.0.2.6
To 10.0.1.0=10.0.2.8
okay, you will need to add another route, using the command esxcfg-route
~ # 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

~ #
Thanks for the quick reply.  That did it.
No problems, always glad to help, where I can.