SD-WAN (Software-Defined Wide Area Network) is a great technology for managing multiple WAN connections, providing path selection, and ensuring application performance. Let's answer your questions:
Question 1: When the primary WAN link (ISP1) goes down, the SD-WAN solution will detect the failure (usually very quickly, within seconds) and will switch over to the secondary WAN link (ISP2) based on the SLA you've configured. Existing sessions may be dropped or interrupted depending on how the SD-WAN solution handles failover, but new sessions will begin utilizing ISP2. How long this takes in default varies by vendor and specific SD-WAN solution, but it's typically in the range of seconds.
However, the challenge here is for incoming connections, especially when DNS or other mechanisms are pointing to your public IP address pool from ISP1. Even if SD-WAN switches the outbound traffic to ISP2, incoming traffic still tries to reach you via ISP1 unless there are some changes in DNS or routing to accommodate the new path.
Question 2: Just because an IP pool (e.g., 88.x.x.x) is registered for you in RIPE doesn't mean it's automatically routable via ISP2. The routing of that IP pool on the global internet depends on BGP advertisements. When you work with ISP1, they advertise your IP range to the rest of the internet. If ISP1 goes down, those BGP advertisements will be withdrawn, and the IP range becomes unreachable.
To make the 88.x.x.x pool reachable via ISP2 when ISP1 is down, you'd need a few things:
- BGP Setup with Both ISPs: You'll need to set up BGP peering with both ISPs and have the capability to advertise the 88.x.x.x range to both ISPs.
- ASN: If you don't already have one, you'd need your Autonomous System Number (ASN). With your ASN, you can announce your IP space via BGP to both ISPs.
- BGP Configuration: You'd need to design and configure BGP in such a way that ISP1 is the preferred path for the 88.x.x.x range, and ISP2 is the backup. This can be achieved using BGP attributes like AS path prepending, MED (Multi Exit Discriminator), etc.
- ISP Agreement: Both ISPs must agree to allow you to advertise the IP space. Not all ISPs will allow you to advertise IP space that isn't directly allocated by them.
If you don't have BGP and these mechanisms in place, then even if ISP1 goes down, the internet will still try to route traffic destined for the 88.x.x.x range via ISP1, and it will be unreachable.
It's a bit complex but achievable with the right setup. If you're looking to implement this, consider consulting with a network professional familiar with BGP and multi-homing setups.