All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::BgpPeer

Last Updated:Mar 28, 2026

Tipe resource ALIYUN::VPC::BgpPeer digunakan untuk menambahkan peer BGP ke kelompok BGP tertentu.

Sintaksis

{
  "Type": "ALIYUN::VPC::BgpPeer",
  "Properties": {
    "PeerIpAddress": String,
    "EnableBfd": Boolean,
    "BgpGroupId": String,
    "BfdMultiHop": Integer,
    "IpVersion": String
  }
}

Properti

Parameter

Type

Wajib

Dapat Diedit

Deskripsi

Batasan

PeerIpAddress

String

No

Yes

Alamat IP peer BGP.

None

EnableBfd

Boolean

No

Yes

Menentukan apakah BFD diaktifkan atau tidak.

Nilai yang valid:

  • true: BFD diaktifkan.

  • false: BFD dinonaktifkan.

BgpGroupId

String

Yes

No

ID kelompok BGP.

None

BfdMultiHop

Integer

No

No

Jumlah hop BFD.

Nilai yang valid: 1 hingga 255.

Properti ini wajib ditentukan saat BFD diaktifkan. Properti ini menentukan jumlah maksimum perangkat yang dapat dilalui paket antara sumber dan tujuan. Tetapkan nilai ini berdasarkan kondisi tautan fisik Anda.

Catatan

Jika Anda menggunakan BFD di lingkungan multi-cloud atau melalui koneksi serat optik langsung tanpa perangkat perantara, ubah jumlah hop BFD default dari 255 menjadi 1.

IpVersion

String

No

No

Versi IP.

Nilai yang valid:

  • IPv4 (Default)

  • IPv6: Hanya didukung jika Virtual Border Router (VBR) yang terkait dengan kelompok BGP telah mengaktifkan IPv6.

Nilai kembalian

Fn::GetAtt

BgpPeerId: ID peer BGP.

Contoh

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BgpGroupId:
    Type: String
    Description: The ID of the BGP group.
Resources:
  BgpPeer:
    Type: ALIYUN::VPC::BgpPeer
    Properties:
      PeerIpAddress: 192.168.1.1
      EnableBfd: false
      BgpGroupId:
        Ref: BgpGroupId
Outputs:
  BgpPeerId:
    Description: The ID of the BGP peer.
    Value:
      Fn::GetAtt:
        - BgpPeer
        - BgpPeerId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BgpGroupId": {
      "Type": "String",
      "Description": "The ID of the BGP group."
    }
  },
  "Resources": {
    "BgpPeer": {
      "Type": "ALIYUN::VPC::BgpPeer",
      "Properties": {
        "PeerIpAddress": "192.168.1.1",
        "EnableBfd": false,
        "BgpGroupId": {
          "Ref": "BgpGroupId"
        }
      }
    }
  },
  "Outputs": {
    "BgpPeerId": {
      "Description": "The ID of the BGP peer.",
      "Value": {
        "Fn::GetAtt": [
          "BgpPeer",
          "BgpPeerId"
        ]
      }
    }
  }
}