Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

BYOIP - FFR BGP Guide

chrisbishuk

New member
Olilo Allies
Joined
Apr 10, 2025
Messages
6
The following is a small guide for those are are Bringing their own IP's and announcing via BGP.


🛟 What is BGP?
Border Gateway Protocol (BGP) is the postal service of the Internet. When someone drops a letter into a mailbox, the Postal Service processes that piece of mail and chooses a fast, efficient route to deliver that letter to its recipient. Similarly, when someone submits data via the Internet, BGP is responsible for looking at all of the available paths that data could travel and picking the best route, which usually means hopping between autonomous systems. - Cloudflare

🚧 Example Config
Please pay attention to the bold items in the config and replace them with your own values.

The following example is based on the FFR Protocol. (https://frrouting.org/) - Various routers such as Unifi & OpenSence use this protocol for announcing BGP.
router bgp YOUR_ASN
bgp router-id YOUR_IPV4_ADDRESS
bgp graceful-restart
no bgp ebgp-requires-policy
!
neighbor OLILO_NEIGHBOR_ADDRESS remote-as 212683
neighbor OLILO_NEIGHBOR_ADDRESS description OLILO (AS212683)
address-family ipv6 unicast
neighbor OLILO_NEIGHBOR_ADDRESS activate
neighbor OLILO_NEIGHBOR_ADDRESS soft-reconfiguration inbound
neighbor OLILO_NEIGHBOR_ADDRESS route-map IPV6-IN in
neighbor OLILO_NEIGHBOR_ADDRESS route-map IPV6-OUT out
network YOUR_IPV6_PREFIX::/48
exit-address-family
!
ip prefix-list IPV6-DEFAULT-IN seq 5 permit ::/0
ip prefix-list IPV6-DEFAULT-IN seq 10 deny ::/0 le 128
ip prefix-list IPV6-OUR-PREFIX-OUT seq 5 permit YOUR_IPV6_PREFIX::/48
ip prefix-list IPV6-OUR-PREFIX-OUT seq 10 deny ::/0 le 128
route-map IPV6-IN permit 10
match ipv6 address prefix-list IPV6-DEFAULT-IN
exit
!
route-map IPV6-OUT permit 10
match ipv6 address prefix-list IPV6-OUR-PREFIX-OUT
exit
!

A static route will then need to be created for your announced prefixes to either blackhole or null.


vtysh -c 'show bgp summary' on Unifi can be used to show the status of BGP.

IPv6 Unicast Summary:
BGP router identifier 143.14.243.251, local AS number 210985 VRF default vrf-id 0
BGP table version 2
RIB entries 2, using 256 bytes of memory
Peers 1, using 24 KiB of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
2a11:2646:1:3::51 4 212683 12174 11818 2 0 0 4d02h27m 1 1 OLILO (AS212683)

Total number of neighbors 1
If all if correct it should show an established session and the number or prefixes recived and announced.
 
Very nice ❤️
 
Back
Top