peer timer connect-retry (BGP-VPN instance view) (group)

Function

The peer timer connect-retry command sets a ConnectRetry interval for a peer group.

The undo peer timer connect-retry command restores the default setting.

By default, the ConnectRetry interval is 32s.

Format

peer group-name timer connect-retry connect-retry-time

undo peer group-name timer connect-retry

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

connect-retry-time

Specifies a ConnectRetry interval.

The value ranges from 1 to 65535, in seconds.

Views

BGP-VPN instance view, BGP multi-instance VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

When BGP initiates a TCP connection, the ConnectRetry timer is stopped if the TCP connection is established successfully. If the attempt to establish a TCP connection fails, BGP tries again to establish the TCP connection after the ConnectRetry timer expires. The ConnectRetry interval can be adjusted as needed.

  • The ConnectRetry interval can be reduced in order to lessen the time BGP waits to retry establishing a TCP connection after the first attempt fails.
  • To suppress route flapping caused by constant peer flapping, the ConnectRetry interval can be increased to accelerate route convergence.

Prerequisites

The peer as-number command has been used to create a peer group.

Precautions

BGP supports the configuration of the connection retransmission interval for a single neighbor, a peer group, and the entire system. The priority of the connection retransmission interval for a single peer takes precedence over a global configuration. To change the retransmission interval of a specified peer or peer group, run this command.

  • If both the peer {ipv4-address | ipv6-address} timer connect-retry connect-retry-time and peer group-name timer connect-retry connect-retry-time commands are run on a device and the peer belongs to the peer group, the peer does not inherit the configuration of the peer group.
  • If both the peer {group-name | ipv4-address | ipv6-address} timer connect-retry connect-retry-time and timer connect-retry connect-retry-time commands are run on a device, the peer or peer group does not inherit the global configuration.

Example

# Set the ConnectRetry interval to 60s for peer group.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpn1
[*HUAWEI-bgp-instance-vpn1] group test
[*HUAWEI-bgp-instance-vpn1] peer test timer connect-retry 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >