![Huawei S6700 Series Configuration Manual Download Page 525](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517525.webp)
8.4.4 Configuring the Default Local_Pref Attribute of the Local
Router
The Local_Pref attribute is used to determine the optimal route for the traffic that leaves an AS.
When a BGP4+ router obtains multiple routes to the same destination address but with different
next hops from different IBGP peers, the route with the largest Local_Pref value is selected.
Context
Do as follows on the BGP4+ router:
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:
ipv6-family
[
unicast
]
The BGP IPv6 unicast address family view is displayed.
Step 4
Run:
default local-preference
preference
The default Local_Pref of the local router is configured.
----End
8.4.5 Configuring the MED Attribute
The MED attribute serves as the metric used by an IGP. After MED attributes are set, EBGP
peers select the route with the smallest MED value for the traffic that enters an AS.
Context
Do as follows on the BGP4+ router:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
bgp
as-number
The BGP view is displayed.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
8 BGP4+ Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
506