![H3C S9500 Series Скачать руководство пользователя страница 266](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036266.webp)
Command Manual – MPLS L3VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L3VPN Configuration Commands
1-3
By default, the default value of the local preference is 100.
Examples
# With devices A and B connected to the outside AS, configure B with a default local
preference of 180 in BGP-VPNv4 subaddress family view, allowing the route going
through B to be preferred when more than one route is present.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] default local-preference 180
1.1.4 default med (BGP-VPNv4 subaddress family view)
Syntax
default med
med-value
undo default med
View
BGP-VPNv4 subaddress family view
Default Level
2: System level
Parameters
med-value
: MED value.
Description
Use the
default med
command to set the default system metric.
Use the
undo default med
command to restore the default.
With other criteria the same, the system selects the route with a smaller MED value as
the AS external route.
By default, the MED value is 0.
Examples
# Set the default MED to 10 for PE1 in BGP-VPNv4 subaddress family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] default med 10