Configuring Preferences For Bgp Routes; Configure The Default Local Preference - HPE 5800 Series Configuration Manual

Layer 3 - ip routing
Hide thumbs Also See for 5800 Series:
Table of Contents

Advertisement

Step
Enter BGP view or
2.
BGP-VPN instance view.
Specify a preferred value for
3.
routes received from a peer
or peer group.

Configuring preferences for BGP routes

A router may run multiple routing protocols with each having a different 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 shortcut command to configure an EBGP route as a shortcut route that has the
same preference as a local route. The EBGP route is then more likely to become the optimal route.
To configure preferences for BGP routes:
Step
Enter system view.
1.
Enter BGP view or
2.
BGP-VPN instance view.
Configure preferences for
3.
external, internal, local BGP
routes.
Increase the preference of a
4.
received EBGP route.

Configure the default local preference

The local preference is used to determine the best route for traffic leaving the local AS. When a BGP
router obtains multiple routes to the same destination but with different next hops from several IBGP
peers, it considers the route with the highest local preference as the best route.
Command
Enter BGP view:
bgp as-number
Enter BGP-VPN instance
view:
a. bgp as-number
b. ipv4-family
vpn-instance
vpn-instance-name
peer { group-name | ip-address }
preferred-value value
Command
system-view
Enter BGP view:
bgp as-number
Enter BGP-VPN instance
view:
a. bgp as-number
b. ipv4-family
vpn-instance
vpn-instance-name
preference { external-preference
internal-preference
local-preference | route-policy
route-policy-name }
network ip-address [ mask |
mask-length ] short-cut
195
Remarks
Use either approach.
Optional.
By default, the preferred value is
0.
Remarks
N/A
Use either approach.
Optional.
The default preferences of
external, internal, and local BGP
routes are 255, 255, and 130,
respectively.
Optional.
By default, an EBGP route
received has a preference of 255.

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents