BGP Service configuration
Objective
BGP Service allows you to build highly available infrastructures by running standard BGP (Border Gateway Protocol) straight from your OVHcloud hosts. It can be used with OVHcloud Additional IP or with your own IP addresses, by using Bring Your Own IP (BYOIP).
Important: BGP Service is currently in alpha phase. This product is not intended to be used in a production environment.
Requirements
- At least one Bare Metal dedicated server from the following ranges: High Grade, Scale, Advance Gen3. All servers that will participate in the BGP peering must be in the same 1-AZ Region.
- Access to the OVHcloud Control Panel
- If you use Bring Your Own IP (BYOIP): IP prefixes that you own and can announce
- A vRack private network
- Knowledge in IP networks and BGP routing protocol
- Knowledge in Linux networking
Instructions
Step 1: Join the Alpha
First, you need to request to join the alpha on the following page. After we receive your application, we will contact you by email.
Step 2: Prepare your IP addresses
You need to either buy Additional IP from OVHcloud or use your own IPs with BYOIP.
If you buy Additional IPs from us, you MUST NOT associate them to any service (e.g. Bare Metal).
If you need to import your IPs, you need to use our BYOIP service. Please follow this documentation to import your IPs to OVHcloud.
Step 3: Configure your vRack
You need to have created a vRack, which is the private network where the peering between your servers and the BGP service will take place.
The vRack must contain the servers that will participate in the BGP peering.
Important: the vRack must contain only servers in one given AZ of a region. As during the alpha period, the BGP service is only available on 1-AZ regions, this simply means that the vRack must contain only servers in one given region.
Step 4: Provide configuration parameters of your BGP Service
You need to provide us with the following parameters so that we can configure the BGP service on the OVHcloud side:
| Parameter | Value (example) | Description | Comment |
|---|---|---|---|
| Location | RBX | The location on which to deliver the service | |
| vRack ID | 937 | vRack ID on which the BGP sessions will run | |
| BYOIP | Y | IP prefix coming from the customer | |
| IP prefix | 198.51.100.0/24 | The public IP prefix to be used. Subsets of this prefix may be announced: • For IPv4, any subset up to /32 • For IPv6, any subset up to /64 | Allowed prefix size: • OVHcloud IP (/24 to /30) • BYOIP imported prefix (/24 to /30) • IPv6 (/56) |
| Private prefix | 10.0.0.0 | Reserved prefix for BGP peer IPs The 4 last addresses will be used by OVHcloud for OVHcloud side BGP peers. | IPv4: Netmask /28 IPv6: Netmask /124 |
| Peering IP 1 | 10.0.0.1 | Customer IP should be explicitly specified by customer (for OVHcloud-side monitoring) | |
| Peering IP 2 | 10.0.0.2 | Customer IP should be explicitly specified by customer (for OVHcloud-side monitoring) | |
| Peering IP 3 | 10.0.0.3 | Customer IP should be explicitly specified by customer (for OVHcloud-side monitoring) | |
| Peering IP 4 | 10.0.0.4 | Customer IP should be explicitly specified by customer (for OVHcloud-side monitoring) |
Step 5: BGP Service delivery
We will then contact you back to notify you that the service is ready to use, and give you the following parameters that are needed on your side:
- OVHcloud Edges IPs (4 IPs)
- Customer AS and OVHcloud AS to use for the BGP peering sessions
- BFD parameters
Important: during the alpha phase, we cannot commit on a specific delivery time. Delivery can take up to several weeks.
Step 6: Customer-side setup
You now are able to setup the BGP sessions on your side. Below is a guide that walks you through a typical setup for simple load balancing using BGP ECMP.
Important: OVHcloud is not responsible for the configuration of the BGP daemaon on the customer's hosts. It is the responsability of the customer to configure the BGP daemon on his hosts. We provide example configurations for your consideration.
Use case: Basic BGP Configuration - Load Balancing using BGP ECMP
Here is a simple architecture that allows you to perform load balancing of your traffic on 3 hosts:

To achieve this setup, you need to install a BGP daemon, like FRR, on each host, and configure it.
Configuration parameters
The following parameters are to be substituted in your router configuration files with those agreed on with OVHcloud during the configuration and delivery steps.
| Parameter | Description |
|---|---|
| OVHcloud_ASN | Private ASN used on OVHcloud Edges |
| CUSTOMER_ASN | Private ASN given by OVHcloud. |
| CUSTOMER_PREFIX_V4 CUSTOMER_PREFIX_V6 | Public prefixes allocated for IPv4 and IPv6 usages |
| RS_IPV4 RS_IPV6 | Customer RS IP addresses in private/ULA range used for BGP peering and connectivity inside the vRack. |
| EDGE_IPV4 EDGE_IPV6 | OVHcloud Edges IP addresses in private/ULA range used for BGP peering and connectivity inside the customer vRack. |
| HOST_IPV4 HOST_IPV6 | Other Customer Hosts IP addresses in private/ULA range used as BGP Next Hop and peer inside the vRack |
Configuring a BGP Daemon (FRR)
To configure the BGP sessions using FRR, follow these next steps.
Step 1: Install FRR
On a Debian-based system, install FRR with:
Step 2: Configure FRR
All of the following parameters should be present in the /etc/frr/frr.conf configuration file of the hosts.
Prefix list and Route Map Configuration
The configuration below is a suggested setup to prevent any unexpected announcement between BGP peers.
In the following example:
- Hosts only accept default routes from OVHcloud Edges.
- Hosts advertise customer's prefixes to OVHcloud Edges.
Related prefix lists and route maps to filter routes:
BFD Configuration
The configuration below is a suggested setup to improve BGP convergence time between Host and Edges over vRack.
BGP Configuration
Global configuration:
BGP peering with OVHcloud Edge:
Step 3: Restart FRR
After editing the configuration, restart FRR to apply changes:
Step 4: Verify BGP Session
Check the status of your BGP session with:
Step 5: Verify Ingress and Egress Connectivity
To ensure your BGP session is functioning correctly, test both inbound and outbound traffic:
- Check Ingress Traffic (Incoming)
Use a remote server to ping or traceroute to your advertised IP prefix:
Verify that traffic reaches your network via the expected BGP paths.
- Check Egress Traffic (Outgoing)
From your server, check the routing table and ensure your BGP routes are in use:
Confirm that outbound traffic is following the correct BGP paths.
Step 6: Verify connectivity with the OVHcloud team
When your setup is done and after conducting basic tests, you should notify us via email at this address: bgp_alpha@ovh.net.
We'll make sure the BGP connectivity and IP announcements are OK from our side.
Use Case: Advanced BGP configuration using Route Servers (RS)
If you want to use more than 4 hosts with BGP Service, you need to deploy and manage a Route Server (RS). The RS must deployed on a dedicated host. An RS peers with Edges and Hosts, establishing two sessions per peer (one for IPv4 and one for IPv6).
Here is an overview of the system:

And here is a detailed view of the BGP sessions between Edges, RS and Hosts:

To achieve this setup, you need to install a BGP daemon, like FRR, on each host, and configure it.
Configuration parameters
The following parameters are to be substituted in your router configuration files with those agreed on with OVHcloud during the configuration and delivery steps.
| Parameter | Description |
|---|---|
| OVHcloud_ASN | Private ASN used on OVHcloud Edges |
| CUSTOMER_ASN | Private ASN given by OVHcloud |
| CUSTOMER_PREFIX_V4 CUSTOMER_PREFIX_V6 | Public prefixes allocated for IPv4 and IPv6 usages |
| RS_IPV4 RS_IPV6 | Customer RS IP addresses in private/ULA range used for BGP peering and connectivity inside the vRack |
| EDGE_IPV4 EDGE_IPV6 | OVHcloud Edges IP addresses in private/ULA range used for BGP peering and connectivity inside the customer vRack |
| HOST_IPV4 HOST_IPV6 | Other Customer Hosts IP addresses in private/ULA range used as BGP Next Hop and peer inside the vRack |
Configuring a BGP Daemon (FRR)
To configure the BGP sessions using FRR, follow the steps below.
Step 1: Install FRR
On a Debian-based system, install FRR with:
Step 2: Configure FRR
FRR configuration for Route Servers
All of the following parameters should be present in the /etc/frr/frr.conf configuration file of the route server(s).
Prefix list and Route Map Configuration
The configuration below is a suggested setup to prevent any unexpected announcement between BGP peers.
Route Servers accept default routes from LBEdges and all routes from Hosts if they match the defined prefix length (cf. OVHcloud rules for IPv4 and IPv6 prefix length). Route Servers advertise Hosts routes to LBEdges and Default routes to Hosts.
Related prefix lists and route maps to filter routes:
BFD Configuration
The configuration below is a suggested setup to improve BGP convergence time between RS and edges over vRack.
BGP peering with OVHcloud Edges:
BGP peering with Hosts:
FRR configuration for Hosts
All of the following parameters should be present in the /etc/frr/frr.conf configuration file of the hosts.
Prefix list and Route Map Configuration
The configuration below is a suggested setup to prevent any unexpected announcement between BGP peers.
In the following example:
- Hosts only accept default routes from RS.
- Hosts only advertise customer's prefixes to RS.
Related prefix lists and route maps to filter routes:
BFD Configuration
The configuration below is a suggested setup to improve BGP convergence time between RS and edges over vRack.
The values below are just an example, and you may choose other values for your RS and Hosts.
BGP Configuration
Global configuration:
BGP peering with RS:
Step 3: Restart FRR
On each host/RS, after editing the configuration, restart FRR to apply changes:
Step 4: Verify BGP Session
Check the status of your BGP sessions on your differents hosts/RS with:
Step 5: Verify Ingress and Egress Connectivity
To ensure your BGP session is functioning correctly, test both inbound and outbound traffic:
- Check Ingress Traffic (Incoming)
Use a remote server to ping or traceroute to your advertised IP prefix:
Verify that traffic reaches your network via the expected BGP paths.
- Check Egress Traffic (Outgoing)
From your server, check the routing table and ensure your BGP routes are in use:
Confirm that outbound traffic is following the correct BGP paths.
Step 6: Verify connectivity with the OVHcloud team
When your setup is done and after conducting basic tests, you should notify us via email at this address: bgp_alpha@ovh.net.
We'll make sure the BGP connectivity and IP announcements are OK from our side.
Limitations
The number of peers on OVHcloud side is limited to 4. If you need more than 4 peers, you will need to install a route server on your infrastructure in order to redistribute routes to your hosts.
- BGP sessions: 4 BGP sessions per client (4 IPv4 + 4 IPv6)
- Prefixes: up to 32 IPv4 prefixes and 32 IPv6 prefixes per client
- Hosts: 10 hosts per client
Available Regions
The product is available in the following regions:
| Region Location | Region Name | Region Type |
|---|---|---|
| Europe (France - Paris) (will be available only in beta) | eu-west-par | 3-AZ |
| Europe (France - Gravelines) | eu-west-gra | 1-AZ |
| Europe (France - Roubaix) | eu-west-rbx | 1-AZ |
| Europe (France - Strasbourg) | eu-west-sbg | 1-AZ |
| Europe (Germany - Limburg) | eu-west-lim | 1-AZ |
| Europe (Poland - Warsaw) | eu-central-waw | 1-AZ |
| Europe (UK - Erith) | eu-west-eri | 1-AZ |
| North America (Canada - East - Beauharnois) | ca-east-bhs | 1-AZ |
| North America (Canada - East - Toronto) | ca-east-tor | 1-AZ |
| Asia-Pacific (Singapore - Singapore) | ap-southeast-sgp | 1-AZ |
| Asia-Pacific (Australia - Sydney) | ap-southeast-syd | 1-AZ |
| Asia-Pacific (India - Mumbai) | ap-south-mum | 1-AZ |
Troubleshooting
If you encounter issues with your BGP session:
- Verify that your ASN and IP prefixes are correctly configured.
- Check for any conflicting announcements.
- Ensure your firewall and network policies allow BGP traffic.
- Contact our team for further assistance by email: bgp_alpha@ovh.net
Go further
Join our community of users.