How to create a High availability VPN gateway?

0 votes
How to create a High availability HA VPN gateway?
Nov 13 in GCP by anonymous
• 6,650 points
28 views

1 answer to this question.

0 votes

You can create a HA VPN gateway without the following resources and configure those resources later.

  • VPN tunnels

  • A peer VPN gateway resource

  • BGP sessions

You must create these resources before your gateway can become operational.

Create an HA VPN gateway. When the gateway is created, two external IP addresses are automatically allocated, one for each gateway interface.

In the following commands, replace the options as noted below:

  • Replace network with the name of your GCP network.

  • Replace region with the GCP region where you need to create the gateway and tunnel.

  • Replace gw-name with the name of the gateway.

gcloud compute vpn-gateways create gw-name \ --network network \ --region region

The gateway you create should look similar to the following example output. Note that a public IP address has been automatically assigned to each gateway interface:

 Created [https://www.googleapis.com/compute/v1/projects/project-id/regions/us-central1/vpnGateways/ha-vpn-gw-a].
 NAME        INTERFACE0    INTERFACE1   NETWORK   REGION
 ha-vpn-gw-a 203.0.113.16  203.0.113.23 network-a us-central1
answered Nov 13 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to create a Google Cloud Filestore instance?

Create an instance by running the instances create command, ...READ MORE

answered Oct 23 in GCP by Sirajul
• 40,980 points
26 views
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23 in GCP by Sirajul
• 40,980 points
29 views
0 votes
1 answer
0 votes
1 answer

Create a classic VPN using dynamic routing.

Classic VPN gateway and one tunnel using ...READ MORE

answered Nov 13 in GCP by Sirajul
• 40,980 points
29 views
0 votes
1 answer