Firewalls and VPNs lab 10 of 16
BGP over redundant tunnels with DPD and BFD
A branch router has one tunnel to a FortiGate and one to a vSRX at head office. Run eBGP over both, prefer the FortiGate in both directions so traffic stays symmetric through one stateful firewall, add BFD and dead peer detection, then break the path to the FortiGate and watch traffic fail over within seconds.
Run this lab
It needs Lite: its 5 nodes are set to 6 vCPU and 7,680 MB in total. That fits the free demo too.
In your workspace: Shared, then Firewalls and VPNs multi-vendor guided labs, then 10 - BGP over redundant tunnels with DPD and BFD
- Level
- Advanced
- Time
- About 110 minutes
- Nodes need
- 6 vCPU, 7,680 MB
- Smallest plan
- Lite
The scenario
Marden Logistics' branch (BR) has two tunnels to head office, already up: Tunnel1 to the FortiGate (the primary firewall) and Tunnel2 to the vSRX (the backup). Static routes would leave the branch blind when a path fails, so the network team wants BGP over both tunnels, a clear primary, and failover in seconds rather than minutes. Behind both firewalls, CORE (AS 65000) already runs BGP to each of them and advertises the server LAN, 10.0.100.0/24.
| Device | AS | Tunnel address | Peers with |
|---|---|---|---|
| BR | 65020 | Tunnel1 169.254.10.1/30, Tunnel2 169.254.10.5/30 | HQ-FGT 169.254.10.2, HQ-SRX 169.254.10.6 |
| HQ-FGT | 65010 | to-BR 169.254.10.2 | BR 169.254.10.1, CORE 10.0.0.1 |
| HQ-SRX | 65011 | st0.0 169.254.10.6/30 | BR 169.254.10.5, CORE 10.0.0.1 |
| CORE | 65000 | (HQ LAN 10.0.0.1/24) | 10.0.0.2 and 10.0.0.3, already configured |
| Requirement | Value |
|---|---|
| Branch prefix | 10.20.0.0/24 (BR Loopback0), advertised to both |
| Primary path | Through HQ-FGT in both directions |
| BFD | 300 ms, multiplier 3, on both BGP sessions to BR |
| DPD | Every 10 s on all three IKE SAs |
The FortiGate tunnel uses DES only because of the evaluation licence; in production use AES-256-GCM with DH 19, 20 or 21.
What you’ll practise
- Run eBGP over IPsec tunnels between IOS, FortiGate and Junos
- Steer both directions with local preference and AS-path prepending, and explain why symmetry matters to stateful firewalls
- Add BFD to the BGP sessions and DPD to the IKE SAs, and compare what each detects
- Simulate an ISP fault and measure the failover
- Verify with show ip bgp, show bfd neighbors, get router info bgp summary and show bgp summary
The tasks
- Check the tunnels
- eBGP over both tunnels
- One primary, both ways
- BFD and DPD
- Fail over
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- ISP
Gi0/0to HQ-FGTport1 - ISP
Gi0/1to HQ-SRXge-0/0/0 - ISP
Gi0/2to BRGi0/0 - HQ-FGT
port2to HQ-LAN (network) - HQ-SRX
ge-0/0/1to HQ-LAN (network) - CORE
Gi0/0to HQ-LAN (network)
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| ISP | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| BR | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| HQ-FGT | Fortinet FortiGate | fortinet-FGT-v7.0.17.M-build0682 | 1 vCPU, 2,048 MB |
| HQ-SRX | Juniper vSRX NextGen template | vsrxng-23.4R2-S3.9 | 2 vCPU, 4,096 MB |
| CORE | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Firewalls and VPNs multi-vendor guided labs.Open
10 - BGP over redundant tunnels with DPD and BFDand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More Firewalls and VPNs labs
Related labs in other courses
CloudLabBox is independent of Check Point, Cisco, CompTIA, Fortinet, Juniper Networks, MikroTik, Netgate and Palo Alto Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.