Skip to content

Section 4: OCI advanced routing

Step 4.1: Create DRG

Type dynamic routing gateway to the search box on top:

Search Dynamic Routing Gateway

Make sure the specific compartment has been selected, then select Create dynamic routing gateway.

Create Dynamic Routing Gateway

Set the DRG name with your group student-ID as below. Make sure the specific compartment has been selected.

Set DRG Name


Step 4.2: DRG VCN attachments

We need to attach Spoke and FortiGate VCNs to the DRG to enable communication.

In the DRG configuration screen, select VCN attachments on the left.

DRG VCN Attachments

Configure FortiGate-VCN attachment as below:

FortiGate VCN Attachment

Configure Spoke1-VCN attachment as below:

Spoke1 VCN Attachment

Configure Spoke2-VCN attachment as below:

Spoke2 VCN Attachment

Verify that you have 3 successful attachments:

Verify DRG VCN Attachments


Step 4.3: Spoke subnet routing

This step is required for East-West and South-North inspection.

Under Virtual cloud networks > Spoke1-VCN > Routing, select Student##-spoke1-routetable.

Select Spoke1 Route Table

Edit the 0.0.0.0/0 route to point to the DRG.

Edit Spoke1 Default Route to DRG

Follow the same step to configure the Spoke2-VCN route table.


Step 4.4: FortiGate Trust subnet routing

Configure route table Student##-trust-routetable as below.

You can navigate there using this path:

text
Networking > Virtual cloud networks > Student##-VCN > Route tables

This is for return traffic.

Configure FortiGate Trust Route Table


Step 4.5: DRG route tables

Create two separate route tables in the DRG management screen as below.

Navigation path:

text
Networking > Virtual cloud networks > Customer connectivity > Dynamic routing gateways > Student##-DRG > DRG route tables > Create DRG route table

Create DRG Route Tables

Associate DRG route tables with VCN attachments.

FortiGate VCN attachment should use Student##-Hub-Route-Table.

Spoke VCN attachments should use Student##-Spoke-Route-Table.

Navigation path:

text
Networking > Virtual cloud networks > Customer connectivity > Dynamic routing gateways > Student##-DRG > VCN attachments > Edit

FortiGate Hub VCN attachment route-table configuration:

FortiGate Hub VCN Attachment Route Table Configuration

Spoke VCN attachment route-table configuration should be configured for both Spoke-VCN attachments:

Spoke VCN Attachment Route Table Configuration

VCN attachment route-table configuration should be like this:

Verify VCN Attachment Route Table Configuration


Step 4.6: Import route distributions

We need to create route distributions for DRG hub route tables, so required prefixes will be announced into the route table for connectivity.

First, create an import route distribution for the Hub DRG route table to allow spoke VCN CIDRs to be announced as below.

Path:

text
Networking > Customer connectivity > Dynamic routing gateways > Student##-DRG > Import route distributions > Create import route distribution

Create Hub Import Route Distribution

Use the import route distribution within the DRG hub route table.

Path:

text
Networking > Customer connectivity > Dynamic routing gateways > Student##-DRG > DRG route tables > Edit

Hub DRG route table:

Apply Import Route Distribution to Hub DRG Route Table

Second, create another import route distribution for the Spoke DRG route table to allow the Hub VCN CIDR to be announced as below.

Path:

text
Networking > Customer connectivity > Dynamic routing gateways > Student##-DRG > Import route distributions > Create import route distribution

Create Spoke Import Route Distribution

Use the import route distribution within the DRG spoke route table.

Path:

text
Networking > Customer connectivity > Dynamic routing gateways > Student##-DRG > DRG route tables > Edit

Spoke DRG route table:

Apply Import Route Distribution to Spoke DRG Route Table


Step 4.7: Hub VCN Ingress Route Table

We need to configure the FortiGate HA cluster floating IP as next-hop for handling routing by DRG.

To achieve this, first create a route table in the FortiGate Hub VCN and use that route table in Hub VCN DRG attachment ingress routing.

Create a route table in FortiGate Hub VCN as below. You can give a name using your group student-ID.

Navigation path:

text
Networking > Virtual Cloud Networks > Student##-VCN > Route Tables > Create Route Table

Create Hub VCN Ingress Route Table

FortiGate A/P HA cluster floating IP can be found under FortiGate-VM VNIC configuration.

We will use the trust interface floating IP as the private IP target.

You can find the floating IP using this path:

text
Instances > Student##-FortiGate-A > Attached VNICs > Trust-a interface > IPv4 addresses > Secondary IP

Find FortiGate Trust Floating Private IP

Route rules are pointing FortiGate floating IP to reach spoke VCN CIDRs and the Internet.

Navigation path:

text
Networking > Virtual cloud networks > Student##-VCN > Route Tables > Student##-Ingress-Route-Table > Add Route Rules

Add Hub VCN Ingress Route Rules

Now, we will use this route table in Hub VCN DRG attachment configuration.

Path:

text
Networking > Customer connectivity > Dynamic routing gateways > Student##-DRG > VCN attachments > Edit Hub VCN attachment

Apply Ingress Route Table to Hub VCN DRG Attachment


Checkpoint

Before continuing, confirm that:

  • The DRG has been created.
  • FortiGate VCN is attached to the DRG.
  • Spoke1 VCN is attached to the DRG.
  • Spoke2 VCN is attached to the DRG.
  • Spoke subnet route tables point to the DRG.
  • FortiGate trust subnet routing is configured.
  • DRG route tables are created and associated with the correct VCN attachments.
  • Import route distributions are configured.
  • Hub VCN ingress route table points traffic to the FortiGate floating private IP.

FortiGate OCI Hands-on Lab Guide