Stay organized with collections Save and categorize content based on your preferences.
gcloud compute routers create
NAME
--network
=NETWORK
[--advertisement-mode
=MODE
] [--asn
=ASN
] [--async
] [--bgp-identifier-range
=BGP_IDENTIFIER_RANGE
] [--description
=DESCRIPTION
] [--encrypted-interconnect-router
] [--keepalive-interval
=KEEPALIVE_INTERVAL
] [--region
=REGION
] [--set-advertisement-groups
=[GROUP
,…]] [--set-advertisement-ranges
=[CIDR_RANGE
=DESC
,…]] [GCLOUD_WIDE_FLAG …
]
gcloud compute routers create
is used to create a router to provide dynamic routing to VPN tunnels and interconnects.
NAME
--network
=NETWORK
--advertisement-mode
=MODE
MODE
must be one of:
CUSTOM
DEFAULT
--asn
=ASN
--asn=64512
.
--async
--bgp-identifier-range
=BGP_IDENTIFIER_RANGE
--description
=DESCRIPTION
--encrypted-interconnect-router
--keepalive-interval
=KEEPALIVE_INTERVAL
BGP systems exchange keepalive messages to determine whether a link or host has failed or is no longer available. Hold time is the length of time in seconds that the BGP session is considered operational without any activity. After the hold time expires, the session is dropped.
Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers.
--region
=REGION
To avoid prompting when this flag is omitted, you can set the
property:compute/region
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
,…]
GROUP
must be (only one value is supported):
ALL_SUBNETS
--set-advertisement-ranges
=[CIDR_RANGE
=DESC
,…]
--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.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha compute routers create
gcloud beta compute routers create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4