Repository navigation
LAB 36 (Create HUB VCN manually)
Before Clcik on Create VCN select the correct comparment Hub_network_compartment.
-
VCN Name : hub_manual_vcn
-
Create in Comparment : Hub_Network_Compartment
-
IPv4 CIDR Block : 10.0.0.0/24
-
Click on Crete VCN
After Create VCN we go inside the Newly Created vcn hub_manual_vcn and click on gateway. Here we create gatway for the vcn.
Here we click on Gateway and next we go to Internet Gateways and click on Create Internet Gateway.
Inside Create Internet Gateway
-
Name: hub_manual_vcn_ig
-
Create in compartment: Hub_Network_Compartment
-
Click Create Internet Gateway
Here we create our custom route table for control traffic as per our term of traffic control.
Click on new created route table and inside the route table click on route rules and click on add route rules
Inside route Rules Add the following rules:
• Target Type: Internet Gateway
• Destination CIDR: 0.0.0.0/0
• Target internet gateway : hub_manual_vcn_ig
Go to Security and click on Create security list
- First we add Ingress Rules, to add ingress rules click on add ingress rules
- Now we add egress rules
Here we allow all traffic 0.0.0.0/0
-
Name :- hub_manual_vcn_public_subnet
-
Create in compartment : Hub_Network_Compartment
-
Subnet type : Regional
-
IPv4 CIDR Block : 10.0.0.0/25
-
IPv6 Prefixes : route table - hub_manual_vcn_pubsubnet_rt
-
Subnet Access : Public subnet
-
Security Lists : hub_manual_vcn_sl
-
Name :- hub_manual_vcn_private_subnet
-
Create in compartment : Hub_Network_Compartment
-
Subnet type : Regional
-
IPv4 CIDR Block : 10.0.0.128/25
-
IPv6 Prefixes : route table - hub_manual_vcn_pubsubnet_rt
-
Subnet Access : Private subnet
-
Security Lists : hub_manual_vcn_sl
Both Subnet successfully created and configured.
we already assign custom route table and also assign custom security list with subnets in previous steps.
As we see, we login into the server successfully
ping 129.213.132.138
ping google.com