route-mode adj-rib-in (BMP monitor view)(vpnv4/vpnv6)

Function

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.

Format

route-mode { ipv4-family vpnv4 | ipv6-family vpnv6 } { adj-rib-in | adj-rib-out } { pre-policy | post-policy }

undo route-mode { ipv4-family vpnv4 | ipv6-family vpnv6 } { adj-rib-in | adj-rib-out } { pre-policy | post-policy }

Parameters

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.

-

Views

BMP monitor view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bmp write

Usage Guidelines

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:

  • monitor public: The BMP device sends statistics about RIB-in and RIB-out routes of all BGP peers in a specified public network address family to the monitoring server.
  • monitor peer: The BMP device sends statistics about RIB-in and RIB-out routes of a specified BGP peer in a specified public network address family to the monitoring server.

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.

Example

# Configure the BMP device to send statistics about all the routes to be advertised to all BGP peers in the VPNv4 address family to the monitoring server.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >