A host and VM instance can ping each other as long as they belong to the same L2 network and share the same IP range. Note that the L2 network can be either a flat network or public network.