EX 4-Creation of a VPC network

 

                             Creation of a VPC network


STEP 1: Create a VPC


Click create VPC option and make sure the same region is selected as for other services. 




A page will open like this and fill the details like VPC name ,IPv4 CIDR and leave other details as default.




      Click create VPC 



       VPC  successfully created




STEP 2 : Create a Subnet 

Select Subnet in virtual private cloud and click create subnet option on the right side 



Create one public subnet and three private subnets

  • Created first private subnet





  • Creating second private subnet

  • Creating Third private subnet



  •   Created public subnet




All three private subnets and one public subnet has successfully created



Step 3:Create an Internet Gateway


Select the Internet Gateways to create the internet gateway after the creation of internet gateway attach it with VPC.


  fill the details required to create Internet gateway and click create internet gateway


An internet gateway must be attached to the VPC. The route tables associated with your public subnet  must have a route to the internet gateway.



Step 4:Creation Of Route Table



Select route table and  click create route table option on right side 



fill the details like route table name and configure the VPC and click create route table 





Choose the route table and edit the Routes tab to add one more route with destination as “0.0.0.0/0” and choose internet gateway.



  • Choose route tables  and edit subnet associations.
  • Select the public subnet and save changes.


Select three private subnets and save changes





The image shows the route tables


Step 5: Launch EC2 in this VPC


Download the putty & puttygen software to your windows server and Create key pair The private key file (.pem).






In network settings, click edit and give the same region as while creating VPC and security group and click launch instance.




Instance has successfully created and the summary of instance



Select Elastic IPs in VPC and click Associate Elastic IP Address






In AWS console , select EC2 Instance and connect to instance




Generate a PuTTY Private Key (.ppk) File and click load select .pem file







 save the ppk file 



Open Putty In the Host Name (or IP address) box, enter instance-user-name@public-ipv4 address or also you can use public IPV4 DNS instead.




In putty and choose SSH ,expand auth and browse the .ppk file and click open



The EC2 window appears 




At last terminate all EC2 instances and remove elastic IP, terminate NAT Gateway
Deattached Internet Gateway , Delete IGW

Comments