The BGP Monitoring Protocol (BMP) monitors BGP4+ running status of devices in real time, such as the establishment and termination status of BGP4+ peer relationships and route update status.
Without BMP, you have to run a query command on a BGP4+ device if you want to learn the BGP4+ running status of the device, which is inconvenient. To improve the network monitoring efficiency, you can configure BMP so that the BGP4+ running status of a client can be monitored by servers.
The system view is displayed.
BMP is started, and the BMP view is displayed.
An interval is set. It determines the frequency at which the device sends BGP4+ running statistics to a monitoring server.
Configure the interval based on BGP4+ stability requirements. In the case of high BGP4+ stability requirements, configure a short interval. However, if the device frequently sends BGP4+ running statistics, a large number of bandwidth resources will be consumed.
An IPv6 BMP session address is specified for the TCP connection to be established between the device and the monitoring server.
alias alias-name specifies an alias for a BMP session. If the device needs to establish multiple TCP connections with the same monitoring server through different port numbers, specify one IPv6 address and different session aliases (through the alias alias-name parameter) for differentiation.
Run the route-mode { ipv6-family unicast | ipv6-family vpnv6 } adj-rib-in { pre-policy | post-policy } command to configure the device to send statistics about RIB-in routes of BGP4+ peers in a specified address family to the monitoring server.
To configure the device to send statistics about all received routes to the monitoring server, specify pre-policy in the command. To configure the device to send statistics about only accepted routes to the monitoring server, specify post-policy in the command.
If pre-policy is specified in the command, run the keep-all-routes command in the BGP view to save the routes carried in the BGP4+ Update messages that are received from all BGP4+ peers or peer groups after BGP4+ connections are established, or run the peer keep-all-routes command to save the routes carried in the BGP4+ Update messages that are received from a specified BGP4+ peer or peer group after the BGP4+ connection is established.
Run the route-mode { ipv6-family unicast | ipv6-family vpnv6 } adj-rib-out { pre-policy | post-policy } command to configure the device to send statistics about RIB-out routes of BGP4+ peers in a specified address family to the monitoring server.
If you want the monitoring server to monitor all the routes to be advertised, regardless of whether they match the export policy, specify pre-policy in the command. If you want the monitoring server to monitor only the advertised routes (those that match the export policy), specify post-policy in the command.
The BMP session view is displayed.
Parameters are configured for the TCP connection to be established between the device and the monitoring server.
To ensure high security, do not use the MD5 algorithm.
The source interface for sending BMP messages is specified.
The configuration is committed.
If a configuration of a BMP session is changed and the new configuration needs to take effect immediately, run the reset bmp session command to reset the BMP session.