peer ebgp-max-hop (BGP view) (IPv6)

Function

The peer ebgp-max-hop command configures a BGP device to establish an EBGP peer relationship with a peer on an indirectly-connected network and set the maximum number of hops between the two devices.

The undo peer ebgp-max-hop command cancels the existing configuration.

By default, an EBGP connection can be set up only on a directly-connected physical link.

Format

peer ipv6-address ebgp-max-hop [ hop-count ]

undo peer ipv6-address ebgp-max-hop

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

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

hop-count

Specifies the maximum number of hops.

The value is an integer ranging from 1 to 255. By default, the maximum number of hops in an EBGP connection is 1. If the specified maximum number of hops is 1, EBGP connection cannot be established between non-directly connected devices. If hop-count is not specified in the peer ebgp-max-hop command, 255 is used as the maximum number of hops in EBGP connections.

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

A directly-connected physical link must be available between EBGP peers. Otherwise, the peer ebgp-max-hop command must be used to allow EBGP peers to establish a TCP connection over multiple hops.

If loopback interfaces are used to establish an EBGP peer relationship, the peer ebgp-max-hop command (max-hop-value >= 2) must be run; otherwise, the peer relationship cannot be established.

Precautions

If the peer ebgp-max-hop command is used on one end of an EBGP connection, it must also be used on the other end.

NOTE:

The configurations of GTSM and EBGP-MAX-HOP affect the TTL values of sent BGP packets, and the configurations of the two functions are mutually exclusive.

Example

# Allow indirectly connected EBGP peer to establish a connection with the local device.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 200
[*HUAWEI-bgp] peer 2001:DB8:1::1 ebgp-max-hop
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >