gcloud_beta_compute_routers_add-bgp-peer (1)
NAME
- gcloud beta compute routers add-bgp-peer - add a BGP peer to a Google Compute Engine router
SYNOPSIS
-
gcloud beta compute routers add-bgp-peer NAME --interface=INTERFACE --peer-asn=PEER_ASN --peer-name=PEER_NAME [--advertised-route-priority=ADVERTISED_ROUTE_PRIORITY] [--advertisement-mode=MODE] [--async] [--peer-ip-address=PEER_IP_ADDRESS] [--region=REGION] [--set-advertisement-groups=[GROUP,...]] [--set-advertisement-ranges=[CIDR_RANGE=DESC,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Add a BGP peer to a Google Compute Engine router.
POSITIONAL ARGUMENTS
-
- NAME
-
- Name of the router to operate on.
- Name of the router to operate on.
REQUIRED FLAGS
-
- --interface=INTERFACE
-
The name of the interface for this BGP peer.
- --peer-asn=PEER_ASN
-
The BGP autonomous system number (ASN) for this BGP peer. Must be a 16-bit or
32-bit private ASN as defined in tools.ietf.org/html/rfc6996 for
example --asn=64512.
- --peer-name=PEER_NAME
-
The name of the new BGP peer being added.
OPTIONAL FLAGS
-
- --advertised-route-priority=ADVERTISED_ROUTE_PRIORITY
-
The priority of routes advertised to this BGP peer. In the case where there is
more than one matching route of maximum length, the routes with lowest priority
value win. 0 <= priority <= 65535. If not specified, will use Google-managed
priorities.
- --advertisement-mode=MODE
-
The new advertisement mode for this peer. MODE must be one of:
-
- CUSTOM
- Custom (user-configured) BGP advertisements.
- DEFAULT
- Default (Google-managed) BGP advertisements.
-
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --peer-ip-address=PEER_IP_ADDRESS
-
The link-local address of the peer router. Must be a link-local IPv4 address
belonging to the range 169.254.0.0/16.
- --region=REGION
-
Region of the router to operate on. If not specified, you may be prompted to
select a region.
To avoid prompting when this flag is omitted, you can set the compute/region property:
- $ gcloud config set compute/region REGION
A list of regions can be fetched by running:
- $ gcloud compute regions list
To unset the property, run:
- $ gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable CLOUDSDK_COMPUTE_REGION.
- --set-advertisement-groups=[GROUP,...]
-
The list of pre-defined groups of IP ranges to dynamically advertise on this
peer. This list can only be specified in custom advertisement mode.
GROUP must be (currently only one value is supported):
-
- ALL_SUBNETS
- Automatically advertise all available subnets.
-
- --set-advertisement-ranges=[CIDR_RANGE=DESC,...]
-
The list of individual IP ranges, in CIDR format, to dynamically advertise on
this peer. Each IP range can (optionally) be given a text description DESC. For
example, to advertise a specific range, use
--set-advertisement-ranges=192.168.10.0/24. To store a description
with the range, use
--set-advertisement-ranges=192.168.10.0/24=my-networks. This list can
only be specified in custom advertisement mode.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud compute routers add-bgp-peer $ gcloud alpha compute routers add-bgp-peer