Configuring the as_path attribute, Optimizing mbgp networks, Configuration prerequisites – H3C Technologies H3C S12500 Series Switches User Manual

Page 243: Configuring mbgp soft reset

Advertising
background image

227

Step Command

Remarks

4.

Specify the switch as the next

hop of routes sent to a peer/peer
group.

peer { group-name | ip-address }
next-hop-local

Optional.
By default, the next hop of

routes sent to a MBGP
EBGP peer/peer group is

the advertising router, but

that of routes sent to a
MBGP IBGP peer/peer

group is not.

Configuring the AS_PATH attribute

In general, MBGP checks whether the AS_PATH attribute of a route from a peer contains the local AS

number. If yes, it discards the route to avoid routing loops.
To configure the AS_PATH attribute:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view.

bgp as-number

N/A

3.

Enter IPv4 MBGP address family view. ipv4-family multicast

N/A

4.

Specify the maximum number of times

the local AS number can appear in
routes from the peer/peer group.

peer { group-name | ip-address }
allow-as-loop [ number ]

Optional.
By default, the local AS

number cannot appear in
routes from a peer/peer

group.

5.

Disable BGP from considering the
AS_PATH during best route selection. bestroute as-path-neglect

Optional.
By default, BGP considers
AS_PATH during best route

selection.

6.

Configure updates to a peer/peer
group to not keep private AS numbers.

peer { group-name | ip-address }
public-as-only

Optional.
By default, BGP updates

carry private AS numbers.

Optimizing MBGP networks

This task involves resetting MBGP connections and configuring load balancing.

Configuration prerequisites

Before you configure this task, configure basic MBGP.

Configuring MBGP soft reset

After modifying a route selection policy, you have to reset MBGP connections to make it take effect.

Advertising