Configuring Preferences For Bgp Routes - HP FlexFabric 12900E Series Configuration Manual

Hide thumbs Also See for FlexFabric 12900E Series:
Table of Contents

Advertisement

Step
3.
Set a preferred value for
routes received from a peer
or peer group.

Configuring preferences for BGP routes

Routing protocols each have a default preference. If they find multiple routes destined for the same
network, the route found by the routing protocol with the highest preference is selected as the
optimal route.
You can use the preference command to modify preferences for EBGP, IBGP, and local BGP routes,
or use a routing policy to set a preference for matching routes. For routes not matching the routing
policy, the default preference applies.
If a device has an EBGP route and a local BGP route to reach the same destination, it does not select
the EBGP route because the EBGP route has a lower preference than the local BGP route by default.
You can use the network short-cut command to configure the EBGP route as a shortcut route that
has the same preference as the local BGP route. The EBGP route will more likely become the
optimal route.
To configure preferences for BGP routes (IPv4 unicast/multicast address family):
Step
1.
Enter system view.
2.
Enter BGP IPv4 unicast
address
BGP-VPN
address family view, or BGP
IPv4 multicast address family
view.
3.
Configure preferences for
EBGP, IBGP, and local BGP
routes.
Command
peer { group-name | ipv6-address
[ prefix-length ] } preferred-value
value
Command
system-view
Enter
address family view:
a. bgp
b. address-family
Enter BGP-VPN IPv4 unicast
address family view:
c. bgp
family
view,
IPv4
unicast
d. ip
e. address-family
Enter BGP IPv4 multicast
address family view:
f. bgp
g. address-family
preference { external-preference
internal-preference
local-preference | route-policy
route-policy-name }
BGP IPv4
unicast
as-number
[
instance
instance-name
[ multi-session-thread ]
ipv4
[ unicast ]
as-number
[
instance
instance-name
[ multi-session-thread ]
vpn-instance
vpn-instance-name
ipv4
[ unicast ]
as-number
[
instance
instance-name
[ multi-session-thread ]
ipv4
multicast
241
Remarks
The default preferred value is 0.
Remarks
N/A
]
]
N/A
]
The
default
preferences
EBGP, IBGP, and local BGP
routes are 255, 255, and 130.
for

Advertisement

Table of Contents
loading

Table of Contents