![Huawei S6700 Series Configuration Manual Download Page 390](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517390.webp)
–
IP address of a loopback interface on a reachable peer
–
IP address of a sub-interface on a directly-connected peer
4.
Run:
peer
ipv4-address
connect-interface
interface-type
interface-number
[
ipv4-source-address
]
The source interface and source address are specified for establishing a TCP
connection.
By default, BGP uses the physical interface that is directly connected to the peer as
the local interface of a TCP connection.
NOTE
When loopback interfaces are used to establish a BGP connection, run the
peer connect-
interface
command at both ends of the connection to ensure that the connection is correctly
established. If this command is run on only one end, the BGP connection may fail to be
established.
5.
(Optional) Run:
peer
ipv4-address
description
description-text
A description is configured for the peer.
Configuring a description for a peer simplifies network management.
l
Configure an EBGP peer.
1.
Run:
system-view
The system view is displayed.
2.
Run:
bgp
as-number
The BGP view is displayed.
3.
Run:
peer
ipv4-address
as-number
as-number
The IP address of a peer and the number of the AS where the peer resides are specified.
The number of the AS where the specified peer resides must be different from that of
the local AS.
The IP address of the specified peer can be one of the following types:
–
IP address of an interface on a directly-connected peer
–
IP address of a loopback interface on a reachable peer
–
IP address of a sub-interface on a directly-connected peer
4.
(Optional) Run:
peer
ipv4-address
connect-interface
interface-type
interface-number
[
ipv4-source-address
]
The source interface and source address are specified for establishing a TCP
connection.
By default, BGP uses the physical interface that is directly connected to the peer as
the local interface of a TCP connection.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
7 BGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
371