File: //snap/google-cloud-cli/current/help/man/man1/gcloud_compute_external-vpn-gateways_create.1
.TH "GCLOUD_COMPUTE_EXTERNAL\-VPN\-GATEWAYS_CREATE" 1
.SH "NAME"
.HP
gcloud compute external\-vpn\-gateways create \- create a new Compute Engine external VPN gateway
.SH "SYNOPSIS"
.HP
\f5gcloud compute external\-vpn\-gateways create\fR \fINAME\fR \fB\-\-interfaces\fR=[\fIID\fR=\fIIP_ADDRESS\fR,...] [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute external\-vpn\-gateways create\fR creates a new external VPN
gateway.
External VPN gateway is the on\-premises VPN gateway or another cloud provider's
VPN gateway that connects to your Google Cloud VPN gateway. To create a highly
available VPN from Google Cloud to your on\-premises side or another Cloud
provider's VPN gateway, you must create an external VPN gateway resource in
Google Cloud, which provides the information to Google Cloud about your external
VPN gateway.
.SH "EXAMPLES"
To create an external VPN gateway, run:
.RS 2m
$ gcloud compute external\-vpn\-gateways create my\-external\-gateway \e
\-\-interfaces=0=8.9.9.9
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the external VPN gateway to create.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-interfaces\fR=[\fIID\fR=\fIIP_ADDRESS\fR,...]
Map of interfaces from interface ID to interface IP address for the External VPN
Gateway.
There can be one, two, or four interfaces in the map.
For example, to create an external VPN gateway with one interface:
.RS 2m
$ gcloud compute external\-vpn\-gateways create MY\-EXTERNAL\-GATEWAY \e
\-\-interfaces 0=192.0.2.0
.RE
To create an external VPN gateway with two interfaces: $ gcloud compute
external\-vpn\-gateways create MY\-EXTERNAL\-GATEWAY \e \-\-interfaces
0=192.0.2.0,1=192.0.2.1
To create an external VPN gateway with four interfaces: $ gcloud compute
external\-vpn\-gateways create MY\-EXTERNAL\-GATEWAY \e \-\-interfaces
0=192.0.2.0,1=192.0.2.1,2=192.0.2.3,3=192.0.2.4
To create an external VPN gateway with IPv6 addresses on four interfaces: $
gcloud compute external\-vpn\-gateways create MY\-EXTERNAL\-GATEWAY \e
\-\-interfaces \e 0=2001:db8::1,1=2001:db8::2,2=2001:db8::3,3=2001:db8::4
Note that the redundancy type of the gateway will be automatically inferred
based on the number of interfaces provided:
.RS 2m
1 interface: `SINGLE_IP_INTERNALLY_REDUNDANT`
.RE
.RS 2m
2 interfaces: `TWO_IPS_REDUNDANCY`
.RE
.RS 2m
4 interfaces: `FOUR_IPS_REDUNDANCY`
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR
Textual description of the External VPN Gateway.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-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 \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha compute external\-vpn\-gateways create
.RE
.RS 2m
$ gcloud beta compute external\-vpn\-gateways create
.RE