DRGへのVCNのアタッチ
Dynamic Routing Gateway (DRG)にVirtual Cloud Network (VCN)をアタッチします。
A VCN can be attached to only one DRG at a time, but a DRG can be attached to many VCNs (see Networking Limits). The attachment is automatically created in the compartment that holds the VCN. The VCN and DRG don't need to be in the same compartment. You can optionally specify a display name for the attachment itself, otherwise a default is provided. You can decide to connect VCNs in the same region using a single DRG instead of local peering gateways (see Local VCN Peering Through an Upgraded DRG for more information about that use case). The default routing policies in a DRG allow traffic to be routed between all VCNs attached to it. If you're attaching a DRG to a VCN in another tenancy, you need to have IAM configurations in both tenancies as described in IAM Policies for Routing Between VCNs. You also need the OCID of the VCN.
DRGへのアタッチメントを作成する場合(DRGは、同じOCIリージョン内の別のテナンシに配置できます)、DRGとVCNの両方のアタッチメントが作成され、1つのステップで接続されます。DRGをVCNにアタッチすると、独自のOCIDを持つDrgAttachmentオブジェクトが生成されます。
短い期間、アタッチメントは「アタッチ中」状態です。
アタッチメントの準備ができたら、サブネットのルート表にルート・ルールを作成し、サブネット・トラフィックをDRGに転送します。サブネットのトラフィックをDRGにルーティングするにはを参照してください。
「Dynamic Routing Gatewayアタッチメント」リストから、DRGアタッチメントのを選択して、その詳細の表示、タグの管理および削除を行うこともできます。
VCNをDRGにアタッチするには、network drg-attachment createコマンドおよび必要なパラメータを使用します:
oci network drg-attachment create --drg-id drg-ocid --network-details [complex type] ...[OPTIONS]CLIコマンドのパラメータおよび値の完全なリストは、CLIコマンド・リファレンスを参照してください。
CreateDrgAttachment操作を実行して、VCNへのDRGアタッチメントを作成します。