VPC - Virtual Private Cloud =============================== .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is a VPC?** A Virtual Private Cloud (VPC) is a logically isolated section of a cloud provider's network where users can launch and manage resources (like virtual machines, databases, and containers) in a virtual network that they define and control. It mimics a traditional on-premises network but with the scalability and flexibility of the cloud. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is VPC useful?** * Provides network isolation and control over IP addressing, routing, and security. * Enables secure communication between cloud resources and on-premises infrastructure. * Supports custom subnets, firewalls, and VPNs. * Facilitates multi-tier application architecture in the cloud. * Allows fine-grained access control using security groups and network ACLs. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How it works?** * User creates a VPC — defines IP range (CIDR block), subnets, and routing tables. * Resources are launched — instances, databases, and containers are deployed into subnets. * Security is configured — security groups and NACLs control traffic flow. * Connectivity is established — via internet gateway, VPNs, or peering connections. * Traffic is routed — based on custom route tables and NAT gateways. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is VPC used?** * Cloud-hosted applications — web apps, APIs, and microservices. * Hybrid cloud environments — connecting on-premises data centers to the cloud. * Multi-tier architecture — separating web, app, and database layers. * Secure data processing — isolating sensitive workloads in private subnets. * Disaster recovery — hosting backup systems in separate, isolated networks. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer does this protocol belong to?** * VPC operates at Layer 3, managing IP addressing and routing. * It defines subnets, route tables, and gateways for packet delivery. * Enables logical segmentation of cloud networks for secure and efficient communication. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`VPC Version&RFC Details ` * :ref:`VPC Basic Setup on Ubuntu using IPv4 ` * :ref:`VPC Basic Setup on Ubuntu using IPv6 ` * :ref:`VPC Protocol Packet Details ` * :ref:`VPC Usecases ` * :ref:`VPC Basic Features ` * :ref:`VPC Feature : Private IP Addressing ` * :ref:`VPC Feature : Subnetting ` * :ref:`VPC Feature : Route Tables ` * :ref:`VPC Feature : Security Groups ` * :ref:`VPC Feature : Network ACLs ` * :ref:`VPC Feature : Elastic IP Support ` * :ref:`VPC Feature : NAT Gateway Integration ` * :ref:`VPC Feature : Internet Gateway Access ` * :ref:`VPC Feature : DNS Resolution ` * :ref:`VPC Feature : IPV6 Support ` * :ref:`Reference links ` .. _VPC_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _VPC_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _VPC_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _VPC_step5: .. tab-set:: .. tab-item:: VPC Version&RFC Details .. csv-table:: :file: ./VPC/VPC_RFC_Details.csv :widths: 10,10,10,30,40 :header-rows: 1 .. _VPC_step19: .. tab-set:: .. tab-item:: VPC Basic Setup on Ubuntu using IPv4 * Setup .. _VPC_step20: .. tab-set:: .. tab-item:: VPC Basic Setup on Ubuntu using IPv6 * Setup .. _VPC_step6: .. tab-set:: .. tab-item:: VPC Protocol Packet Details **VPC Data Packet** .. csv-table:: :file: ./VPC/VPC_Protocol_Packet_1.csv :widths: 10,20,30,10 :header-rows: 1 **VPC Control Packet** .. csv-table:: :file: ./VPC/VPC_Protocol_Packet_2.csv :widths: 10,20,30,10 :header-rows: 1 **VPC Management Packet** .. csv-table:: :file: ./VPC/VPC_Protocol_Packet_3.csv :widths: 10,20,30,10 :header-rows: 1 **VPC Metadata Packet** .. csv-table:: :file: ./VPC/VPC_Protocol_Packet_4.csv :widths: 10,20,30,10 :header-rows: 1 **VPC Encapsulation Packet** .. csv-table:: :file: ./VPC/VPC_Protocol_Packet_5.csv :widths: 10,20,30,10 :header-rows: 1 .. _VPC_step7: .. tab-set:: .. tab-item:: VPC Usecases .. csv-table:: :file: ./VPC/VPC_Usecases.csv :widths: 10,20,30 :header-rows: 1 .. _VPC_step8: .. tab-set:: .. tab-item:: VPC Basic Features .. csv-table:: :file: ./VPC/VPC_Features.csv :widths: 10,10,30 :header-rows: 1 .. _VPC_step9: .. tab-set:: .. tab-item:: VPC Feature : Private IP Addressing **Private IP Addressing - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-1_Private_IP_Addressing_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step10: .. tab-set:: .. tab-item:: VPC Feature : Subnetting **Subnetting - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-2_Subnetting_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step11: .. tab-set:: .. tab-item:: VPC Feature : Route Tables **Route Tables - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-3_Route_Tables_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step12: .. tab-set:: .. tab-item:: VPC Feature : Security Groups **Security Groups - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-4_Security_Groups_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step13: .. tab-set:: .. tab-item:: VPC Feature : Network ACLs **Network ACLs - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-5_Network_ACLs_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step14: .. tab-set:: .. tab-item:: VPC Feature : Elastic IP Support **Elastic IP Support - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-6_Elastic_IP_Support_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step15: .. tab-set:: .. tab-item:: VPC Feature : NAT Gateway Integration **NAT Gateway Integration - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-7_NAT_Gateway_integration_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step16: .. tab-set:: .. tab-item:: VPC Feature : Internet Gateway Access **Internet Gateway Access - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-8_Internet_Gateway_Access_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step17: .. tab-set:: .. tab-item:: VPC Feature : DNS Resolution **DNS Resolution - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-9_DNS_Resolution_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step18: .. tab-set:: .. tab-item:: VPC Feature : IPV6 Support **IPV6 Support - Testcases** .. csv-table:: :file: ./VPC/VPC_Feature-10_IPV6_Support_Testcase.csv :widths: 10,10,30,20 :header-rows: 1 .. _VPC_step21: .. tab-set:: .. tab-item:: Reference links * Reference links