Command Manual – Multicast Protocol 
Quidway S8500 Series Routing Switches 
Chapter 7  MBGP Multicast Extension
 Configuration Commands
 
Huawei Technologies Proprietary 
7-4 
You can affect BGP route selection by configuring different local precedence values.  
Example 
# Configure the default local precedence value as 180.  
<Quidway> system-view 
System View: return to User View with Ctrl+Z. 
[Quidway] bgp 100 
[Quidway-bgp] ipv4-family multicast 
[Quidway-bgp-af-mul] default local-preference 180 
7.1.5  default med 
Syntax 
default med med-value 
undo default med 
View 
IPv4 multicast sub-address family view 
Parameter 
med-value: Specifies MED value, in the range of 0 to 4294967295. By default, it is 0.  
Description 
Use the default med command to configure system MED value. 
Use the display bgp multicast group command to restore the default value. 
Multi-exit discriminator (MED) attribute is the external metric for a route. Unlike local 
precedence attribute, MED is exchanged, between ASs, and one it enters an AS, it 
does not leave the AS. MED attribute is used in best route selection. When a router 
running BGP travels through different external peers and get the routes with identical 
destination, but different next-hop addresses, it selects these routes according to their 
MED values. The route with smaller MED value will be selected as the external AS 
route if other attributes are the same. 
Example 
# Configure system MED value as 25. 
<Quidway> system-view 
System View: return to User View with Ctrl+Z. 
[Quidway] bgp 100 
[Quidway-bgp] ipv4-family multicast 
[Quidway-bgp-af-mul] default med 25