Controlling bgp path selection, Specifying a preferred value for routes received, Configuring preferences for bgp routes – H3C Technologies H3C S12500 Series Switches User Manual

Page 236

Advertising
background image

220

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN
instance view.

Enter BGP view:

bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ipv4-family vpn-instance

vpn-instance-name

Use either method.

3.

Configure BGP route
dampening.

dampening [ half-life-reachable
half-life-unreachable reuse

suppress ceiling | route-policy
route-policy-name ] *

Not configured by default.

Controlling BGP path selection

By configuring BGP path attributes, you can control BGP path selection.

Specifying a preferred value for routes received

This task allows you to modify the preferred value of a route to control BGP path selection.
Among multiple routes that have the same destination/mask and are learned from different peers, the

one with the greatest preferred value is selected as the route to the destination.
To specify a preferred value for routes from a peer or peer group:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN
instance view.

Enter BGP view:

bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ipv4-family vpn-instance

vpn-instance-name

Use either method.

3.

Specify a preferred value for
routes received from a peer or

peer group.

peer { group-name | ip-address }
preferred-value value

Optional.
The preferred value is 0 by default.

Configuring preferences for BGP routes

A router might run multiple routing protocols with each having a preference. If they find the same route,

the route found by the routing protocol with the highest preference is selected.
You can use the preference command to modify preferences for external, internal, and local BGP routes.
By default, the preference of an EBGP route is lower than a local route. If a device has an EBGP route and
a local route to reach a destination, the device does not select the EBGP route. You can use the network

Advertising