hi team
BGP has the ability to monitor prefix more advanced than snmp , this rfc explains how this feature works :
https://datatracker.ietf.org/doc/html/rfc7854.html
FRR supports it , we can enable it for VyOS-cli too . below I'll show the steps necessary to enable it :
#enable BMP on BGP demon bgpd_options=" --daemon -A 127.0.0.1 -M snmp -M rpki -M bmp"
after you should restart bgp daemon and it allows to configure BMP inside BGP process , here is an example:
# FRR configuration ! frr version 8.1 hostname BGP-BMP bgp router-id 10.10.10.10 bgp log-neighbor-changes no bgp ebgp-requires-policy no bgp default ipv4-unicast no bgp network import-check neighbor 20.20.20.20 remote-as 65050 neighbor 20.20.20.20 update-source dum10 ! address-family ipv4 unicast neighbor 20.20.20.20 activate neighbor 20.20.20.20 soft-reconfiguration inbound exit-address-family ! # BMP settings bmp mirror buffer-limit 512000000 ! bmp targets bmptest bmp stats interval 1000 bmp monitor ipv4 unicast pre-policy bmp connect 127.0.0.1 port 5000 min-retry 1000 max-retry 2000 exit exit
also , it has its own operational-commands :
##FRR BGP-BMP# show bmp BMP state for BGP VRF default: Route Mirroring 0 bytes (0 messages) pending 0 bytes maximum buffer used 512000000 bytes buffer size limit Targets "bmptest": Route Mirroring disabled Route Monitoring IPv4 unicast pre-policy Listeners: Outbound connections: remote state timer ------------------------------------------------------------- 127.0.0.1:5000
also , I leave some reference link about BMP
https://blog.apnic.net/2021/12/14/better-route-monitoring-with-bmp/