LAB 30 ‐ Application of Hub & Spoke Model (SL, RT, DRG, and VCN Attachment) - gautam-amitesh/OCI GitHub Wiki
Create Hub VCN & Spoke VCN
I already have a Hub VCN named `hub_vcn-manual so I only need to create a Spoke VCN
-
Create a VCN manually named
spoke_vcn-manualin the network compartment
Create Subnets
-
I already have a Public Subnet inside
hub_vcn-manualbut it also have a Private Subnet which I need toTerminate. But when I try it throws and error saying there is an instance associated to this subnet which we need to terminate first. -
Terminate
amazon_server -
Try terminating Private Subnet after the instance terminated successfully
-
Now create Private Subnet inside
spoke_vcn-manual
Create Dynamic Routing Gateway (DRG)
Create VCN Attachments
-
Create attachment between HUB VCN and DRG
-
Create attachment between SPOKE VCN and DRG
Create & Attach Security Lists
-
Delete Securiry List for Private Subnet of
hub_vcn-manualand update Security List for Public Subnet ofhub_vcn-manual -
Create and Add Custom Security List to Private Subnet of
spoke_vcn-manualand then remove the Default Security List
Create Route Table, add Route Rules, and attach Route Table
-
Add Route Rule for DRG to Public Subnet of
hub_vcn-manual -
Create Route Table, Add Route Rules for DRG to Private Subnet of
spoke_vcn-manualand attach it to the subnet
Create Instance
I already have an instance bastion_server in my Public Subnet of hub_vcn-manual, so I only need to create an instance amazon_server in my Private Subnet of spoke_vcn-manual.
-
Provision
amazon_server
Test Connectivity
-
pingtest ofbastion_serverfrom local computer -
telnettest ofbastion_serverfrom local computer -
SSH Remote Log In test of
bastion_serverfrom local computer -
pingtest ofamazon_serverfrombastion_server -
telnettest ofamazon_serverfrombastion_server -
SSH Remote Log In test of
amazon_serverfrombastion_server