Creating VPCs and Subnets in GCP V2 | Scribe

    Creating VPCs and Subnets in GCP V2

    • Hafeez Baig |
    • 57 steps |
    • 4 minutes
    1
    Sign in into the **Google Cloud Platform**
    2
    Type "**VPC networks**" in the search bar and click on the **VPC neworks** option
    3
    **VPC networks** wizard will open, here you can view all the VPC networks
    4
    Click on the **CREATE VPC NETWORK** button on the top left side
    5
    **Create a VPC network** wizard will open, give the Name as - "**my-first-vpc**"
    6
    Scroll to the **Subnet creation mode** section and select the option **Custom**
    information ordinal icon
    **What is Subnet creation mode: Custom?**\ \ In Google Cloud, **Subnet creation mode: Custom** allows you to manually define the IP address ranges and settings for your Virtual Private Cloud (VPC) subnets. You can specify details like IP address ranges, regions, and subnet properties, giving you more control over your network's configuration compared to the default automatic mode. This mode is useful for creating a network layout tailored to your specific needs.
    7
    Scroll to the **New subnet** section and give the Name as - "**asia-south1-subnet**"
    information ordinal icon
    **What is Subnet?**\ \ A **subnet** (short for subnetwork) is a segment of a larger network, created to organize and manage network resources more effectively. In Google Cloud, a subnet is a range of IP addresses within a Virtual Private Cloud (VPC) network. It allows you to allocate IP addresses, control traffic flow, and segment resources based on different network requirements or geographic locations.
    8
    Scroll to the **Region** dropdown section and select the option **asia-south-1** **Note:** You can select the Region closest to your location.
    9
    Scroll to the **IPv4 range** text input field and enter "**10.0.0.0/9**"
    information ordinal icon
    **What is IPv4 range?**\ \ An **IPv4 range** is a set of IP addresses defined by a start and end address or a subnet mask. It specifies a block of IP addresses using the IPv4 protocol, which is the most common version of the Internet Protocol. This range is used to allocate addresses for devices within a network or to define the IP address space for a subnet in cloud services like Google Cloud. For example, an IPv4 range of `192.168.1.0/24` includes all addresses from `192.168.1.0` to `192.168.1.255`.
    10
    Scroll to the **Private Google Access** section and select the option **Off**
    information ordinal icon
    **What is Private Google Access?**\ \ **Private Google Access** allows resources in your Virtual Private Cloud (VPC) to connect to Google services without needing public IP addresses. It enables VMs and other resources in private subnets to access Google APIs and services securely and privately, using internal IP addresses. This improves security and network efficiency by keeping traffic within Google's network.
    11
    Scroll to the **Flow logs** section and select the option **Off**
    information ordinal icon
    **What are Flow logs?**\ \ **Flow logs** are records of network traffic flowing through your Virtual Private Cloud (VPC) in Google Cloud. They capture details about each network flow, including source and destination IP addresses, ports, protocol, and the amount of data transferred. Flow logs are useful for monitoring, troubleshooting, and analyzing network activity, helping you understand traffic patterns, detect anomalies, and enhance security.
    12
    Scroll to the **Hybrid subnet** section and select the option Off
    information ordinal icon
    **What is Hybrid subnet?**\ \ A **Hybrid subnet** in Google Cloud is a subnet that spans multiple regions or zones, allowing resources in different locations to communicate as if they were on the same local network. This setup facilitates seamless connectivity and resource sharing across a broader network area while maintaining network isolation and security.
    13
    Scroll the page and if you want to add more subnets you can click on the **ADD SUBNET** button
    14
    Scroll to the **Firewall rules** section and tick the **Select all rows** checkbox