Configure OVHcloud Connect L3 with BGP
Configure OVHcloud Connect L3 using BGP for dynamic route exchange between your network and OVHcloud
Objective
This guide explains how to configure OVHcloud Connect in L3 mode with BGP. This involves two levels of configuration:
- PoP configuration — The eBGP session between your router and OVHcloud at the Point of Presence.
- AZ extra configuration (BGP) — BGP peering within the OVHcloud AZ for route distribution.
If you prefer static routing instead of BGP, see Configure OVHcloud Connect L3 with static routing.
Requirements
- An active OVHcloud Connect service (status
active) - OVHcloud Connect associated with a vRack — see Associate OVHcloud Connect with your vRack
- An AZ configuration created — see Set up vRack networking
- Your ASN (a public ASN or a private ASN in the range 64512–65534)
- A /30 peering subnet (e.g.
192.0.2.0/30) - OVHcloud API credentials (Application Key, Application Secret, Consumer Key). Refer to the First steps with the OVHcloud API guide.
Log in to your and go to Network > OVHcloud Connect.
Instructions
Overview
- PoP level: An eBGP session between your router (your ASN) and OVHcloud (ASN 35540) over a /30 peering subnet.
- AZ level: A BGP neighbour configured inside the AZ to distribute routes to your OVHcloud services.
Step 1 — Identify your interface ID
Retrieve the interface ID for your OVHcloud Connect service:
Step 2 — Create the PoP configuration (L3)
The PoP configuration establishes the L3 BGP session at the Point of Presence.
Request parameters:
Example request:
The resourceId in the response is your new popId.
Step 3 — Verify the PoP configuration
Once the task completes:
Example response:
From this response, note:
Check the BGP session state:
Step 4 — Create AZ extra configuration (BGP)
After the PoP configuration and the AZ configuration, create a BGP extra configuration to enable BGP route distribution within the AZ.
Enabling BGP at the AZ level disables VRRP on that AZ configuration. BGP handles failover instead. You must establish a BGP session with both OVHcloud device A and device B (up to 4 BGP peers per AZ). By default, BFD (Bidirectional Forwarding Detection) is activated on all AZ BGP sessions — enabling BFD on your side as well is strongly recommended for faster convergence.
Request parameters:
Example request:
Verify the extra configuration:
Example response:
Step 5 — Configure BGP on your router
Configure your physical router to establish the eBGP session with OVHcloud at the PoP. Replace the example values with your actual parameters from Step 3.
Cisco IOS / IOS-XE
Juniper JunOS
Step 6 — Verify the BGP session
From your router
Cisco:
Juniper:
Expected results:
From the OVHcloud API
Check PoP statistics (accepted prefixes):
Run a diagnostic
If the session does not come up, run a peering diagnostic:
Available diagnostic names: diagPeering, diagPeeringExtra, diagRoutes, diagMacs.
Best practices
- Only advertise prefixes you own. Do not leak third-party routes through OVHcloud Connect.
- Apply prefix filters. Use prefix-lists on both import and export to prevent accidental route leaks.
- Set maximum-prefix limits. Protect your router from receiving an unexpected number of routes.
- Use MD5 authentication. If required, configure MD5 on the BGP session for added security.
- Monitor the session. Set up alerts for BGP flaps and session drops — see Monitor your connection.
- For redundant setups. Use Local Preference or AS-path prepending to control primary/backup path selection — see Multi-AZ.
Troubleshooting
Delete configurations
To remove the BGP configuration, delete in reverse order:
Go further
- Set up vRack networking — If you have not configured AZ subnets yet
- Associate OVHcloud Connect with your vRack
- Monitor your connection
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analyzed by our experts.
Join our community of users.