---
title: "How to Create a Google VPC (Virtual Private Cloud) Network"
description: "Secure and connect all your resources with a Google VPC (Virtual Private Cloud) network through an example-driven tutorial from ATA Learning!"
canonical: "https://adamtheautomator.com/google-vpc/"
---

# How to Create a Google VPC (Virtual Private Cloud) Network

> Secure and connect all your resources with a Google VPC (Virtual Private Cloud) network through an example-driven tutorial from ATA Learning!

Source: https://adamtheautomator.com/google-vpc/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![How to Create a Google VPC (Virtual Private Cloud) Network](https://adamtheautomator.com/wp-content/uploads/2022/12/google-vpc.jpg)

# How to Create a Google VPC (Virtual Private Cloud) Network

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)3 January 20236 min. read

Categories: [Cloud](/category/cloud/)

Tags:[Google Cloud](/tag/google-cloud/)[Networking](/tag/networking/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Exploring the Default Google VPC Network](#exploring-the-default-google-vpc-network)
*   [Deleting the Default VPC Network](#deleting-the-default-vpc-network)
*   [Testing Google Cloud Services Without a VPC Network](#testing-google-cloud-services-without-a-vpc-network)
*   [Creating and Configuring a Custom Google VPC Network](#creating-and-configuring-a-custom-google-vpc-network)
*   [Testing the VM’s Connectivity](#testing-the-vms-connectivity)
*   [Conclusion](#conclusion)

A network is the backbone of any business and infrastructure, and securing traffic within the network is crucial. How? A Virtual Private Cloud (VPC) will do the trick. But if you have yet to find one, why not consider a Google VPC?

Google VPC is a great way to create a dedicated, isolated network in the cloud to host your resources, applications, and services. And in this tutorial, you will create a custom Google VPC network in the Google Cloud Platform (GCP).

Read on and learn a secure and reliable way to manage your cloud resources!

## Prerequisites

This tutorial will be a hands-on demonstration. To follow along, ensure you have a Google Cloud Platform (GCP) account — a [free trial](https://cloud.google.com/free/?utm_source=bing&utm_medium=cpc&utm_campaign=japac-VN-all-en-dr-bkws-all-super-trial-b-dr-1009882&utm_content=text-ad-none-none-DEV_c-CRE_-ADGP_Hybrid%20%7C%20BKWS%20-%20PHR%20%7C%20Txt%20~%20GCP%20~%20Trial_Cloud-google%20cloud%20free%20trial-KWID_43700071931303786-kwd-74629621146165%3Aloc-166&userloc_142909-network_o&utm_term=KW_google%20cloud%20free%20trial&gclid=f5952dba08e417985aee4e2fda04ee41&gclsrc=3p.ds&) account will suffice.

## Exploring the Default Google VPC Network

When you create a new project on the GCP, a default VPC network is automatically created for you. This default VPC network provides an essential network structure to host your cloud resources, such as Google Compute Engine instances, Google Cloud Storage buckets, etc.

To see how a Google VPC works, inspect the default Google VPC network as follows:

1\. Open your favorite web browser, and log in to the [GCP Console](https://console.cloud.google.com/).

2\. Next, click the hamburger icon (top-left), and select **VPC network** → **VPC networks** to see all VPC networks.

![Accessing the list of all VPC networks](https://adamtheautomator.com/wp-content/uploads/2022/12/image-394.png)

Accessing the list of all VPC networks

As shown below, you will see a list of all VPC networks associated with your project, including the default network. A VPC network consists of subnets, routes, and firewall rules.

![Viewing the list of all VPC networks](https://adamtheautomator.com/wp-content/uploads/2022/12/image-395.png)

Viewing the list of all VPC networks

3\. Click **Routes** (left panel) to access a list of the routes associated with your VPC network. You will see many default routes, like the one below, which direct traffic from your VPC network to the public internet.

The numerical value **1000** prioritizes which route is used in the event of multiple routes with overlapping destinations. The route with the lowest numerical value has higher priority and will be used to handle the traffic.

VPC networks generally use numeric values to identify and manage different network resources within the VPC, such as subnets, network interfaces, and route tables.

![Viewing the routes](https://adamtheautomator.com/wp-content/uploads/2022/12/image-396.png)

Viewing the routes

4\. Now, navigate to Firewall (left panel), and you will see a list of the firewall rules associated with your Google VPC network.

Below, you can see four **Ingress** rules that control incoming traffic to your VPC network. In this case, these rules allow incoming SSH, ICMP, RDP, and internal network traffic.

![Viewing the firewall rules](https://adamtheautomator.com/wp-content/uploads/2022/12/image-397.png)

Viewing the firewall rules

## Deleting the Default VPC Network

Now that you understand the default VPC network, you can delete it and create your custom VPC network. Why? The default VPC network is designed to be a general-purpose network that can accommodate many workloads and use cases.

But in some cases, you may find that the default VPC network does not meet the specific needs of your project. For example, you may want to create a custom network configuration that has a different number of subnets or that uses a diverse range of IP addresses.

In these cases, deleting the default VPC network and creating a custom one is your best option.

> 💡 _Deleting the default VPC network is risky, as it removes the connectivity for all your project’s resources. So carefully plan and execute the deletion process, and ensure you have a backup plan in place if anything goes wrong._

To delete the default VPC network, follow these steps:

1\. In the **VPC networks** page, click the default **VPC network** hyperlink to access the default’s VPC network details page (step two).

![Accessing the default VPC network](https://adamtheautomator.com/wp-content/uploads/2022/12/image-398.png)

Accessing the default VPC network

2\. Next, click **DELETE VPC NETWORK** at the top to delete the default VPC network.

![Deleting the default VPC network](https://adamtheautomator.com/wp-content/uploads/2022/12/image-399.png)

Deleting the default VPC network

3\. When prompted, click **DELETE** to confirm the default VPC network deletion.

At this point, any firewall rules, routes, and subnets associated with the default VPC network are deleted.

![Confirming the default VPC network deletion](https://adamtheautomator.com/wp-content/uploads/2022/12/image-400.png)

Confirming the default VPC network deletion

4\. Now, navigate to the VPC networks page, and verify that the default VPC network has been deleted.

![Verifying the default VPC network has been deleted](https://adamtheautomator.com/wp-content/uploads/2022/12/image-401.png)

Verifying the default VPC network has been deleted

5\. Lastly, navigate to **Firewall** and **Routes** and confirm that the firewall rules and the routes associated with the default VPC network have also been deleted.

![Checking that the firewall rules have been deleted ](https://adamtheautomator.com/wp-content/uploads/2022/12/image-402.png)

Checking that the firewall rules have been deleted

![Checking that the routes have been deleted](https://adamtheautomator.com/wp-content/uploads/2022/12/image-403.png)

Checking that the routes have been deleted

## Testing Google Cloud Services Without a VPC Network

Once you have deleted the default VPC network, try to create a [virtual machine](https://adamtheautomator.com/google-virtual-machine/) (VM). Doing so lets you test what happens when no VPC network is associated with your project.

Related:[How to Create a Google Virtual Machine](https://adamtheautomator.com/google-virtual-machine/)

1\. Navigate to the [](https://console.cloud.google.com/)GCP Console, and click **Compute Engine** (left panel) to access the Compute Engine service.

![Accessing the Compute Engine service](https://adamtheautomator.com/wp-content/uploads/2022/12/image-404.png)

Accessing the Compute Engine service

2\. Next, click **CREATE INSTANCE** to initiate creating a VM instance.

![Initiating creating an instance](https://adamtheautomator.com/wp-content/uploads/2022/12/image-405.png)

Initiating creating an instance

3\. Now, keep all settings as default, scroll down, and click **CREATE** to create an instance.

![Creating a VM instance ](https://adamtheautomator.com/wp-content/uploads/2022/12/image-406.png)

Creating a VM instance

You will receive an error message that reads, **No more networks available in this project**, as shown below.

As you realize, a VPC network is the backbone of your project. You need a VPC network associated with your project to create a virtual machine. Not only that, but almost all Google Cloud services (Google Cloud SQL, Google Kubernetes Engine…) require a VPC to work correctly.

Related:[The Definitive Getting Started Guide to Google Cloud SQL](https://adamtheautomator.com/cloud-sql/)

![](https://adamtheautomator.com/wp-content/uploads/2022/12/image-407-1024x500.png)

Receiving an error message due to missing VPC network

## Creating and Configuring a Custom Google VPC Network

You have seen that since you deleted the default VPC network, working with Google Cloud services has new requirements. How do you get back on track with the Google Cloud services? You must create a custom Google VPC network associated with your project.

With a custom VPC network, you have complete control over your network’s IP address range, subnetworks, and network gateways.

To create a custom Google VPC network for your project:

1\. Navigate back to the **VPC networks** page, and click **CREATE** **VPC** **NETWORK** to initiate creating a custom VPC network.

![Initiating creating a custom VPC network](https://adamtheautomator.com/wp-content/uploads/2022/12/image-408.png)

Initiating creating a custom VPC network

2\. Next, provide a name for your VPC network with the following:

*   The name should be unique within your GCP project, as it will be used to identify your VPC network within the project.The name should be descriptive to identify the VPC network’s purpose quickly. For example, include the location or environment (e.g., **prod-us-west1**).The name should follow the naming conventions for VPC networks on GCP. The name should include lowercase letters, numbers, and hyphens, with a maximum length of 20 characters.

![Providing a VPC network name](https://adamtheautomator.com/wp-content/uploads/2022/12/image-409.png)

Providing a VPC network name

3\. Select the **Automatic** option for **Subnet creation mode** under the **Subnets** section. This option determines the subnet CIDR range for you automatically.

![Configuring subnets](https://adamtheautomator.com/wp-content/uploads/2022/12/image-410.png)

Configuring subnets

4\. Now, tick all the boxes to create firewall rules that control incoming traffic to your VPC network under the **Firewall rules** section. These rules are exact replicas of the rules in the default VPC network.

> 💡 _Note that you can create custom firewall rules to control incoming traffic more granularly, but that topic is out of the scope of this tutorial._

![Configuring the firewall rules](https://adamtheautomator.com/wp-content/uploads/2022/12/image-411.png)

Configuring the firewall rules

5\. Keep other settings as is, and click **CREATE** to create your custom VPC network.

![Creating the custom VPC network](https://adamtheautomator.com/wp-content/uploads/2022/12/image-412.png)

Creating the custom VPC network

6\. Repeat the steps in the “Testing Google Cloud Services Without a VPC Network” section to create a VM and verify your custom VPC network is working correctly.

If successful, you will see your newly-created VM instance in the list, as shown below. Your VM runs in an isolated and dedicated environment provided by your custom VPC network.

![Verifying the newly-created instance](https://adamtheautomator.com/wp-content/uploads/2022/12/image-413.png)

Verifying the newly-created instance

## Testing the VM’s Connectivity

With your VM instance running, testing its external connectivity is a must to ensure your instance is connected to the internet and able to receive and send traffic from outside. Doing so also confirms your custom VPC network is working as expected.

In the VM Instances page, click on the **SSH** dropdown under the **INSTANCES** tab, and select **Open in browser window**. This action opens a new browser tab with an SSH terminal, where you can connect to your instance and execute commands.

![Launching an SSH terminal](https://adamtheautomator.com/wp-content/uploads/2022/12/image-414.png)

Launching an SSH terminal

As shown below, you will be connected to your instance if all goes well.

![Testing the VM’s connectivity](https://adamtheautomator.com/wp-content/uploads/2022/12/image-415.png)

Testing the VM’s connectivity

## Conclusion

You have seen that a VPC network is a vital component of the Google Cloud Platform, providing a dedicated and isolated network for your cloud resources. And in this tutorial, you have created a custom VPC network and gained complete control over its IP address range and subnets.

At this point, you can now create a network configuration that meets the specific needs of your project. But would you want to configure your network further?

Why not [configure your VPC network’s IP address range and subnets](https://cloud.google.com/vpc/docs/subnets) to divide your network into different segments and assign unique IP addresses to your resources? Or [use the gcloud command-line tool](https://cloud.google.com/vpc/docs/create-modify-vpc-networks#gcloud) to manage and monitor your VPC network?

Related:[How to Perform a gcloud CLI Install and Manage Google Cloud](https://adamtheautomator.com/gcloud-cli-install/)

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fgoogle-vpc%2F&text=How%20to%20Create%20a%20Google%20VPC%20\(Virtual%20Private%20Cloud\)%20Network)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fgoogle-vpc%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fgoogle-vpc%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2026/08/featured_image-7.webp)

### [Build Azure Landing Zones That Prevent Cloud Sprawl](/build-azure-landing-zones/)

Build governed Azure landing zones end to end with the IaC accelerator: management group hierarchies, the eight design areas, Terraform and Bicep deployments,

![](https://adamtheautomator.com/wp-content/uploads/2022/12/How-to-Create-a-GCP-Dataflow-Pipeline-With-SQL.jpg)

### [How to Create a GCP Dataflow Pipeline With SQL](/gcp-dataflow/)

Learn how to utilize the GCP Dataflow Pipeline via SQL to manage data processing either batched or streaming in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2022/10/How-to-Create-a-Google-Virtual-Machine.jpg)

### [How to Create a Google Virtual Machine](/google-virtual-machine/)

Learn how to create and use a Google Virtual Machine (VM) and offload your workload in this in-depth tutorial by ATA Learning!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
