Edit

Share via


Configure and manage Azure Route Server

This article shows you how to configure and manage Azure Route Server using the Azure portal, Azure PowerShell, or Azure CLI. You learn how to add and remove Border Gateway Protocol (BGP) peers, configure route exchange with virtual network gateways, and manage routing preferences.

Prerequisites

Add a BGP peer

In this section, you learn how to add a BGP peering between your route server and a network virtual appliance (NVA). This establishes a BGP session that allows the route server and NVA to exchange routing information.

  1. Go to the route server that you want to peer with an NVA.

  2. under Settings, select Peers.

  3. Select + Add to add a new peer.

  4. On the Add Peer page, enter the following information:

    Setting Value
    Name A name to identify the peer. It doesn't have to be the same name of the NVA.
    ASN The Autonomous System Number (ASN) of the NVA. For more information, see What Autonomous System Numbers (ASNs) can I use?
    IPv4 Address The private IP address of the NVA.
  5. Select Add to save the configuration.

    Screenshot that shows how to add the NVA to the route server as a peer.

    Once the peer NVA is successfully added, you can see it in the list of peers with a Succeeded provisioning state.

    Screenshot that shows the route server's peers.

    To complete the peering setup, you must configure the NVA to establish a BGP session with the route server using its IP addresses and ASN. You can find the route server's IP addresses and ASN in the Overview page:

    Screenshot that shows the Overview page of a route server.

    Important

    Peer the NVA with both route server instance IPs to ensure virtual network routes are advertised over the NVA connections and achieve high availability.

Configure route exchange with virtual network gateways

In this section, you learn how to enable route exchange between your route server and virtual network gateways (ExpressRoute or VPN) in the same virtual network. This feature is also known as branch-to-branch connectivity.

Important

The Azure VPN gateway must be configured in active-active mode and have the ASN set to 65515. It's not a requirement to have BGP enabled on the VPN gateway to communicate with the route server.

Warning

When you create or delete a route server in a virtual network that contains a virtual network gateway (ExpressRoute or VPN), expect downtime until the operation is complete. If you have an ExpressRoute circuit connected to the virtual network where you're creating or deleting the route server, the downtime doesn't affect the ExpressRoute circuit or its connections to other virtual networks.

  1. Go to the route server that you want to configure.

  2. Under Settings, select Configuration.

  3. Select Enabled for the Branch-to-branch setting and then select Save.

    Screenshot that shows how to enable route exchange in a route server.

Configure routing preference

In this section, you learn how to configure routing preference to control how your route server selects routes when multiple paths are available. Routing preference affects route learning and selection behavior.

  1. Go to the route server that you want to configure.

  2. Under Settings, select Configuration.

  3. Select the routing preference that you want. Available options: ExpressRoute (default), VPN, and ASPath.

  4. Select Save

    Screenshot that shows how to configure routing preference in a route server.

View BGP peer details

In this section, you learn how to view the configuration details of a BGP peer, including its name, ASN, IP address, and provisioning state.

  1. Go to the route server that you want to peer with an NVA.

  2. under Settings, select Peers.

  3. In the list of peers, you can see the name, ASN, IP address, and provisioning state of any of the configured peers.

    Screenshot that shows the configuration of a route server's peer.

View advertised and learned routes

In this section, you learn how to view the routes that your route server advertises to BGP peers and the routes it learns from those peers. This information is useful for troubleshooting routing issues and understanding traffic flow.

Use PowerShell or Azure CLI to view the advertised and learned routes.

Delete a BGP peer

In this section, you learn how to delete an existing BGP peering between your route server and a network virtual appliance (NVA). This removes the BGP session and stops route exchange between the devices.

  1. Go to the route server that you want to delete its NVA peering.

  2. under Settings, select Peers.

  3. Select the ellipses ... next to the peer that you want to delete, and then select Delete.

    Screenshot that shows how to delete a route server's peer.

Delete Azure Route Server

In this section, you learn how to delete an existing Azure Route Server. Deleting a route server removes all BGP peerings and stops all route advertisements.

  1. Go to the route server that you want to delete.

  2. Select Delete from the Overview page.

  3. Select Confirm to delete the route server.

    Screenshot that shows how to delete a route server.

Next steps