Configure advertised gateway prefixes for a virtual network using the Azure portal

In this article, you learn how to add, modify, and remove advertised gateway prefixes on a hub virtual network. Advertised gateway prefixes let you specify summarized CIDR prefixes that Azure hybrid gateways advertise to on-premises networks instead of advertising all individual virtual network and spoke CIDRs.

For more information about this feature, see Advertised gateway prefixes overview.

Prerequisites

Add advertised gateway prefixes

Use the following steps to add summarized gateway prefixes to your hub virtual network.

  1. Sign in to the Azure portal.

  2. In the search box at the top of the portal, enter Virtual networks. Select Virtual networks from the search results.

  3. Select your hub virtual network (the virtual network containing your gateway subnet).

  4. In Settings, select Address space.

  5. In the Advertised gateway prefixes section, select + Add prefix.

  6. Enter the summarized CIDR prefix that covers the address spaces you want to advertise. For example, enter 10.0.0.0/16 to summarize multiple /24 spoke networks.

  7. To add more prefixes, repeat the previous step for each IPv4 or IPv6 CIDR prefix.

  8. Select Save.

Note

For dual-stack (IPv4 + IPv6) virtual networks, add both IPv4 and IPv6 summarized prefixes explicitly.

Modify advertised gateway prefixes

Use the following steps to modify existing advertised gateway prefixes.

  1. Sign in to the Azure portal.

  2. In the search box at the top of the portal, enter Virtual networks. Select Virtual networks from the search results.

  3. Select your hub virtual network.

  4. In Settings, select Address space.

  5. In the Advertised gateway prefixes section, modify the CIDR prefix values as needed.

  6. Select Save.

Remove advertised gateway prefixes

Use the following steps to remove advertised gateway prefixes and revert to the default advertisement behavior.

  1. Sign in to the Azure portal.

  2. In the search box at the top of the portal, enter Virtual networks. Select Virtual networks from the search results.

  3. Select your hub virtual network.

  4. In Settings, select Address space.

  5. In the Advertised gateway prefixes section, select the delete icon next to the prefix you want to remove.

  6. Repeat for each prefix you want to remove.

  7. Select Save.

Note

When all advertised gateway prefixes are removed, gateways revert to the default behavior of advertising all hub and peered spoke virtual network address spaces individually.

Verify configuration

Use the following steps to verify that your summarized prefixes are configured correctly.

  1. Sign in to the Azure portal.

  2. In the search box at the top of the portal, enter Virtual networks. Select Virtual networks from the search results.

  3. Select your hub virtual network.

  4. In Settings, select Address space.

  5. Verify that the summarized prefixes appear in the Advertised gateway prefixes section.