The route-mode adj-rib-in command sets the type of RIB-in route whose statistics are to be sent by the BMP device to the monitoring server in a specified address family.
The undo route-mode adj-rib-in command restores the default configuration.
The route-mode adj-rib-in command sets the type of RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in a specified address family.
The undo route-mode adj-rib-in command restores the default configuration.
By default, a BMP device is not enabled to report any routing information to any server.
Parameter | Description | Value |
---|---|---|
ipv4-family |
Sets the type of RIB-in or RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in the IPv4 address family. |
- |
vpnv4 |
Sets the type of RIB-in or RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in the VPNv4 address family. |
- |
ipv6-family |
Sets the type of RIB-in or RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in the IPv6 address family. |
- |
vpnv6 |
Sets the type of RIB-in or RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in the VPNv6 address family. |
- |
pre-policy |
Sends statistics about all received routes to the monitoring server. |
- |
post-policy |
Sends statistics about only accepted routes to the monitoring server. |
- |
Usage Scenario
To set the type of RIB-in route (received from peers) whose statistics are to be sent by the BMP device to the monitoring server in a specified address family, run the route-mode adj-rib-in command. 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 (delivered to the routing table) to the monitoring server, specify post-policy in the command.
To set the type of RIB-out route whose statistics are to be sent by the BMP device to the monitoring server in a specified address family, run the route-mode adj-rib-out command. 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.Prerequisites
Run either of the following commands to enter the BMP-Monitor view:
Precautions
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 BGP Update messages that are received from all BGP peers or peer groups after BGP connections are established, or run the peer keep-all-routes command to save the routes carried in the BGP Update messages that are received from a specified BGP peer or peer group after the BGP connection is established.
<HUAWEI> system-view [~HUAWEI] bmp [*HUAWEI-bmp] bmp-session 10.1.1.1 [*HUAWEI-bmp-session-10.1.1.1] monitor public [*HUAWEI-bmp-session-10.1.1.1-public] route-mode ipv4-family vpnv4 adj-rib-out pre-policy