H3C Technologies H3C S10500 Series Switches User Manual

Page 221

Advertising
background image

206

Follow these steps to create a BGP connection:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a global router ID

router id router-id

Optional
Not configured by default.
If no global router ID is configured,
the highest loopback interface IP

address—if any—is used as the

router ID. If no loopback interface IP

address is available, the highest
physical interface IP address is used,

regardless of the interface status.

Enable BGP and enter BGP view

bgp as-number

Required
Not enabled by default

Specify a router ID

router-id router-id

Optional
By default, the global router ID is

used.

Specify a peer or a peer group and
its AS number

peer { group-name | ip-address }
as-number as-number

Required
Not specified by default

Enable the default use of IPv4

unicast address family for the peers
that are established using the peer

as-number command

default ipv4-unicast

Optional
Enabled by default

Enable a peer

peer ip-address enable

Optional
Enabled by default

Configure a description for a
peer/peer group

peer { group-name | ip-address }
description description-text

Not configured by default.

NOTE:

A router can reside in only one AS, so the router can run only one BGP process.

You must create a peer group before configuring it.

Specifying the source interface for TCP connections

BGP uses TCP as the transport layer protocol. By default, BGP uses the output interface of the optimal

route to a peer/peer group as the source interface for establishing TCP connections to the peer or peer

group.
If a BGP router has multiple links to a peer, and the source interface fails, BGP must reestablish TCP
connections, causing network oscillation. To enhance stability of BGP connections, H3C recommends

using a loopback interface as the source interface.
Follow these steps to specify the source interface for TCP connections:

To do…

Use the command…

Remarks

Enter system view

system-view

Advertising