- It is an isolated network and Unique in the cloud.
- VPC is Region specific.
- Every Region has one default VPC. but do not delete this default VPC. Not able to do the task in that particular Region if we delete Default VPC.
- Suppose if we accidentally delete this VPC, we will create support case to AWS people.
- VPC is free of cost.
- we will create 5 VPC’s per Region (in AWS free-tier account ).We can create n Number of VPC in licenced account(in real time)
- VPC has a CIDR notation ==>> /16.
Internet Gateway (IGW) :
an Internet Gateway (IGW) is a horizontally scalable, highly available, and redundant virtual appliance that serves as the entry and exit point for network traffic to and from a Virtual Private Cloud (VPC).
- It is the gateway to all end-users to access application.
- IGW is the Region specific.
- Every Region has one default IGW, do not delete this default one, you are not able to do the things in this Region, if we delete this default one ..
- Internet gateway is the free of cost.
- IGW also has a CIDR notation is 0.0.0.0/0 (0.0.0.0/0 means anybody can access this application)
- We will create multiple IGW under one VPC. By default it is Detached status only.
- Internetgatway is Attached (Changed to Attached status) to VPC and Routing Tables.
Subnets :
A Subnet is a range of IP addresses within the VPC's IP address space. Subnets are used to divide the VPC's IP address range into smaller, manageable segments. Each Subnet represents a portion of the VPC's address space that can be assigned to specific resources within the VPC.
- It is a smaller network inside VPC.
- We will create multiple Subnets under one VPC.
- Subnets are Availability Zone specific.
- Subnets are also having CIDR notation ==>> /24
- Subnets are free of cost.
- Subnets are Attached to Routing Tables.
- Every Region has multiple Subnets.
- every Region has default Subnets, we do not delete this Default one.
Routing Tables :
A Routing table is a logical construct that controls the traffic flow between subnets within the VPC and the internet. A Routing table contains a set of rules, called routes, that determine where network traffic is directed.
- It is virtual router in the cloud.
- The main purpose of Routing tables is to communicate with the different Networks.
- Routing tables are Region specific.
- Routing tables are free of cost.
- Every Region has one default Routing table ==>>> do not delete this.
- whenever we create a VPC then automatically AWS implicitly creates a Routing table that is called Main Routing table.
- we will also create our own Routing tables this is called Custom Routing tables.
- Routing tables are attached to internet gateway and Subnets.
Security Group :
- it is a virtual firewall at ec2 instance level.
- It contains set of Rules ( ssh , http ,https , mysql ,alltraffic...etc) every Rule/Application are their OWN port number
- In Security Group the Source having 3 fields
- Anywhere; it is used in Freeware
- Custom: In Real time
- My IP: not used in specific
- Security Groups are Region specific.
- Security Groups are free of cost.
- Every Region has one default Security Group but do not delete this.
- Security Groups has Inboundrules and Outboundrules.
VPC Peering :
A VPC peering connection is a Networking connection that allows you to route traffic between two VPCs using private IPv4 or IPv6 addresses.
Note : VPC Peering is not supported for Transitive Peering
VPC peering will be doing in 3 ways.
- same region.
- different region.
- different AWS accounts / cross AWS accounts.
VPC peering thumbrule :
- Both VPC ‘s CIDR notations should not be collide to each other.
- VPC peering not supported transitive (but supported same sequence network peering) peering.
- Eg : vpc1 connect to vpc2 connect to vpc3 connect to vpc4 supported same sequence.
- Eg : vpc1 connect to vpc5 connect to vpc3 connect to vpc7 Not supported Transitive order.
- Here vpc1 should not communicate with vpc3
- Here vpc2 should not communicate with vpc4
- In VPC peering, we are only decided to specify who is the requester and accepter
- key point : Both VPC CIDR notations are interchanged in both main routing tables..
* Qus :- Difference Between Default Routing Table , Main Routing Table and Custom Routing Table ?
Default Routing Table :- Whenever we create a AWS account, by Default one Routing table is created that is called Default Routing Table.
Main Routing Table :- Whenever we Create VPC, by default AWS created one Routing Table for every VPC that is called Main Routing Table.
Custom Routing Table:- Whenever we create our own Routing table that is called Custom Routing table
How many VPC peering connections would be needed for a full mesh connectivity between all VPCs in an account?
Simple formula: n*(n-1)/2 where n = number of VPCs to be peered.
e.g. four VPCs full mesh connectivity would need 4*(4-1)/2 = 6 peering connections.
No comments:
Post a Comment