Configuring BGP Tunnel in Azure

Introduction

The Border Gateway Protocol (BGP) is a gateway protocol that enables the internet to exchange routing information between autonomous systems (AS). BGP is supported on all Azure VPN Gateway SKUs except Basic SKU; in this article, we will learn how to implement the BGP tunnel.

Step 1: Enabling the BGP Configuration in the Virtual Network Gateway

Go to the Virtual Network Gateway in the Azure portal, select Configuration under Settings, and put a checkmark in the 'Configure BGP ASN' box. After selecting the Configure BGP, we can see the ASN Number and the BGP peer IP Address.

Configuring BGP Tunnel in Azure

Step 2: Creating the Local Network Gateway (VPN remote connection)

In the global search box, type Local network gateway and hit enter. In the Local network gateway page, enter the remote device's public IP, and no need to add the private address spaces for the BGP configuration; click next for the BGP configuration.

Configuring BGP Tunnel in Azure

Step 3: Configuring the BGP

In the Advanced page, select Yes for the Configure BGP settings, enter the Autonomous System Number (ASN) and the BGP peer IP address, and click create.

Configuring BGP Tunnel in Azure

Step 4: Creating the Connection

In the global search box, type connection and hit enter. On the connection page, select the connection type as Site-to-Site (IPsec), and click next.

Configuring BGP Tunnel in Azure

Step 5: Enabling the BGP option

In the settings tab, select the Virtual network gateway, Local network gateway, enter the Shared key (PSK), put a checkmark in the Enable BGP box, and click Create.

Configuring BGP Tunnel in Azure

Step 6: Verifying the Connection status

In the global search box, type connection and hit enter, select the connection we have created, and then check the status (Connected or Not connected); the connection status is connected, so the VPN connection is successfully established.

Configuring BGP Tunnel in Azure

Step 7: Verifying the BGP peers

In the global search box, type Virtual network gateway and, hit enter, click BGP peers under Monitoring; here, we can notice that the BGP connection is successfully connected, and we can see the BGP learned routes.

Configuring BGP Tunnel in Azure

Summary

This article taught us how to configure the BGP tunnel in Azure. If you have any questions, feel free to comment under the article.


IFS R&D International (Private) Limited
IFS is a global enterprise software vendor providing solutions that help companies get better return