Skip to main content

How to manage the static routes of a Direct Connect connection

A static route tells the VNet that a network on your side is reached through the Direct Connect. Each route belongs to one connection (a VNet bound to a Direct Connect), and its gateway is always the peer that is carrying the traffic: the primary peer or, after a failover, the backup. You do not choose the gateway; the platform fills it in.

Prerequisites​

  • A VNet bound to the Direct Connect, with the status BOUND. See How to bind a VNet to a Direct Connect.
  • The customer-connect:direct_connect:manage permission to create and edit routes, and customer-connect:direct_connect:delete to delete them.

See the routes of a connection​

The Static Routes column of Active Connections shows up to three destinations of each connection and, when there are more, a +N badge. Hover over the destinations to see the full list, each route with its gateway (gw:) and description.

The full list, with the actions, is on the page of the connection: in Active Connections, click the row of the VNet and open the Static routes tab. The tab shows how many routes there are, and the table has the Destination CIDR, the Gateway, the Description and the date the route was created (Created At). When the traffic is on the IPsec, the gateway shows via IPsec followed by the name of the IPsec.

Create a route​

  1. Open Customer Connect → Direct Connect and click the Direct Connect.

  2. In Active Connections, click the row of the VNet. The page of the connection opens.

  3. Open the Static routes tab and click Create Route.

    Static routes tab of the connection page with two routes, each with its gateway, and the Create Route button highlighted

  4. In Create Static Route, fill in:

    • Destination CIDR: the network on your side, with the mask, such as 10.52.0.0/24.
    • Description (optional): a note of up to 255 characters, such as the site name.

    Create Static Route dialog with Destination CIDR 10.52.0.0/24 and the description Recife office printers

  5. Click Confirm.

The route shows up in the Static routes tab with the gateway of the active peer and starts working right away.

Rules for the destination​

  • It must be a network with the mask, such as 192.168.10.0/24. A single host is written with /32.
  • The default route 0.0.0.0/0 is reserved and cannot be added.
  • The same destination can exist only once in the VNet, even across different Direct Connects. To send a network through another connection, delete the old route first.

Edit the description​

In the Static routes tab, click the pencil icon of the route, change the Description and click Save Changes. The destination cannot be edited: to change it, delete the route and create a new one.

Delete a route​

  1. In the Static routes tab, click the trash icon of the route.
  2. In Delete Route followed by the destination, click Delete.

Traffic to that network stops going through the connection at once. The deletion cannot be undone.

What happens to the routes later​

On your side​

The routes only cover the way out of the VNet. The way back is on your firewall: it needs a route to the VNet network through the Local IP of the connection.