Skip to content
Contents
GuidesOpenWrt

Compare static routes, BGP and OSPF across three Homelab sites

Two sites can first establish clear static prefixes and return paths.

Two sites can first establish clear static prefixes and return paths. After adding a third site and redundant links, use FRRouting to monitor neighbor relationships and route changes. OSPF manages connections and costs within a single routing domain, while BGP is better suited for scenarios requiring explicit policies at border boundaries.

Only announce your own prefix

Assign a unique ID to each router in the isolated topology. The three sites can first run single Area OSPF; when configuring BGP, use private ASNs with prefix filtering to prevent accidental advertisement of default or management network routes. Record the vtysh neighbors and IPv4 routing table.

Separate the acceptance of dynamic neighbors from actual meter readings

At three experimental sites, first add a static test route as a baseline, then enable the experimental prefix of OSPF or BGP prior to the experiment, and capture the adjacency and kernel routing information.

Use the client to verify the actual path; after disabling an experimental link, observe when the backup route becomes active. Ensure there are no loops or incorrect default routes. Finally, restore the configuration and filtering.

After stopping a neighbor session, the alternate path should take over as designed. If the neighbor is operational but no routes are present, first check prefix advertisement, interface configuration, and import policies.

Start two FRR instances on isolated OpenWrt and check the real BGP adjacency and received prefix. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Start two FRR instances on isolated OpenWrt and check the real BGP adjacency and received prefix. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Start two FRR instances on isolated OpenWrt and check the real BGP adjacency and received prefix. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments