Skip to content

Commit ceda16e

Browse files
Merge pull request #244772 from cherylmc/patch-6
Update vpn-gateway-bgp-resource-manager-ps.md
2 parents 335d982 + d686682 commit ceda16e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/vpn-gateway/vpn-gateway-bgp-resource-manager-ps.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ description: Learn how to configure BGP for VPN gateways using PowerShell.
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 01/09/2023
8+
ms.date: 07/12/2023
99
ms.author: cherylmc
1010
ms.custom: devx-track-azurepowershell
11-
1211
---
1312
# How to configure BGP for VPN Gateway: PowerShell
1413

15-
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 [CLI](bgp-how-to-cli.md) steps.
14+
This article helps you enable BGP on cross-premises site-to-site (S2S) VPN connections and VNet-to-VNet connections using Azure PowerShell. If you aren't familiar with this type of configuration, you may find it easier to use the [Azure portal](bgp-howto.md) version of this article.
1615

1716
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.
1817

@@ -112,7 +111,7 @@ $gwipconf1 = New-AzVirtualNetworkGatewayIpConfig -Name $GWIPconfName1 -Subnet $s
112111

113112
#### 2. Create the VPN gateway with the AS number
114113

115-
Create the virtual network gateway for TestVNet1. BGP requires a Route-Based VPN gateway, and also an additional parameter *-Asn* to set the ASN (AS Number) for TestVNet1. If you don't set the ASN parameter, ASN 65515 is assigned. Creating a gateway can take a while (45 minutes or more to complete).
114+
Create the virtual network gateway for TestVNet1. BGP requires a Route-Based VPN gateway, and also an additional parameter *-Asn* to set the ASN (AS Number) for TestVNet1. Make sure to specify the *-Asn* parameter. If you don't set the -Asn parameter, ASN 65515 (which does not work for this configuration) is assigned by default. Creating a gateway can take a while (45 minutes or more to complete).
116115

117116
```azurepowershell-interactive
118117
New-AzVirtualNetworkGateway -Name $GWName1 -ResourceGroupName $RG1 -Location $Location1 -IpConfigurations $gwipconf1 -GatewayType Vpn -VpnType RouteBased -GatewaySku VpnGw1 -Asn $VNet1ASN
@@ -371,4 +370,4 @@ For context, referring to **Diagram 4**, if BGP were to be disabled between Test
371370

372371
## Next steps
373372

374-
For more information about BGP, see [About BGP and VPN Gateway](vpn-gateway-bgp-overview.md).
373+
For more information about BGP, see [About BGP and VPN Gateway](vpn-gateway-bgp-overview.md).

0 commit comments

Comments
 (0)