R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

221
Parameters
value: Specifies the default local preference in the range of 0 to 4294967295. A larger the value
represents a higher preference.
Usage guidelines
Using this command can affect BGP route selection.
Examples
# In BGP view, set the default local preference to 180.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default local-preference 180
# In BGP-VPN instance view, set the default local preference to 180. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] default local-preference 180
default med (BGP/BGP-VPN instance view)
Use default med to specify a default MED value.
Use undo default med to restore the default.
Syntax
default med med-value
undo default med
Default
The default med-value is 0.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
med-value: Specifies the default MED value in the range of 0 to 4294967295.
Usage guidelines
Multi-exit discriminator (MED) is an external metric for routes. Different from local preference, MED is
exchanged between ASs and stays in the AS once it enters the AS. The route with a lower MED is
preferred. When a router running BGP obtains several routes with an identical destination but different
next-hops from various external peers, it selects the best route depending on the MED value. In the case
that all other conditions are the same, the system first selects the route with the smallest MED as the best
external route.
Examples
# In BGP view, configure the default MED as 25.
<Sysname> system-view