Configuring VPC networks

Networks are created with one of two subnet modes, custom or auto. Networks using auto mode are created with one pre-configured subnet for each region. Subnets within a network must have non-overlapping IP address ranges, so auto mode provides a convenient way to avoid the need to carefully plan out subnet address ranges. Conversely, networks created in custom mode are created without subnets. This is useful in situations where teams want more control over the allocation of IP addresses within the network, such as when using many subnets within one region or using Google Cloud Interconnect.

Let's create two networks, one using the auto subnet mode and one with custom subnet mode. Creating networks requires the compute.networks.create ...

Get Building Google Cloud Platform Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.