![Huawei S6700 Series Скачать руководство пользователя страница 396](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517396.webp)
Step 3
Run:
peer
{
group-name
|
ipv4-address
}
preferred-value
value
A preferred value is set for all the routes learned from a specified peer.
The original preferred value of a route learned from a peer defaults to 0.
If there are multiple routes to the same address prefix, the route with the highest preferred value
is preferred.
----End
7.4.4 Configuring a Default Local_Pref Attribute for a Device
The Local_Pref attribute is used to determine the optimal route for traffic that leaves an AS.
Context
The Local_Pref attribute is used to determine the optimal route for traffic that leaves an AS. If
a BGP device obtains multiple routes from different IBGP peers and these routes have different
next hops to the same destination, the BGP device will select the route with the greatest
Local_Pref value.
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
unicast
The IPv4 unicast address family view is displayed.
Step 4
Run:
default local-preference
preference
A default Local_Pref attribute is set for the local device.
----End
7.4.5 Configuring MED Attributes for BGP Routes
The MED attribute equals a metric used in an IGP. The MED attribute is used to determine the
optimal route for traffic that enters an AS. The route with the smallest MED value is selected as
the optimal route if the other attributes of the routes are the same.
Context
The MED attribute equals a metric used in an IGP, and is used to determine the optimal route
for traffic that enters an AS. If a BGP device obtains multiple routes from different EBGP peers
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
7 BGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
377