37. Networking ‐ Create a DRG and interconnect subnets in Hub & Spoke VCN. Also access instance in Spoke VCN through bastion server in Hub VCN - SanjeevOCI/Ocidocs GitHub Wiki
Objective :- We have 2 public subnets in the VCN. We need first public subnet to connect to the whole world, but the second subnet should be connected to a specific system
Steps -
- Go to Networking--> Customer Connectivity --> Dynamic Routing Gateway(DRG) --> Create a New DRG
- Create 2 VCN Attachment - One for HUB & one for Spoke
- In HUB VCN --> Go to Public Subnet --> Custom Route Table --> Create a route rule to the Spoke Private Subnet
- In Spoke VCN --> Go to Private Subnet --> Custom Route Table --> Create a route rule to the HUB Public Subnet
- Update the Ingress file in the Private Subnet and add the incoming traffic for Hub Public Subnet - 172.0.0.0/24.
Similarly, ensure that Egress file for the Hub Public Subnet has outgoing traffic enabled.
- The Spoke Private Subnet Instance is now accessible from Hub Public Subnet