What is the maximum number of external IP addresses that can be assigned to a machine on Google Compute Engine? I found the AWS limits but I can't find the same for Google Compute Engine.
Asked
Active
Viewed 54 times
1 Answers
1
the Resource Quotas and Interconnect Quotas do not state any limit for external IP addresses, therefore they are available as good as unlimited, but still may be limited by two factors: a) by the availability of the resource-type in the region and b) how many of them you are able to pay. in case you may wonder how many of them one can assign to a single instance; this might be 4000-5000 (based upon reports), until the network stack becomes unstable vs. the theoretical limit of 4 294 967 294 (- 2). one possibly can only estimate that value, because the hardware configuration also plays a role there; with multiple virtual NIC it should be able to take a multiple of IPs.

Martin Zeitler
- 1
- 19
- 155
- 216
-
According to https://cloud.google.com/vpc/docs/create-use-multiple-interfaces#max-interfaces the maximum number of virtual NICs is 8. How many IP addresses can we use per NIC? – Gili Sep 04 '18 at 22:02
-
Have a look at [forwarding rules](https://cloud.google.com/compute/docs/protocol-forwarding). Ie forwarding external IP’s to instances. There’s a limit of 50 rules per project as per docs. (Whatever ‘project’ means in this context). Not sure if this can be used for outbound traffic as well – Geert-Jan Sep 04 '18 at 22:25
-
one can forward sub-net wise from the load balancer: https://cloud.google.com/sdk/gcloud/reference/compute/forwarding-rules/create ... while in general the external IPs matter for the load-balancer while one is in place; unless having to access the instances directly from the public network. that is 50 ranges, not 50 addresses, with 50 rules. – Martin Zeitler Sep 05 '18 at 01:24
-
@Geert-Jan Fowarding rules are not relevant because I need multiple outgoing IP addresses. See https://stackoverflow.com/q/52224794/14731 for more information. – Gili Sep 07 '18 at 15:03