Controlling route generation, Configuration prerequisites – H3C Technologies H3C S10500 Series Switches User Manual

Page 222

Advertising
background image

207

To do…

Use the command…

Remarks

Enter BGP view

bgp as-number

Specify the source interface for
establishing TCP connections to a

peer or peer group

peer { group-name | ip-address }
connect-interface interface-type

interface-number

Required
By default, BGP uses the outbound
interface of the best route to the BGP

peer or peer group as the source

interface for establishing a TCP

connection to the peer or peer
group.

NOTE:

To establish multiple BGP connections between two routers, you must specify the source interface for
establishing TCP connections to each peer on the local router; otherwise, the local BGP router may fail to

establish TCP connections to a peer when using the outbound interface of the best route to the peer as the
source interface.

Allowing establishment of eBGP connection to an indirectly

connected peer or peer group

Direct physical links must be available between eBGP peers. If they are not, use the peer ebgp-max-hop

command to establish a TCP connection over multiple hops between two peers.
Follow these steps to allow establishment of eBGP connection to an indirectly connected peer or peer

group:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter BGP view

bgp as-number

Allow the establishment of eBGP
connection to an indirectly

connected peer or peer group

peer { group-name | ip-address }
ebgp-max-hop [ hop-count ]

Optional
Not allowed by default.

NOTE:

Do not configure the peer ebgp-max-hop command if the two eBGP peers are directly connected.

Controlling route generation

Different from IGP, BGP focuses on route generation and advertisement control and optimal route

selection.
Generating BGP routes can be done in the following ways:

Configure BGP to advertise local networks

Configure BGP to redistribute routes from other routing protocols, including the default route

Configuration prerequisites

BGP connections must be created.

Advertising