Multiple IP addresses on Google Cloud Compute

2019-03-07 03:27发布

问题:

I'm trying to setup my VM based on CentOS 7 with more than one internal IP address, but it doesn't seem to be as straightforward as Amazon AWS.

回答1:

You can add internal IP for VM using routes. (https://cloud.google.com/compute/docs/reference/beta/routes)

Here an example of setting another static internal IP to VM: https://cloud.google.com/compute/docs/networking#staticnetworkaddress