(Optional) Configuring the Local Interface for a BGP4+ Connection

When loopback interfaces are used to establish a BGP4+ connection between two peers, the local interface used for the BGP4+ connection needs to be configured on the devices.

Context

To improve the reliability and stability of a BGP4+ connection, the local interfaces used for the BGP4+ connection should be configured as loopback interfaces. When redundant links are available on the network, the BGP4+ connection will not be torn down if an interface or a link fails.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run peer { ipv6-address | group-name } connect-interface interface-type interface-number [ ipv6-source-address ]

    The source interface and source address used to set up a TCP connection are specified.

    BGP4+ uses the physical interface that is directly connected to the peer as the local interface of a TCP connection.

    When multiple peer relationships between two routers are established through various links, running the peer connect-interface command to specify the local interface for a BGP4+ connection is recommended.

  4. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >