| title | Configure Route-maps for virtual hubs | ||
|---|---|---|---|
| titleSuffix | Azure Virtual WAN | ||
| description | Learn how to configure Route-maps for Virtual WAN virtual hubs. | ||
| author | cherylmc | ||
| ms.service | azure-virtual-wan | ||
| ms.topic | how-to | ||
| ms.date | 03/04/2024 | ||
| ms.author | cherylmc | ||
| ms.custom |
|
This article helps you create or edit a route-map in an Azure Virtual WAN hub using the Azure portal. For more information about Virtual WAN Route-maps, see About Route-maps.
Verify that you've met the following criteria before beginning your configuration:
- You have virtual WAN (VWAN) with a connection (S2S, P2S, or ExpressRoute) already configured.
- For steps to create a VWAN with a S2S connection, see Tutorial - Create a S2S connection with Virtual WAN.
- For steps to create a virtual WAN with a P2S User VPN connection, see Tutorial - Create a User VPN P2S connection with Virtual WAN.
- Be sure to view About Route-maps for considerations and limitations before proceeding with configuration steps.
-
Create a virtual WAN.
-
Create all Virtual WAN virtual hubs needed for testing.
-
Deploy any site-to-site VPN, point-to-site VPN, ExpressRoute gateways, and NVAs needed for testing.
-
Verify that incoming and outgoing routes are working as expected.
-
Configure a route-map and route-map rules, then save. For more information about route-map rules, see About Route-maps.
-
Once a route-map is configured, the virtual hub router and gateways begin an upgrade needed to support the Route-maps feature.
- The upgrade process takes around 30 minutes.
- The upgrade process only happens the first time a route-map is created on a hub.
- Once the virtual hub router and gateways are upgraded to this new software version, the following applies:
- Your virtual hub will support ExpressRoute ECMP for outbound traffic flows. For more information, see About ExpressRoute ECMP.
- Your spoke virtual network prefixes need to be in the Default route table to be advertised to on-premises. You can achieve this by ensuring your virtual network connections are propagating to the Default route table.
- If the route-map is deleted, the virtual hub router remains on the new version of software.
- Using Route-maps incurs an additional charge. For more information, see the Pricing page.
-
The process is complete when the Provisioning state is Succeeded. Open a support case if the process failed.
-
The route-map can now be applied to connections (ER, S2S VPN, P2S VPN, VNet).
-
Once the route-map is applied in the correct direction, use the Route-map dashboard to verify that the route-map is working as expected.
The following steps walk you through how to configure a route-map.
-
In the Azure portal, go to your Virtual WAN resource. Select Hubs to view the list of hubs.
-
Select the hub that you want to configure to open the Virtual Hub page.
-
On the Virtual Hub page, in the Routing section, select Route-maps to open the Route-maps page. On the Route-maps page, select + Add Route-map to create a new route-map.
-
On the Create Route-map page, provide a Name for the route-map.
-
Then, select + Add Route-map to create rules in the route-map.
-
On the Create Route-map rule page, complete the necessary configuration.
-
Name – Provide a name for the route-map rule.
-
Next step – From the dropdown, select Continue if routes matching this rule must be processed by subsequent rules in the route-map. If not, select Terminate.
-
Match conditions – Each Match Condition requires a Property, Criterion, and a Value. There can be 0 or more match conditions.
- To add a new match condition, select the empty row in the table.
- To delete a row, select delete icon at the end of the row.
- To add multiple values under Value, use comma (,) as the delimiter. Refer to About Route-maps for list of supported match conditions.
-
Actions > Action on match routes – Select Drop to deny the matched routes, or Modify to permit and modify the matched routes.
-
Actions > Route modifications – Each Action statement requires a Property, an Action, and a Value. There can be 0 or more route modification statements.
- To add a new statement, select the empty row in the table.
- To delete a row, select delete icon at the end of the row.
- To add multiple values under Value, use comma (,) as the delimiter. Refer to About Route-maps for list of supported actions.
:::image type="content" source="./media/route-maps-how-to/rule.png" alt-text="Screenshot shows Create Route-map rule page." lightbox="./media/route-maps-how-to/rule.png":::
-
-
Select Add to complete rule configuration. When you select Add, this stores the rule temporarily on the Azure portal, but isn't saved to the route-map yet. Select Okay on the Reminder dialog box to acknowledge that the rule isn't completely saved yet and proceed to the next-step.
-
Repeat steps 6 and 7 to add additional rules, if necessary.
-
On the Create Route-map page, after all the rules are added, ensure that the order of the rules is as desired. Adjust the rules as necessary by hovering your mouse on a row, then clicking and holding the 3 dots and dragging the row up or down. When you finish adjusting the rule order, select Save to save all the rules to the route-map.
:::image type="content" source="./media/route-maps-how-to/adjust-order.png" alt-text="Screenshot shows how to adjust the order of rules." lightbox="./media/route-maps-how-to/adjust-order.png":::
-
It takes a few minutes to save the route-map and the route-map rules. Once saved, the Provisioning state shows Succeeded.
Once the route-map is saved, you can apply the route-map to the desired connections in the virtual hub.
-
On the Route-maps page, select Apply Route-maps to connections.
:::image type="content" source="./media/route-maps-how-to/apply-to-connections.png" alt-text="Screenshot shows Apply Route-maps to connections." lightbox="./media/route-maps-how-to/apply-to-connections.png":::
-
On the Apply Route-maps to connections page, configure the following settings.
- Select the drop-down box under Inbound Route-map and select the route-map you want to apply in the ingress direction.
- Select the drop-down box under Outbound Route-map and select the route-map you want to apply in the egress direction.
- The table at the bottom lists all the connections to the virtual hub. Select one or more connections you want to apply the route-maps to.
:::image type="content" source="./media/route-maps-how-to/save.png" alt-text="Screenshot shows configuring and saving settings." lightbox="./media/route-maps-how-to/save.png":::
-
When you finish configuring these settings, select Save.
-
Verify the changes by opening Apply Route-maps to connections again from the Route-maps page.
:::image type="content" source="./media/route-maps-how-to/verify.png" alt-text="Screenshot shows Apply Route-maps to connections page to verify changes." lightbox="./media/route-maps-how-to/verify.png":::
-
Once the route-map is applied in the correct direction, use the Route-map dashboard to verify that the route-map is working as expected.
-
To modify or remove an existing Route-map, go to the Route-maps page.
-
On the line for the route-map that you want to work with, select … > Edit or … > Delete, respectively.
:::image type="content" source="./media/route-maps-how-to/edit.png" alt-text="Screenshot shows how to modify or remove a route-map or rules." lightbox="./media/route-maps-how-to/edit.png":::
To modify or remove an existing Route-map rule, use the following steps.
-
On the Route-maps page, at the top, select Apply Route-maps to connections.
-
On Apply Route-maps to connections page, select the connection you want to modify via the checkbox on the left.
-
Change the Inbound Route-map and Outbound Route-map dropdowns to the appropriate Route-maps or set to None for the connections you want to remove the Route-map for. In this example, we're removing the inbound Route-map from a branch VPN connection.
:::image type="content" source="./media/route-maps-how-to/remove-route-map-final.png" alt-text="Screenshot shows removing a route-map from a connection in the Azure portal." lightbox="./media/route-maps-how-to/remove-route-map-final.png":::
-
Once completed, select Save.
-
Verify the changes by opening Apply Route-maps to connections and using the Route-maps dashboard.
:::image type="content" source="./media/route-maps-how-to/remove-route-map-results-final.png" alt-text="Screenshot shows that the route-map is removed from the connection in the Azure portal." lightbox="./media/route-maps-how-to/remove-route-map-results-final.png":::
The following section describes common issues encountered when you configure Route-maps on your Virtual WAN hub.
[!INCLUDE Route-maps troubleshooting]
- Use the Route-maps dashboard to monitor routes, AS Path, and BGP communities.
- To learn more about Route-maps, see About Route-maps.