Context
Do as follows on the switch configured with an MBGP peer:
NOTE
The configuration is optional. By default, the default preferences of EBGP routes, IBGP routes, and local
routes are 255.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
bgp as-number
The BGP view is displayed.
Step 3 Run:
ipv4-family multicast
The BGP-IPv4 multicast address family view is displayed.
Step 4 Run:
preference { external internal local | route-policy route-policy-name }
The preferences of internal, external and local routes are set. The smaller the preference value,
the higher the preference.
The parameters of the command are explained as follows:
l external: specifies the preference of the route learned from an EBGP peer.
l internal: specifies the preference of the route learned from an IBGP peer.
l local: specifies the preference of the local originated route.
l route-policy route-policy-name: specifies the routing policy. The configuration is applicable
to the specific routes that meet certain matching conditions.
----End
9.6.4 Configuring the Local-Pref of an MBGP Route
The Local_Pref attribute is used to determine the optimal route to the destination when the packet
leaves the current AS. When an MBGP device obtains multiple routes to the same destination
address but with different next hops through IBGP peers, it selects the route with the largest
Local_Pref value.
Context
Do as follows on the switch configured with an MBGP peer:
NOTE
The configuration is optional. By default, the Local_Pref value of the MBGP route is 100.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 9 MBGP Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
575