github.com/osrg/gobgp/v3@v3.30.0/docs/sources/bmp.md (about) 1 # BGP Monitoring Protocol 2 3 GoBGP supports [BGP Monitoring Protocol (RFC 7854)](https://tools.ietf.org/html/rfc7854), which provides a convenient interface for obtaining route views. 4 5 ## Prerequisites 6 7 Assume you finished [Getting Started](getting-started.md). 8 9 ## Contents 10 11 - [Configuration](#configuration) 12 - [Verification](#verification) 13 14 ## Configuration 15 16 Add `[bmp-servers]` session to enable BMP. 17 18 ```toml 19 [global.config] 20 as = 64512 21 router-id = "192.168.255.1" 22 23 [[bmp-servers]] 24 [bmp-servers.config] 25 address = "127.0.0.1" 26 port=11019 27 ``` 28 29 The supported route monitoring policy types are: 30 31 - pre-policy (Default) 32 - post-policy 33 - both (Obsoleted) 34 - local-rib 35 - all 36 37 Enable post-policy support as follows: 38 39 ```toml 40 [[bmp-servers]] 41 [bmp-servers.config] 42 address = "127.0.0.1" 43 port=11019 44 route-monitoring-policy = "post-policy" 45 ``` 46 47 Enable all policies support as follows: 48 49 ```toml 50 [[bmp-servers]] 51 [bmp-servers.config] 52 address = "127.0.0.1" 53 port=11019 54 route-monitoring-policy = "all" 55 ``` 56 57 To enable BMP stats reports, specify the interval seconds to send statistics messages. 58 The default value is 0 and no statistics messages are sent. 59 Please note the range of this interval is 15 though 65535 seconds. 60 61 ```toml 62 [[bmp-servers]] 63 [bmp-servers.config] 64 address = "127.0.0.1" 65 port=11019 66 statistics-timeout = 3600 67 ``` 68 69 To enable route mirroring feature, specify `true` for `route-mirroring-enabled` option. 70 Please note this option is mainly for debugging purpose. 71 72 ```toml 73 [[bmp-servers]] 74 [bmp-servers.config] 75 address = "127.0.0.1" 76 port=11019 77 route-mirroring-enabled = true 78 ``` 79 80 ## Verification 81 82 Let's check if BMP works with a bmp server. You can find some OSS BMP server implementations such as [yambp](https://github.com/smartbgp/yabmp), [OpenBMP](https://github.com/SNAS/openbmp), etc.