R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)
243
Ste
p
Command
Remarks
3. Configure preferences for
EBGP, IBGP, and local BGP
routes.
preference { external-preference
internal-preference
local-preference | route-policy
route-policy-name }
The default preferences for EBGP,
IBGP, and local BGP routes are
255, 255, and 130.
4. Configure an EBGP route as a
shortcut route.
network ipv6-address prefix-length
short-cut
By default, an EBGP route has a
preference of 255.
Configuring the default local preference
The local preference is used to determine the optimal route for traffic leaving the local AS. When a BGP
router obtains from several IBGP peers multiple routes to the same destination, but with different next
hops, it considers the route with the highest local preference as the optimal route.
This task allows you to specify the default local preference for routes sent to IBGP peers.
To specify the default local preference (IPv4 unicast/multicast address family):
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter BGP IPv4 unicast address
family view, BGP-VPN IPv4
unicast address family view, or
BGP IPv4 multicast address
family view.
• Enter BGP IPv4 unicast address
family view:
a. bgp as-number
b. address-family ipv4
[ unicast ]
• Enter BGP-VPN IPv4 unicast
address family view:
c. bgp as-number
d. ip vpn-instance
vpn-instance-name
e. address-family ipv4
[ unicast ]
• Enter BGP IPv4 multicast
address family view:
f. bgp as-number
g. address-family ipv4
multicast
N/A
3. Configure the default local
preference.
default local-preference value
The default local preference is
100.
To specify the default local preference (IPv6 unicast/multicast address family):
Step Command Remarks
1. Enter system view.
system-view N/A