![Huawei S6700 Series Скачать руководство пользователя страница 593](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517593.webp)
No.
Data
3
Preferred value
4
Local_Pref
5
MED of MBGP routes
9.6.2 Setting Preferred Values of Routes Learned from Peers
You can set a preferred value for each route and thus when the MBGP routing table contains
multiple routes to the same destination, the route with the greatest preferred value is selected.
Context
Do as follows on the switch configured with an MBGP peer:
NOTE
The configuration is optional. By default, the preferred value is 0.
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:
peer
{
group-name
|
ipv4-address
}
preferred-value
value
The preferred value is set for a route learnt from an MBGP peer group or a remote MBGP peer.
The route with the greatest preferred value is selected as the route to a specified network.
The parameters of the command are explained as follows:
l
group-name
: specifies the name of an MBGP peer group.
l
ipv4-address
: specifies the IP address of a remote MBGP peer.
----End
9.6.3 Configuring the Preference of an MBGP Route
By configuring the preference of the MBGP protocol, you can control route selection of MBGP
and other types protocols.
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.
574