With my old config I could not ping the gateway as described in the previous posts. However now I can with this new config in /etc/network/interfaces. This required a few changes there, one of them being that the gateway ip is now the same as the host esxi server's ip. However I cannot ping any valid ip address beyond the gateway, for example my own ip address or google's. However I can ping those outside ip addresses when logged into the host esxi server at ip address 184.164.130.34 (the vm's gateway).
What does that suggest?
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 184.164.130.35
netmask 255.255.255.248
network 184.164.130.32
broadcast 184.164.130.39
gateway 184.164.130.34
nameserver 8.8.8.8 4.2.2.2
Thanks,
David