How To Create VPC Network In GCP?
Last Updated :
23 Jul, 2025
A VPC or Virtual Private Cloud allows you to secure your virtual networking environment including IP addresses, subnets, and network gateways. VPC allows users to create a virtually protected environment for their virtual instances on the Cloud platform and have complete access to the environment. VPC provides users the facility to place and manage necessary resources in a virtual protected environment of the cloud provider like Google Cloud Platform(GCP). We as a user can create, customize, and delete VPC networks in GCP. In this article, we will be exploring how we can create a VPC network in the Google Cloud Platform.
What Is Virtual Private Cloud (VPC) Network In GCP?
A Virtual Private Cloud (VPC): A VPC network is a virtual version of a physical network that is implemented inside Google's production network.
Google Cloud platform's Virtual Private Cloud Network is a networking service that allows users to create their private network infrastructure virtually. It provides networking functionalities to Google Cloud's VMs, Kubernetes Engines, and serverless workloads. Google Cloud's VPC network is globally available and has flexibility and scalability. It provides facilities for internal application load balancers. It can be also connected to on-premises networks using Cloud VPN tunnel.
We can create multiple Virtual Private Cloud networks in Google Cloud Platform. However, when we create an account in Google Cloud Platform it provides a default VPC Network having one subnetwork or subnet in each region. Each subnet has IP address range associated with them.
Steps To Create VPC Network In GCP
Step 1: Open Google Cloud Console
- On your web browser, visit console.cloud.google.com and Login with your valid credentials.
- You must have a valid Google Cloud's subscription to continue with the further steps.
- Once you are on the homepage of Google Cloud Console, create a project with some valid name.

Step 2: Enable Compute Engine API
- In order to be able for creating VPC networks, we need to enable Compute Engine API which provides functionalities for managing VPC Networks, subnets and other related resources.
- Use the search-bar available to search for Compute Engine API and click on the search result.

- Click on ENABLE and wait for sometime for it to be enabled, then go back to the Google Cloud Console's homepage.
Step 3: Open VPC Network
Use the left sidebar available, scroll down there and look for "VPC Networks" and click on it.

- This will open the VPC Network's page. Here you can see the default VPC Network has already been created for you.

- You can use this VPC Network for learning purposes but it is not recommended to be used for production purpose.
- In you have on-premises server or have multiple VPC then there is a chance that this default- VPC may overlap.
- It is always better to create a new VPC Network for your projects and production.
Step 4: Create VPC Network
- Click "Create VPC Network" button available there which will open a new page to fill basic details about your VPC Network and options to configure and customize.

Step 5: Fill Out VPC Network Details
- Give a name to your VPC Network and write a description for it. Description is not mandatory, so if you want you can skip it.

- Leave the MTU or Maximum transmission unit as it is. MTU simply defines the largest packet size of the network.
- It can be set to any value between 1300 and 8896. The Default value is 1460. Disable the VPC network ULA internal IPv6 range.
Step 6: Configure Subnets
We will be choosing custom in subnet section, so we can define our subnet ranges. If you select automatic it will be the same as the default VPC network as it will create one subnet in each region with default values.

- Let's Create two different subnets in different regions. You can choose the IP Stack type while creating subnets, here we will be selecting IPv4 for each subnet.
For the first one,
- Name: subnet1
- Region: us-west1
- IPv4 : 192.168.1.0/24
You can write a description if you want, we will here leave other options as it is.

Let's create another subnet as
- Name: subnet1
- Region: us-east1
- IPv4 : 10.1.0.0/24

Step 7: Configure Firewall Rules
- If the firewall rules section you can see rules are already created for you with the IP addresses you have selected.

- The first rule defines that all the VMs in your VPC network can have incoming connection request on all ports inside the VPC Network.
- The second rule will allow anyone on the internet to ping your instance created in the VPC Network.
- The next one allows anyone over the internet to use remote desktop connection with the instances on your VPC and the next one allows will allow to use the SSH over the internet with valid keys.
- These four rules will be evaluated first then the next two rules will be evaluated. The next two rules defines deny all access and allow all access to the instances in the VPC Network.
- Choose the firewall rule which suits the best for you. You can edit the rules later or can create new rules once your VPC Network is created.
Step 8: Review And Create
- In the next section of Dynamic routing mode select the default mode which is Regional.
- You can also create DNS Policy if you want but these things are optional.
- Check all the configurations you have done to the VPC Network and once checked by yourself, click on the Create button to create the VPC Network. It will take few minutes to create.

The other way
- You can also select Equivalent Command line to generate command line code for the VPC Network with the configurations you have done, run it on Cloud Shell to create the VPC Network.
Step 9: Check Your VPC Network
- Once you see the message "Created" search for VPC Networks on the search bar and select it to navigate in the VPC Networks' Homepage to verify the creation of your VPC Network.

- Now you can see the VPC Network "geeksvpc" in the VPC networks section with the default one means our VPC Network has been created successfully.
- You click on geeksvpc to get a overview of it with customization and configuration options and the priviledge to delete the VPC Network.

- You can explore all the other options available to check and change the configurations made as per your requirement.
- For example let's check the subnets section and see what we get.

- As you see, we get the option to add new subnets and it's showing us the subnet we have created with it's IP ranges.
Implementing VPC Network Security Best Practices
- To make the VPC Network the major focus must be on to minimize attack surface and maximize resource protection.
Least privilege access
Configure least privilege by assigning security groups the minimum inbound and outbound traffic permissions necessary for their specific function. Avoid using "0.0.0.0/0" as a destination address range. use IAM roles to manage access to your VPC resources. Give only the necessary permissions to users and services, following the principle of least privilege. Regularly audit and update IAM roles as personnel and project requirements changes.
Network Segmentation
Use private subnets for resources which does not require internet access. Use NAT gateways for controlled outbound traffic. This technique isolates critical resources. Assign specific IP address ranges to each subnet based on the intended purpose of the resources within, which will help to minimize the attack surface.
Firewall Rules
Create your own firewall rules to control incoming and outgoing traffic to and from your VPC. Use the principle of least privilege, only allowing necessary traffic. Regularly check and update firewall rules as your network grows. Setup monitoring and logging features in the network for better management.
Monitoring And Logging For VPC Networks In GCP
VPC Flow Logs
VPC flow logs records the network flows sent by or received from VM instances. The logs can be used for network monitoring and security analysis.
In Google Cloud Platform select the VPC network you have created and in the subnet section you will see Flow logs button.

- If it is off, click on turn on. Then click on view logs and a new page will open and you will be able to see network traffic logs for the VPC Network.

Here you can check logs, run custom query , create alert and many other things for better monitoring and logging of the VPC Network.
Stackdriver Logging
You can also choose to send all application and system logs, including VPC-related events, to Stackdriver Logging for centralized analysis. This will give you insights to check security failures and discover root cause. You can set up custom alerts based on metrics such as network latency, throughput, and error rates to efficiently identify and address issues.
IAM Audit Logs
Enable Cloud Audit Logs to monitor IAM activity logs and keep a track of user access and resource modifications within your VPC networks. This helps detect unauthorized access attempts and potential threats. Cloud Audit Logs will maintain an audit of all administrative activities within your VPC. This will help check failures, identify and solve network issues.
Scaling And Modifying VPCs: Tips and Considerations
Subnet Resizing
To scale your VPC network you can try resizing the subnets. Calculate the IP ranges and consider the availability zones to resize subnets. While resizing subnet can lead to changes in firewall rules and resource allocation. Reconfigure the rules for firewall protection and monitor resource allocated for better networking experience.
If you are planning to scale the VPC network, go ahead with Global load balancers rather using regional. Using Global load balancers can help routing efficiently in different zones. This will let you route in all regions using a single VPN or interconnected or cloud router.
Troubleshooting VPC Network Issues In Google Cloud Platform
In case of any issue happens during the creation or using the VPC Network, the best way to solve the issue by taking a look in the official documentation. Consider the best practices while using VPC networks to avoid issues in the first place. However in case you need to troubleshoot Use,
- VPC Network troubleshooter. This interactive tool helps diagnose common VPC connectivity issues and suggests potential solutions.
- You can access the logs in VPC flow logs for network insights and identify the problem.
- Check for route tables if they are configured properly or not.
Conclusion
VPC network is a useful networking feature provided in Google Cloud Platform. You can create your own VPC Network, define subnets, configure firewall rules and configure routings. Create VMs or Kubernetes engine instances in a protect environment and manage the resources. Connect our VPC with on-premises network and there are many more amazing things you can use with Cloud VPC. Now used your own VPC network to host and manage your resources with a secure and protected environment for your application and resources.
Similar Reads
Cloud Computing Tutorial Cloud computing is a technology that enables us to create, configure, and customize applications through an internet connection. It includes a development platform, a hard drive, software, and a database.In this Cloud Computing Tutorial, you will learn the basic concepts of cloud computing, which in
10 min read
Basics Of Cloud Computing
Introduction to Cloud ComputingCloud Computing is a technology that allows you to store and access data and applications over the internet instead of using your computerâs hard drive or a local server.In cloud computing, you can store different types of data such as files, images, videos, and documents on remote servers, and acce
8 min read
History of Cloud ComputingHave you ever thought about how cloud computing started? Who came up with the idea? How did it grow into the services we use every day, like Netflix, Google Drive, and AWS? Today, it's very easy to use computers, storage, and apps from anywhere in the world without buying expensive equipment or sett
4 min read
Evolution of Cloud ComputingCloud computing allows users to access a wide range of services stored in the cloud or on the Internet. Cloud Computing services include computer resources, data storage, apps, servers, development tools, and networking protocols. They are most commonly used by IT companies and for business purposes
6 min read
Characteristics of Cloud ComputingThere are many characteristics of Cloud Computing here are few of them : On-demand self-services: The Cloud computing services does not require any human administrators, user themselves are able to provision, monitor and manage computing resources as needed.Broad network access: The Computing servic
2 min read
Advantages of Cloud ComputingIn today's digital age, cloud computing has become a game-changer for businesses of all sizes. Cloud-based computing has numerous benefits, making it a popular choice for companies looking to streamline operations and reduce costs. From cost efficiency and scalability to enhanced security and improv
8 min read
Architecture of Cloud ComputingCloud Computing, is one of the most demanding technologies of the current time and is giving a new shape to every organization by providing on-demand virtualized services/resources. Starting from small to medium and medium to large, every organization uses cloud computing services for storing inform
6 min read
Cloud Computing InfrastructurePrerequisite - Cloud Computing Cloud Computing which is one of the demanding technology of current scenario and which has been proved as a revolutionary technology trend for businesses of all sizes. It manages a broad and complex infrastructure setup to provide cloud services and resources to the cu
3 min read
Cloud Management in Cloud ComputingAs more businesses shift to cloud platforms, managing cloud services has become crucial. Cloud management involves monitoring and controlling cloud resources like storage, computing power, and applications, across public, private, or hybrid environments. It ensures everything runs smoothly, securely
6 min read
What is Cloud Storage?Cloud storage is a method to save data on the internet instead of your computer or hard drive. It allows you to store files (like documents, images, videos, backups, and more) on remote servers that are managed by cloud service providers. You can access your files anytime and from anywhere using the
15 min read
Real World Applications of Cloud ComputingIn simple Cloud Computing refers to the on-demand availability of IT resources over internet. It delivers different types of services to the customer over the internet. There are three basic types of services models are available in cloud computing i.e., Infrastructure As A Service (IAAS), Platform
6 min read
Cloud Deployment Models
Cloud Deployment ModelsCloud Computing has now become an essential part of modern businesses, offering flexibility, scalability, and cost-effective solutions. But Selecting the most appropriate cloud deployment model is essential to utilize the complete potential of cloud services. Whether you're a small business or a lar
12 min read
Types of Cloud ComputingThere are three commonly recognized Cloud Deployment Models: Public, Private, and Hybrid Cloud Community Cloud and Multi-Cloud are significant deployment strategies as well. In cloud computing, the main Cloud Service Models are Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and So
12 min read
Difference Between Public Cloud and Private CloudCloud computing is a way of providing IT infrastructure to customers, it is not just a set of products to be implemented. For any service to be a cloud service, the following five criteria need to be fulfilled as follows: On-demand self-service: Decision of starting and stopping service depends on c
6 min read
Public Cloud vs Private Cloud vs Hybrid CloudPre-requisite: Cloud ComputingCloud computing is a type of remote computer network hosting, where massively distributed computers are connected to the Internet and made available through Internet Protocol networks such as the Internet. Cloud computing involves providing a service over the Internet,
7 min read
Cloud Service Models
Cloud Based ServicesCloud Computing means using the internet to store, manage, and process data instead of using your own computer or local server. The data is stored on remote servers, that are owned by companies called cloud providers such as Amazon, Google, Microsoft). These companies charge you based on how much yo
11 min read
Platform As A Service (PaaS) and its TypesPlatform as a Service (PaaS) is a cloud computing model designed for developers, offering a complete environment to build, test and deploy applications. Unlike traditional infrastructure management, PaaS takes care of things like servers, storage and networking allowing developers to focus mainly on
11 min read
Software As A Service (SaaS)Owning software is very expensive. For example, a ₹50 lakh software running on a ₹1 lakh computer is a common place. As with hardware, owning software is the current tradition across individuals and business houses. Often the usage of a specific software package does not exceed a coupl
2 min read
Difference between SaaS, PaaS and IaaSCloud Computing has transformed the way companies access, manage, and expand their IT resources. Among the many cloud services models, IaaS(Infrastructure as a Service), PaaS(Platform as a Service), and SaaS(Software as a Service) are the most popular. Each of these models provides different service
7 min read
Cloud Virtualization
Virtualization in Cloud Computing and TypesVirtualization is a way to use one computer as if it were many. Before virtualization, most computers were only doing one job at a time, and a lot of their power was wasted. Virtualization lets you run several virtual computers on one real computer, so you can use its full power and do more tasks at
7 min read
Difference between Cloud Computing and VirtualizationIntroductionCloud computing and virtualization are two fundamental ideas that are essential to IT infrastructure management in today's technologically advanced society. Even though they are often discussed together, they have diverse functions and provide unique benefits. This article explains the d
4 min read
Pros and Cons of Virtualization in Cloud ComputingVirtualization allows the creation of multiple virtual instances of something such as a server, desktop, storage device, operating system, etc. Thus, Virtualization is a technique that allows us to share a single physical instance of a resource or an application among multiple customers and an organ
5 min read
Data VirtualizationData virtualization is used to combine data from different sources into a single, unified view without the need to move or store the data anywhere else. It works by running queries across various data sources and pulling the results together in memory. To make things easier, it adds a layer that hid
9 min read
Hardware Based VirtualizationPrerequisite - Virtualization In Cloud Computing and Types, Types of Server Virtualization, Hypervisor A platform virtualization approach that allows efficient full virtualization with the help of hardware capabilities, primarily from the host processor is referred to as Hardware based virtualizatio
5 min read
Server VirtualizationServer Virtualization is most important part of Cloud Computing. So, Talking about Cloud Computing, it is composed of two words, cloud and computing. Cloud means Internet and computing means to solve problems with help of computers. Computing is related to CPU & RAM in digital world. Now Conside
3 min read
Types of Server Virtualization in Computer NetworkServer Virtualization is the partitioning of a physical server into a number of small virtual servers, each running its own operating system. These operating systems are known as guest operating systems. These are running on another operating system known as the host operating system. Each guest run
5 min read
Network Virtualization in Cloud ComputingPrerequisite - Virtualization and its Types in Cloud Computing Network Virtualization is a process of logically grouping physical networks and making them operate as single or multiple independent networks called Virtual Networks. General Architecture Of Network Virtualization Tools for Network Virt
4 min read
Operating system based VirtualizationOperating System-based Virtualization is also known as Containerization. It is a technology that allows multiple isolated user-space instances called containers to run on a single operating system (OS) kernel. Unlike traditional virtualization, where each virtual machine (VM) requires its own OS, OS
5 min read
Cloud Service Provider
Amazon Web Services (AWS) TutorialAmazon Web Service (AWS) is the worldâs leading cloud computing platform by Amazon. It offers on-demand computing services, such as virtual servers and storage, that can be used to build and run applications and websites. AWS is known for its security, reliability, and flexibility, which makes it a
13 min read
Microsoft Azure TutorialMicrosoft Azure is a cloud computing service that offers a variety of services such as computing, storage, networking, and databases. It helps businesses and developers in building, deploying, and managing applications via Microsoft-Controlled data centers. This tutorial will guide you from Microsof
13 min read
Google Cloud Platform TutorialGoogle Cloud Platform (GCP) is a set of cloud services provided by Google, built on the same technology that powers Google services like Search, Gmail, YouTube, Google Docs, and Google Drive. Many companies prefer GCP because it can be up to 20% cheaper for storing data and databases compared to oth
8 min read
Advanced Concepts of Cloud
On Premises VS On CloudLet us first understand the meaning of the word On-Premises and On Cloud. On Premises : In on-premises, from use to the running of the course of action, everything is done inside; whereby backup, privacy, and updates moreover should be managed in-house. At the point when the item is gotten, it is th
3 min read
Differences between Cloud Servers and Dedicated ServersCloud Servers A cloud server is essentially an Infrastructure as a Service-based cloud service model that is facilitated and typically virtual, compute server that is accessed by users over a network. Cloud servers are expected to give the same functions, bolster the equivalent operating systems (OS
4 min read
Cloud NetworkingCloud Networking is a service or science in which a companyâs networking procedure is hosted on a public or private cloud. Cloud Computing is source management in which more than one computing resources share an identical platform and customers are additionally enabled to get entry to these resource
11 min read
Server Consolidation in Cloud ComputingPre-requisites: Cloud Computing, Server Virtualization Server consolidation in cloud computing refers to the process of combining multiple servers into a single, more powerful server or cluster of servers. This can be done in order to improve the efficiency and cost-effectiveness of the cloud comput
6 min read
Hypervisor Security in Cloud ComputingPre-requisite: Cloud Computing A Hypervisor is a layer of software that enables virtualization by creating and managing virtual machines (VMs). It acts as a bridge between the physical hardware and the virtualized environment. Each VM can run independently of one other because the hypervisor abstrac
5 min read
Cloud Computing SecurityPrerequisite : Cloud ComputingWhat is Cloud Computing ?Cloud computing refers to the on demand delivery of computing services such as applications, computing resources, storage, database, networking resources etc. through internet and on a pay as per use basis. At the present time the demand for clo
5 min read
Security Issues in Cloud ComputingIn this, we will discuss the overview of cloud computing, its need, and mainly our focus to cover the security issues in Cloud Computing. Let's discuss it one by one. Cloud Computing :Cloud Computing is a type of technology that provides remote services on the internet to manage, access, and store d
5 min read
7 Privacy Challenges in Cloud ComputingCloud computing is a widely discussed topic today with interest from all fields, be it research, academia, or the IT industry. It has suddenly started to be a hot topic in international conferences and other opportunities throughout the world. The spike in job opportunities is attributed to huge amo
5 min read
Security Threats in Implementing SaaS of Cloud ComputingPre-requisite: Cloud Computing In order to improve their resilience and efficiency, several businesses accelerated their transition to cloud-based services as a result of the hybrid work paradigm mandated by companies at the height of the COVID-19 epidemic. Regardless of where an enterprise is locat
6 min read
Multitenancy in Cloud computingMultitenancy in Cloud computing: Multitenancy is a type of software architecture where a single software instance can serve multiple distinct user groups. It means that multiple customers of cloud vendor are using the same computing resources. As they are sharing the same computing resources but the
2 min read
Middleware in Grid ComputingPre-requisites: Grid Computing Middleware refers to the software that sits between the application layer and the underlying hardware infrastructure and enables the various components of the grid to communicate and coordinate with each other. Middleware can include a wide range of technologies, such
2 min read
Difference between Cloud Computing and Grid ComputingCloud Computing and Grid Computing are two model in distributed computing. They are used for different purposes and have different architectures. Cloud Computing is the use of remote servers to store, manage, and process data rather than using local servers while Grid Computing can be defined as a n
4 min read
Scalability and Elasticity in Cloud ComputingPrerequisite - Cloud Computing Cloud Elasticity: Elasticity refers to the ability of a cloud to automatically expand or compress the infrastructural resources on a sudden up and down in the requirement so that the workload can be managed efficiently. This elasticity helps to minimize infrastructural
4 min read
Cloud Bursting vs Cloud ScalingPre-requisite: Cloud Computing Cloud bursting and Cloud scaling are two related but distinct concepts in cloud computing. Cloud bursting is a process of dynamically extending an on-premise data center's capacity to a public cloud when there is a sudden and unexpected increase in demand. This allows
7 min read
Automated Scaling Listener in Cloud ComputingA service agent is known as the automated scaling listener mechanism tracks and monitors communications between cloud service users and cloud services in order to support dynamic scaling. In the cloud, automated scaling listeners are installed, usually close to the firewall. where they continuously
4 min read
Difference Between Multi-Cloud and Hybrid CloudIntroduction : Multi-cloud and hybrid cloud are two concepts that have become increasingly popular in the world of cloud computing. A multi-cloud strategy involves using multiple cloud computing services from different cloud providers, rather than relying on a single provider for all services. This
5 min read
Difference Between Cloud Computing and Fog ComputingCloud Computing: The delivery of on-demand computing services is known as cloud computing. We can use applications to storage and processing power over the internet. It is a pay as you go service. Without owning any computing infrastructure or any data centers, anyone can rent access to anything fro
3 min read
Overview of Multi CloudWhen cloud computing proved itself as an emerging technology of the current situation and if we will see there is a great demand for cloud services by most organizations irrespective of the organization's service and organization's size. There are different types of cloud deployment models available
10 min read
Service level agreements in Cloud computingA Service Level Agreement (SLA) is the bond for performance negotiated between the cloud services provider and the client. Earlier, in cloud computing all Service Level Agreements were negotiated between a client and the service consumer. Nowadays, with the initiation of large utility-like cloud com
6 min read
Overview of Everything as a Service (XaaS)Everything as a Service (XaaS) :Before only cloud computing technology was there and various cloud service providers were providing various cloud services to the customers. But now a new concept has emerged i.e Everything as a Service (XaaS) means anything can now be a service with the help of cloud
5 min read
Resource Pooling Architecture in Cloud ComputingPre-requisite: Cloud Computing A resource pool is a group of resources that can be assigned to users. Resources of any kind, including computation, network, and storage, can be pooled. It adds an abstraction layer that enables uniform resource use and presentation. In cloud data centers, a sizable p
3 min read
Load balancing in Cloud ComputingLoad balancing is an essential technique used in cloud computing to optimize resource utilization and ensure that no single resource is overburdened with traffic. It is a process of distributing workloads across multiple computing resources, such as servers, virtual machines, or containers, to achie
6 min read
Overview of Desktop as a Service (DaaS)Prerequisite : Cloud Computing Introduction :There are different cloud service models are available like SaaS, PaaS, IaaS and now even everything can be a service with the help of cloud computing. That's why Everything/Anything as a Service(XaaS) has emerged. Like that, the Desktop as a Service came
5 min read
IoT and Cloud ComputingOne component that improves the success of the Internet of Things is Cloud Computing. Cloud computing enables users to perform computing tasks using services provided over the Internet. The use of the Internet of Things in conjunction with cloud technologies has become a kind of catalyst: the Intern
6 min read
Container as a Service (CaaS)What is a Container :Containers are a usable unit of software in which application code is inserted, as well as libraries and their dependencies, in the same way that they can be run anywhere, be it on desktop, traditional IT, or in the cloud.To do this, the containers take advantage of the virtual
5 min read
Principles of Cloud ComputingThe term cloud is usually used to represent the internet but it is not just restricted to the Internet. It is virtual storage where the data is stored in third-party data centers. Storing, managing, and accessing data present in the cloud is typically referred to as cloud computing. It is a model fo
3 min read
Resiliency in Cloud ComputingPre-requisite: Cloud Computing In cloud computing, resilience refers to a cloud system's capacity to bounce back from setbacks and carry on operating normally. Hardware malfunctions, software flaws, and natural disasters are just a few examples of the different failures that a resilient cloud system
4 min read
Serverless ComputingImagine if you give all of your time in building amazing apps and then deploying them without giving any of your time in managing servers. Serverless computing is something that lets you to do that because the architecture that you need to scale and run your apps is managed for you. The infrastructu
3 min read