Skip to content

Commit 3005027

Browse files
committed
freshness update
update
1 parent 3837113 commit 3005027

File tree

10 files changed

+301
-216
lines changed

10 files changed

+301
-216
lines changed

articles/vpn-gateway/bgp-how-to-cli.md

Lines changed: 115 additions & 109 deletions
Large diffs are not rendered by default.

articles/vpn-gateway/bgp-howto.md

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
title: 'Configure BGP for VPN Gateway: Portal'
33
titleSuffix: Azure VPN Gateway
4-
description: Learn how to configure BGP for Azure VPN Gateway.
4+
description: Learn how to configure BGP for Azure VPN Gateway using the Azure portal.
55
services: vpn-gateway
66
author: cherylmc
77

88
ms.service: vpn-gateway
99
ms.topic: how-to
10-
ms.date: 01/04/2023
10+
ms.date: 01/09/2023
1111
ms.author: cherylmc
1212

1313
---
1414
# How to configure BGP for Azure VPN Gateway
1515

16-
This article helps you enable BGP on cross-premises site-to-site (S2S) VPN connections and VNet-to-VNet connections using the Azure portal.
16+
This article helps you enable BGP on cross-premises site-to-site (S2S) VPN connections and VNet-to-VNet connections using the Azure portal. This article helps you enable BGP on cross-premises site-to-site (S2S) VPN connections and VNet-to-VNet connections using Azure PowerShell. You can also create this configuration using the [Azure portal](bgp-howto.md) or [PowerShell](vpn-gateway-bgp-resource-manager-ps.md) steps.
1717

18-
BGP is the standard routing protocol commonly used in the Internet to exchange routing and reachability information between two or more networks. BGP enables the Azure VPN gateways and your on-premises VPN devices, called BGP peers or neighbors, to exchange "routes" that will inform both gateways on the availability and reachability for those prefixes to go through the gateways or routers involved. BGP can also enable transit routing among multiple networks by propagating routes a BGP gateway learns from one BGP peer to all other BGP peers.
18+
BGP is the standard routing protocol commonly used in the Internet to exchange routing and reachability information between two or more networks. BGP enables the VPN gateways and your on-premises VPN devices, called BGP peers or neighbors, to exchange "routes" that will inform both gateways on the availability and reachability for those prefixes to go through the gateways or routers involved. BGP can also enable transit routing among multiple networks by propagating routes a BGP gateway learns from one BGP peer to all other BGP peers.
1919

2020
For more information about the benefits of BGP and to understand the technical requirements and considerations of using BGP, see [About BGP and Azure VPN Gateway](vpn-gateway-bgp-overview.md).
2121

@@ -25,21 +25,21 @@ Each part of this article helps you form a basic building block for enabling BGP
2525

2626
**Diagram 1**
2727

28-
:::image type="content" source="./media/bgp-howto/bgp-crosspremises-v2v.png" alt-text="Diagram showing network architecture and settings" border="false":::
28+
:::image type="content" source="./media/bgp-howto/vnet-to-vnet.png" alt-text="Diagram showing network architecture and settings." border="false":::
2929

3030
You can combine parts together to build a more complex, multi-hop, transit network that meets your needs.
3131

3232
### Prerequisites
3333

3434
Verify that you have an Azure subscription. If you don't already have an Azure subscription, you can activate your [MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free account](https://azure.microsoft.com/pricing/free-trial/).
3535

36-
## <a name ="config"></a>Configure BGP on the virtual network gateway
36+
## <a name ="config"></a>Enable BGP for the VPN gateway
3737

38-
In this section, you create and configure a virtual network, create and configure a virtual network gateway with BGP parameters, and obtain the Azure BGP Peer IP address. Diagram 2 shows the configuration settings to use when working with the steps in this section.
38+
This section is required before you perform any of the steps in the other two configuration sections. The following configuration steps set up the BGP parameters of the VPN gateway as shown in Diagram 2.
3939

4040
**Diagram 2**
4141

42-
:::image type="content" source="./media/bgp-howto/bgp-gateway.png" alt-text="Diagram showing settings for virtual network gateway" border="false":::
42+
:::image type="content" source="./media/bgp-howto/gateway.png" alt-text="Diagram showing settings for the virtual network gateway." border="false":::
4343

4444
### 1. Create TestVNet1
4545

@@ -87,20 +87,20 @@ In this step, you create a VPN gateway with the corresponding BGP parameters.
8787

8888
> [!IMPORTANT]
8989
>
90-
> * By default, Azure assigns a private IP address from the GatewaySubnet prefix range automatically as the Azure BGP IP address on the Azure VPN gateway. The custom Azure APIPA BGP address is needed when your on premises VPN devices use an APIPA address (169.254.0.1 to 169.254.255.254) as the BGP IP. Azure VPN Gateway will choose the custom APIPA address if the corresponding local network gateway resource (on-premises network) has an APIPA address as the BGP peer IP. If the local network gateway uses a regular IP address (not APIPA), Azure VPN Gateway will revert to the private IP address from the GatewaySubnet range.
90+
> * By default, Azure assigns a private IP address from the GatewaySubnet prefix range automatically as the Azure BGP IP address on the VPN gateway. The custom Azure APIPA BGP address is needed when your on premises VPN devices use an APIPA address (169.254.0.1 to 169.254.255.254) as the BGP IP. VPN Gateway will choose the custom APIPA address if the corresponding local network gateway resource (on-premises network) has an APIPA address as the BGP peer IP. If the local network gateway uses a regular IP address (not APIPA), VPN Gateway will revert to the private IP address from the GatewaySubnet range.
9191
>
92-
> * The APIPA BGP addresses must not overlap between the on-premises VPN devices and all connected Azure VPN gateways.
92+
> * The APIPA BGP addresses must not overlap between the on-premises VPN devices and all connected VPN gateways.
9393
>
94-
> * When APIPA addresses are used on Azure VPN gateways, the gateways do not initiate BGP peering sessions with APIPA source IP addresses. The on-premises VPN device must initiate BGP peering connections.
94+
> * When APIPA addresses are used on VPN gateways, the gateways do not initiate BGP peering sessions with APIPA source IP addresses. The on-premises VPN device must initiate BGP peering connections.
9595
>
9696
9797
1. Select **Review + create** to run validation. Once validation passes, select **Create** to deploy the VPN gateway. Creating a gateway can often take 45 minutes or more, depending on the selected gateway SKU. You can see the deployment status on the Overview page for your gateway.
9898

9999
### 3. Get the Azure BGP Peer IP addresses
100100

101-
Once the gateway is created, you can obtain the BGP Peer IP addresses on the Azure VPN gateway. These addresses are needed to configure your on-premises VPN devices to establish BGP sessions with the Azure VPN gateway.
101+
Once the gateway is created, you can obtain the BGP Peer IP addresses on the VPN gateway. These addresses are needed to configure your on-premises VPN devices to establish BGP sessions with the VPN gateway.
102102

103-
On the virtual network gateway **Configuration** page, you can view the BGP configuration information on your Azure VPN gateway: ASN, Public IP address, and the corresponding BGP peer IP addresses on the Azure side (default and APIPA). You can also make the following configuration changes:
103+
On the virtual network gateway **Configuration** page, you can view the BGP configuration information on your VPN gateway: ASN, Public IP address, and the corresponding BGP peer IP addresses on the Azure side (default and APIPA). You can also make the following configuration changes:
104104

105105
* You can update the ASN or the APIPA BGP IP address if needed.
106106
* If you have an active-active VPN gateway, this page will show the Public IP address, default, and APIPA BGP IP addresses of the second VPN gateway instance.
@@ -112,11 +112,13 @@ To get the Azure BGP Peer IP address:
112112

113113
## <a name ="crosspremises"></a>Configure BGP on cross-premises S2S connections
114114

115-
To establish a cross-premises connection, you need to create a *local network gateway* to represent your on-premises VPN device, and a *connection* to connect the VPN gateway with the local network gateway as explained in [Create site-to-site connection](tutorial-site-to-site-portal.md). The following sections contain the additional properties required to specify the BGP configuration parameters.
115+
To establish a cross-premises connection, you need to create a *local network gateway* to represent your on-premises VPN device, and a *connection* to connect the VPN gateway with the local network gateway as explained in [Create site-to-site connection](tutorial-site-to-site-portal.md). The following sections contain the additional properties required to specify the BGP configuration parameters, as shown in Diagram 3.
116116

117117
**Diagram 3**
118118

119-
:::image type="content" source="./media/bgp-howto/bgp-crosspremises.png" alt-text="Diagram showing IPsec" border="false":::
119+
:::image type="content" source="./media/bgp-howto/cross-premises.png" alt-text="Diagram showing IPsec configuration." border="false":::
120+
121+
Before proceeding, make sure you have enabled BGP for the VPN gateway.
120122

121123
### 1. Create a local network gateway
122124

@@ -142,13 +144,13 @@ Configure a local network gateway with BGP settings.
142144
#### Important configuration considerations
143145

144146
* The ASN and the BGP peer IP address must match your on-premises VPN router configuration.
145-
* You can leave the **Address space** empty only if you're using BGP to connect to this network. Azure VPN gateway will internally add a route of your BGP peer IP address to the corresponding IPsec tunnel. If you're **NOT** using BGP between the Azure VPN gateway and this particular network, you **must** provide a list of valid address prefixes for the **Address space**.
146-
* You can optionally use an **APIPA IP address** (169.254.x.x) as your on-premises BGP peer IP if needed. But you'll also need to specify an APIPA IP address as described earlier in this article for your Azure VPN gateway, otherwise the BGP session can't establish for this connection.
147+
* You can leave the **Address space** empty only if you're using BGP to connect to this network. Azure VPN gateway will internally add a route of your BGP peer IP address to the corresponding IPsec tunnel. If you're **NOT** using BGP between the VPN gateway and this particular network, you **must** provide a list of valid address prefixes for the **Address space**.
148+
* You can optionally use an **APIPA IP address** (169.254.x.x) as your on-premises BGP peer IP if needed. But you'll also need to specify an APIPA IP address as described earlier in this article for your VPN gateway, otherwise the BGP session can't establish for this connection.
147149
* You can enter the BGP configuration information during the creation of the local network gateway, or you can add or change BGP configuration from the **Configuration** page of the local network gateway resource.
148150

149151
### 2. Configure an S2S connection with BGP enabled
150152

151-
In this step, you create a new connection that has BGP enabled. If you already have a connection and you want to enable BGP on it, you can [update an existing connection](#update).
153+
In this step, you create a new connection that has BGP enabled. If you already have a connection and you want to enable BGP on it, you can update it.
152154

153155
#### To create a connection
154156

@@ -158,27 +160,42 @@ In this step, you create a new connection that has BGP enabled. If you already h
158160
1. Select **Enable BGP** to enable BGP on this connection.
159161
1. Click **OK** to save changes.
160162

161-
#### <a name ="update"></a>To update an existing connection
163+
#### To update an existing connection
162164

163165
1. Go to your virtual network gateway **Connections** page.
164166
1. Click the connection you want to modify.
165167
1. Go to the **Configuration** page for the connection.
166168
1. Change the **BGP** setting to **Enabled**.
167169
1. **Save** your changes.
168170

169-
## <a name ="v2v"></a>Configure BGP on VNet-to-VNet connections
171+
#### On-premises device configuration
172+
173+
The following example lists the parameters you enter into the BGP configuration section on your on-premises VPN device for this exercise:
174+
175+
```
176+
- Site5 ASN : 65050
177+
- Site5 BGP IP : 10.51.255.254
178+
- Prefixes to announce : (for example) 10.51.0.0/16
179+
- Azure VNet ASN : 65010
180+
- Azure VNet BGP IP : 10.12.255.30
181+
- Static route : Add a route for 10.12.255.30/32, with nexthop being the VPN tunnel interface on your device
182+
- eBGP Multihop : Ensure the "multihop" option for eBGP is enabled on your device if needed
183+
```
184+
185+
## Enable BGP on VNet-to-VNet connections
170186

171187
The steps to enable or disable BGP on a VNet-to-VNet connection are the same as the [S2S steps](#crosspremises). You can enable BGP when creating the connection, or update the configuration on an existing VNet-to-VNet connection.
172188

173-
>[!NOTE]
174-
>A VNet-to-VNet connection without BGP will limit the communication to the two connected VNets only. Enable BGP to allow transit routing capability to other S2S or VNet-to-VNet connections of these two VNets.
175-
>
189+
> [!NOTE]
190+
> A VNet-to-VNet connection without BGP will limit the communication to the two connected VNets only. Enable BGP to allow transit routing capability to other S2S or VNet-to-VNet connections of these two VNets.
176191
177-
For context, referring to **Diagram 4**, if BGP were to be disabled between TestVNet2 and TestVNet1, TestVNet2 wouldn't learn the routes for the on-premises network, Site5, and therefore couldn't communicate with Site 5. Once you enable BGP, as shown in the Diagram 4, all three networks will be able to communicate over the IPsec and VNet-to-VNet connections.
192+
If you completed all three parts of this exercise, you have established the following network topology:
178193

179194
**Diagram 4**
180195

181-
:::image type="content" source="./media/bgp-howto/bgp-crosspremises-v2v.png" alt-text="Diagram showing full network" border="false":::
196+
:::image type="content" source="./media/bgp-howto/vnet-to-vnet.png" alt-text="Diagram showing full network configuration." border="false":::
197+
198+
For context, referring to **Diagram 4**, if BGP were to be disabled between TestVNet2 and TestVNet1, TestVNet2 wouldn't learn the routes for the on-premises network, Site5, and therefore couldn't communicate with Site 5. Once you enable BGP, as shown in the Diagram 4, all three networks will be able to communicate over the S2S IPsec and VNet-to-VNet connections.
182199

183200
## Next steps
184201

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)