connect-interface (BMP session view) (IPv6)

Function

The connect-interface command specifies a source interface to send BMP messages and a source IP address to set up a BMP session.

The undo connect-interface command restores the default configuration.

By default, no source interface is specified to send BMP messages.

Format

connect-interface { interface-name | ipv6-source-address | interface-type interface-number | interface-name ipv6-source-address | interface-type interface-number ipv6-source-address }

undo connect-interface { interface-name | ipv6-source-address | interface-type interface-number | interface-name ipv6-source-address | interface-type interface-number ipv6-source-address }

Parameters

Parameter Description Value
interface-name

Specifies an interface name.

-

ipv6-source-address

Specifies a source IPv6 address to set up a BMP session.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

interface-type

Specifies an interface type and number.

-

interface-number

Specifies an interface type and number.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

BMP session view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bmp write

Usage Guidelines

Usage Scenario

BMP is used to monitor BGP running status of devices in real time, such as the status of BGP peer relationship establishment and termination and route updates.

After a TCP connection is established between a monitoring server and a device to be monitored, the device sends unsolicited BMP messages to the monitoring server to report BGP running statistics. After receiving these BMP messages, the monitoring server parses them and displays the BGP running status in the monitoring view. By analyzing the headers in the BMP messages, the monitoring server can determine from which BGP peer the routes carried in the messages were received. By default, the source interface used to send BMP messages is not specified after a TCP connection is established between a monitoring server and a device to be monitored. If the device encounters a failure, the source interface used to send BMP messages may change. In this case, the monitoring server cannot determine whether the new source interface belongs to a new device. To address this problem, run the connect-interface command to specify a source interface to send BMP messages.

The connect-interface command can be run in both the BMP view and BMP session view. If the command is run in both views, the configuration in the BMP session view takes precedence over that in the BMP view.

Precautions

If the connect-interface command is run more than once, the last configuration overrides the previous one.

In the BMP view, a source IPv4 address to set up a BMP session can be specified using the connect-interface command, whereas no source IPv6 address to set up a BMP session or source interface to send BMP messages can be specified. If the command is run in the BMP view, all IPv4 BMP sessions without a source IP address or source interface configured will be reestablished.

Example

# Specify a source IPv6 address to set up a BMP session.
<HUAWEI> system-view
[~HUAWEI] bmp
[*HUAWEI-bmp] bmp-session 2001:DB8:1::1
[*HUAWEI-bmp-session-2001:DB8:1::1] connect-interface 2001:DB8:1::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >