VPC
Virtual Private Cloud
Virtual Private Cloud
VPC is a virtual network dedicated to a cloud. the AWS account. It is logically isolated from other virtual networks.
Signup to a AWS account create a default VPS
Using VPS, we can Add subnets, Associate security groups and Configure route tables
VPS should be attached with an internet gateway to get internet access. Also, the route tables will be configured well.
Route table rule has priority for the lower values.
SUBNETTING
Subnetting is the strategy used to partition a single physical network into more than one smaller logical sub-networks
Class A : /8 1- 127 - 255.0.0.0 - Usable IPs: 16,777,214
Class B: /16 128 - 191 - 255.255.0.0 - Usable IPs: 65,534
Class C: /24 192-223 - 255.255.255.0 - Usable Ips: 254
Example Class A:
100.228.111.225/8
Network ID: 100.0.0.0
Fiest IP: 100.0.0.1
Second IP: 100.0.0.2
Last IP: 100.255.255.254
BroadCast IP: 100.255.255.255
11111111.00000000.00000000.00000000 - Binary form of /8
Example Class B:
100.228.111.225/16
Network ID: 100.228.0.0
Fiest IP: 100.228.0.1
Second IP: 100.228.0.2
Last IP: 100.228.255.254
BroadCast IP: 100.228.255.255
11111111.11111111.00000000.00000000 - Binary form of /16
11111111.11111111.11000000.00000000 - Binary form of /18
255.255.192.0
Example Class C:
100.228.111.225/24
Network ID: 100.228.111.0
Fiest IP: 100.228.111.1
Second IP: 100.228.111.2
Last IP: 100.228.111.254
BroadCast IP: 100.228.111.255
11111111.11111111.11111111.00000000 - Binary form of /24
11111111.11111111.11111111.10000000 - Binary form of /25
255.255.255.128