How to Create New VPC with Subnets, Route Tables

Md Meherab Hossen
4 min readApr 25, 2023

--

What is Amazon VPC?

With Amazon Virtual Private Cloud (Amazon VPC), you can launch AWS resources in a logically isolated virtual network that you’ve defined. This virtual network closely resembles a traditional network that you’d operate in your own data center, with the benefits of using the scalable infrastructure of AWS.

The following diagram shows an example VPC. The VPC has one subnet in each of the Availability Zones in the Region, EC2 instances in each subnet, and an internet gateway to allow communication between the resources in your VPC and the internet.

AWS VPC Create by meherabmct

Features:

The following features help you configure a VPC to provide the connectivity that your applications need:

Virtual private clouds (VPC)

A VPC is a virtual network that closely resembles a traditional network that you’d operate in your own data center. After you create a VPC, you can add subnets.

Subnets

A subnet is a range of IP addresses in your VPC. A subnet must reside in a single Availability Zone. After you add subnets, you can deploy AWS resources in your VPC.

IP addressing

You can assign IP addresses, both IPv4 and IPv6, to your VPCs and subnets. You can also bring your public IPv4 and IPv6 GUA addresses to AWS and allocate them to resources in your VPC, such as EC2 instances, NAT gateways, and Network Load Balancers.

Routing

Use route tables to determine where network traffic from your subnet or gateway is directed.

Gateways and endpoints

A gateway connects your VPC to another network. For example, use an internet gateway to connect your VPC to the internet. Use a VPC endpoint to connect to AWS services privately, without the use of an internet gateway or NAT device.

Peering connections

Use a VPC peering connection to route traffic between the resources in two VPCs.

Traffic Mirroring

Copy network traffic from network interfaces and send it to security and monitoring appliances for deep packet inspection.

Transit gateways

Use a transit gateway, which acts as a central hub, to route traffic between your VPCs, VPN connections, and AWS Direct Connect connections.

VPC Flow Logs

A flow log captures information about the IP traffic going to and from network interfaces in your VPC.

VPN connections

Connect your VPCs to your on-premises networks using AWS Virtual Private Network (AWS VPN).

Benefit of VPC in AWS

VPC (Virtual Private Cloud) is a service provided by Amazon Web Services (AWS) that enables users to create their own isolated virtual network in the cloud. VPC has several benefits, including:

Security: VPC allows users to create a secure and isolated network in the cloud. Users can configure security groups, network access control lists (ACLs), and use other security features to control traffic to and from their VPC.

Scalability: VPC provides users with the ability to scale their network resources as needed. Users can add or remove resources such as instances, subnets, and security groups, and configure routing tables as their needs change.

Cost-effectiveness: VPC enables users to save costs by eliminating the need to invest in physical hardware and infrastructure to create a private network. Users can use VPC to create a virtual network that meets their needs at a lower cost.

Flexibility: VPC allows users to customise their network configuration, including subnets, routing tables, and IP addresses. Users can also integrate VPC with other

AWS services, such as Elastic Load Balancing and Amazon RDS, to create a highly available and scalable architecture.

Overall, VPC is a powerful tool that provides users with the flexibility, security, scalability, and cost-effectiveness to create their own isolated virtual network in the cloud.

How to Create VPC

To create a Virtual Private Cloud (VPC) on a cloud platform such as Amazon Web Services (AWS), you can follow these general steps:

  • Log in to your AWS account and navigate to the VPC dashboard.
  • Click on the “Create VPC” button to begin creating your VPC.
  • Provide a name and a CIDR block for your VPC. The CIDR block determines the range of IP addresses that will be available in your VPC.
  • Choose whether you want to enable DNS support and hostname resolution for your VPC.
  • Choose whether you want to enable IPv6 support for your VPC.
  • Choose an existing Internet Gateway or create a new one, which allows your VPC to communicate with the internet.
  • Create one or more subnets within your VPC. Subnets are a way to divide your VPC into smaller network segments.
  • Choose a route table for your VPC. A route table determines how traffic is routed within your VPC and between your VPC and other networks.
  • Optionally, create security groups for your VPC to control inbound and outbound traffic.
  • Review your VPC configuration and click the “Create VPC” button to create your VPC.

These steps may vary depending on the cloud platform you are using, but the general process should be similar need more info

--

--

Md Meherab Hossen
0 Followers

Cloud Architect AWS, Azure and DevOps Engineer | System Administrator & Certified Trainer | WordPress Security and Malware Removal