hardgcloud

Add a BGP peer to a Cloud Router for a VPN or Interconnect attachment

command

gcloud compute routers add-bgp-peer ROUTER_NAME --peer-name=PEER_NAME --interface=INTERFACE_NAME --peer-ip-address=PEER_IP --peer-asn=PEER_ASN --region=REGION

also accepted

gcloud compute routers add-bgp-peergcloud compute routers add-bgp-peer ROUTER_NAME --peer-name

Command breakdown

Part of the Google Cloud CLI (gcloud) — Alpha & Beta category.

gcloudcomputeroutersadd-bgp-peerROUTER_NAME--peer-name=PEER_NAME--interface=INTERFACE_NAME--peer-ip-address=PEER_IP--peer-asn=PEER_ASN--region=REGION
FlagPurpose
--peer-nameSet to: PEER_NAME
--interfaceSet to: INTERFACE_NAME
--peer-ip-addressSet to: PEER_IP
--peer-asnSet to: PEER_ASN
--regionSet to: REGION

Test your recall — not just your reading.

Practice with interactive quiz →