Creating a Route Distribution
Create an import or export route distribution for a Dynamic Routing Gateway (DRG) in Oracle Cloud Infrastructure.
A newly created DRG has two autogenerated import route distributions. After you create a new import route distribution, you can assign it to a route table so it dynamically learns new routes based on BGP advertisements.
A newly created DRG has a single autogenerated export route distribution. If the default export route distribution is assigned to an attachment, the entire contents of the attachment's assigned DRG route table are dynamically exported to the attachment.
For more details about DRG routing, see Working with DRG Route Tables and Route Distributions.
You can only create an import route distribution using the Console. You must use the CLI or API to create and assign an export route distribution.
Use the network drg-route-distribution create command and required parameters to create a new route distribution for the specified DRG:
oci network drg-route-distribution create --drg-id ocid --distribution-type import ... [OPTIONS]
Assign the route distribution as an import distribution to a DRG route table using the
network drg-route-table update
ornetwork drg-route-table create
commands. Assign the route distribution as an export distribution to a DRG attachment using thenetwork drg-attachment update
ornetwork drg-attachment create
commands.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDrgRouteDistribution operation to create a new route distribution for the specified DRG.
You can then assign the route distribution as an import distribution to a DRG route table using the
UpdateDrgRouteTable
orCreateDrgRouteTable
operations or assign the route distribution as an export distribution to a DRG attachment using theUpdateDrgAttachment
orCreateDrgAttachment
operations.