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 -

  1. Go to Networking--> Customer Connectivity --> Dynamic Routing Gateway(DRG) --> Create a New DRG

DRG_1

DRG_2

DRG_3

DRG_4

DRG_5

  1. Create 2 VCN Attachment - One for HUB & one for Spoke

DRG_6

DRG_7

DRG_8

DRG_9

  1. In HUB VCN --> Go to Public Subnet --> Custom Route Table --> Create a route rule to the Spoke Private Subnet

DRG_10

DRG_11

DRG_12

  1. In Spoke VCN --> Go to Private Subnet --> Custom Route Table --> Create a route rule to the HUB Public Subnet

DRG_13

DRG_14

DRG_15

DRG_16

  1. 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.

DRG_17

DRG_18

  1. The Spoke Private Subnet Instance is now accessible from Hub Public Subnet

DRG_19