Skip to content

Commit a632f6d

Browse files
Merge pull request #273006 from AbdullahBell/expressroute-peering-update-2
ExpressRoute: Create and modify peering for an ExpressRoute circuit | Portal, CLI, PowerShell - update
2 parents f87b987 + 4216943 commit a632f6d

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

articles/expressroute/expressroute-howto-routing-arm.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ This section helps you create, get, update, and delete the Microsoft peering con
7272
```azurepowershell-interactive
7373
Select-AzSubscription -SubscriptionId "<subscription ID>"
7474
```
75-
1. Create an ExpressRoute circuit.
75+
2. Create an ExpressRoute circuit.
7676

7777
Follow the instructions to create an [ExpressRoute circuit](expressroute-howto-circuit-arm.md) and have it provisioned by the connectivity provider. If your connectivity provider offers managed Layer 3 services, you can ask your connectivity provider to enable Microsoft peering for you. You won't need to follow instructions listed in the next sections. However, if your connectivity provider doesn't manage routing for you, after creating your circuit, continue your configuration using the next steps.
7878

79-
1. Check the ExpressRoute circuit to make sure it's provisioned and also enabled. Use the following example:
79+
3. Check the ExpressRoute circuit to make sure it's provisioned and also enabled. Use the following example:
8080

8181
```azurepowershell-interactive
8282
Get-AzExpressRouteCircuit -Name "ExpressRouteARMCircuit" -ResourceGroupName "ExpressRouteResourceGroup"
@@ -107,17 +107,21 @@ This section helps you create, get, update, and delete the Microsoft peering con
107107
ServiceKey : **************************************
108108
Peerings : []
109109
```
110-
1. Configure Microsoft peering for the circuit. Make sure that you have the following information before you continue.
110+
4. Configure Microsoft peering for the circuit. Make sure that you have the following information before you continue.
111111

112-
* A /30 or /126 subnet for the primary link. The address block must be a valid public IPv4 or IPv6 prefix owned by you and registered in an RIR / IRR.
113-
* A /30 or /126 subnet for the secondary link. The address block must be a valid public IPv4 or IPv6 prefix owned by you and registered in an RIR / IRR.
114-
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID.
112+
* A pair of subnets owned by you and registered in an RIR/IRR. One subnet is used for the primary link, while the other will be used for the secondary link. From each of these subnets, you assign the first usable IP address to your router as Microsoft uses the second usable IP for its router. You have three options for this pair of subnets:
113+
* IPv4: Two /30 subnets. These must be valid public IPv4 prefixes.
114+
* IPv6: Two /126 subnets. These must be valid public IPv6 prefixes.
115+
* Both: Two /30 subnets and two /126 subnets.
116+
* Microsoft peering enables you to communicate with the public IP addresses on Microsoft network. So, your traffic endpoints on your on-premises network should be public too. This is often done using SNAT.
117+
> [!NOTE]
118+
> When using SNAT, we advise against a public IP address from the range assigned to primary or secondary link. Instead, you should use a different range of public IP addresses that has been assigned to you and registered in a Regional Internet Registry (RIR) or Internet Routing Registry (IRR). Depending on your call volume, this range can be as small as a single IP address (represented as '/32' for IPv4 or '/128' for IPv6).
119+
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID. For both Primary and Secondary links you must use the same VLAN ID.
115120
* AS number for peering. You can use both 2-byte and 4-byte AS numbers.
116-
* Advertised prefixes: You provide a list of all prefixes you plan to advertise over the BGP session. Only public IP address prefixes are accepted. If you plan to send a set of prefixes, you can send a comma-separated list. These prefixes must be registered to you in an RIR / IRR. IPv4 BGP sessions require IPv4 advertised prefixes and IPv6 BGP sessions require IPv6 advertised prefixes.
121+
* Advertised prefixes: You provide a list of all prefixes you plan to advertise over the BGP session. Only public IP address prefixes are accepted. If you plan to send a set of prefixes, you can send a comma-separated list. These prefixes must be registered to you in an RIR / IRR.
122+
* **Optional -** Customer ASN: If you're advertising prefixes not registered to the peering AS number, you can specify the AS number to which they're registered with.
117123
* Routing Registry Name: You can specify the RIR / IRR against which the AS number and prefixes are registered.
118-
* Optional:
119-
* Customer ASN: If you're advertising prefixes not registered to the peering AS number, you can specify the AS number to which they're registered with.
120-
* An MD5 hash if you choose to use one.
124+
* **Optional -** An MD5 hash if you choose to use one.
121125

122126
> [!IMPORTANT]
123127
> Microsoft verifies if the specified 'Advertised public prefixes' and 'Peer ASN' (or 'Customer ASN') are assigned to you in the Internet Routing Registry. If you are getting the public prefixes from another entity and if the assignment is not recorded with the routing registry, the automatic validation will not complete and will require manual validation. If the automatic validation fails, you will see 'AdvertisedPublicPrefixesState' as 'Validation needed' on the output of "Get-AzExpressRouteCircuitPeeringConfig" (see "To get Microsoft peering details" in the following section).
@@ -194,11 +198,11 @@ This section helps you create, get, update, and delete the Azure private peering
194198
```azurepowershell-interactive
195199
Select-AzSubscription -SubscriptionId "<subscription ID>"
196200
```
197-
1. Create an ExpressRoute circuit.
201+
2. Create an ExpressRoute circuit.
198202

199203
Follow the instructions to create an [ExpressRoute circuit](expressroute-howto-circuit-arm.md) and have it provisioned by the connectivity provider. If your connectivity provider offers managed Layer 3 services, you can ask your connectivity provider to enable Azure private peering for you. You won't need to follow instructions listed in the next sections. However, if your connectivity provider doesn't manage routing for you, after creating your circuit, continue your configuration using the next steps.
200204

201-
1. Check the ExpressRoute circuit to make sure it's provisioned and also enabled. Use the following example:
205+
3. Check the ExpressRoute circuit to make sure it's provisioned and also enabled. Use the following example:
202206

203207
```azurepowershell-interactive
204208
Get-AzExpressRouteCircuit -Name "ExpressRouteARMCircuit" -ResourceGroupName "ExpressRouteResourceGroup"
@@ -229,21 +233,16 @@ This section helps you create, get, update, and delete the Azure private peering
229233
ServiceKey : **************************************
230234
Peerings : []
231235
```
232-
1. Configure Microsoft peering for the circuit. Make sure that you have the following information before you continue.
236+
4. Configure Azure private peering for the circuit. Make sure that you have the following items before you continue with the next steps:
233237

234-
* A pair of subnets owned by you and registered in an RIR/IRR. One subnet is used for the primary link, while the other will be used for the secondary link. From each of these subnets, you assign the first usable IP address to your router as Microsoft uses the second usable IP for its router. You have three options for this pair of subnets:
235-
* IPv4: Two /30 subnets. These must be valid public IPv4 prefixes.
236-
* IPv6: Two /126 subnets. These must be valid public IPv6 prefixes.
238+
* A pair of subnets that aren't part of any address space reserved for virtual networks. One subnet is used for the primary link, while the other is used for the secondary link. From each of these subnets, you assign the first usable IP address to your router as Microsoft uses the second usable IP for its router. You have three options for this pair of subnets:
239+
* IPv4: Two /30 subnets.
240+
* IPv6: Two /126 subnets.
237241
* Both: Two /30 subnets and two /126 subnets.
238-
* Microsoft peering enables you to communicate with the public IP addresses on Microsoft network. So, your traffic endpoints on your on-premises network should be public too. This is often done using SNAT.
239-
> [!NOTE]
240-
> When using SNAT, we advise against a public IP address from the range assigned to primary or secondary link. Instead, you should use a different range of public IP addresses that has been assigned to you and registered in a Regional Internet Registry (RIR) or Internet Routing Registry (IRR). Depending on your call volume, this range can be as small as a single IP address (represented as '/32' for IPv4 or '/128' for IPv6).
241-
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID. For both Primary and Secondary links you must use the same VLAN ID.
242-
* AS number for peering. You can use both 2-byte and 4-byte AS numbers.
243-
* Advertised prefixes: You provide a list of all prefixes you plan to advertise over the BGP session. Only public IP address prefixes are accepted. If you plan to send a set of prefixes, you can send a comma-separated list. These prefixes must be registered to you in an RIR / IRR.
244-
* **Optional -** Customer ASN: If you're advertising prefixes not registered to the peering AS number, you can specify the AS number to which they're registered with.
245-
* Routing Registry Name: You can specify the RIR / IRR against which the AS number and prefixes are registered.
246-
* **Optional -** An MD5 hash if you choose to use one.
242+
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID.
243+
* AS number for peering. You can use both 2-byte and 4-byte AS numbers. You can use a private AS number for this peering. Ensure that you aren't using 65515.
244+
* Optional:
245+
* An MD5 hash if you choose to use one.
247246

248247
Use the following example to configure Azure private peering for your circuit:
249248

articles/expressroute/howto-routing-cli.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: expressroute
55
author: duongau
66
ms.service: expressroute
77
ms.topic: how-to
8-
ms.date: 09/15/2023
8+
ms.date: 04/22/2024
99
ms.author: duau
1010
ms.custom: devx-track-azurecli
1111
---
@@ -98,12 +98,17 @@ This section helps you create, get, update, and delete the Microsoft peering con
9898

9999
4. Configure Microsoft peering for the circuit. Make sure that you have the following information before you continue.
100100

101-
* A /30 subnet for the primary link. The address block must be a valid public IPv4 prefix owned by you and registered in an RIR / IRR.
102-
* A /30 subnet for the secondary link. The address block must be a valid public IPv4 prefix owned by you and registered in an RIR / IRR.
103-
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID.
101+
* A pair of subnets owned by you and registered in an RIR/IRR. One subnet is used for the primary link, while the other will be used for the secondary link. From each of these subnets, you assign the first usable IP address to your router as Microsoft uses the second usable IP for its router. You have three options for this pair of subnets:
102+
* IPv4: Two /30 subnets. These must be valid public IPv4 prefixes.
103+
* IPv6: Two /126 subnets. These must be valid public IPv6 prefixes.
104+
* Both: Two /30 subnets and two /126 subnets.
105+
* Microsoft peering enables you to communicate with the public IP addresses on Microsoft network. So, your traffic endpoints on your on-premises network should be public too. This is often done using SNAT.
106+
> [!NOTE]
107+
> When using SNAT, we advise against a public IP address from the range assigned to primary or secondary link. Instead, you should use a different range of public IP addresses that has been assigned to you and registered in a Regional Internet Registry (RIR) or Internet Routing Registry (IRR). Depending on your call volume, this range can be as small as a single IP address (represented as '/32' for IPv4 or '/128' for IPv6).
108+
* A valid VLAN ID to establish this peering on. Ensure that no other peering in the circuit uses the same VLAN ID. For both Primary and Secondary links you must use the same VLAN ID.
104109
* AS number for peering. You can use both 2-byte and 4-byte AS numbers.
105-
* Advertised prefixes: Provide a list of all prefixes you plan to advertise over the BGP session. Only public IP address prefixes are accepted. If you plan to send a set of prefixes, you can send a comma-separated list. These prefixes must be registered to you in an RIR / IRR.
106-
* **Optional -** Customer ASN: If you're advertising prefixes that are not registered to the peering AS number, you can specify the AS number to which they're registered with.
110+
* Advertised prefixes: You provide a list of all prefixes you plan to advertise over the BGP session. Only public IP address prefixes are accepted. If you plan to send a set of prefixes, you can send a comma-separated list. These prefixes must be registered to you in an RIR / IRR.
111+
* **Optional -** Customer ASN: If you're advertising prefixes not registered to the peering AS number, you can specify the AS number to which they're registered with.
107112
* Routing Registry Name: You can specify the RIR / IRR against which the AS number and prefixes are registered.
108113
* **Optional -** An MD5 hash if you choose to use one.
109114

0 commit comments

Comments
 (0)