1672
C
98: MPLS L3VPN C
HAPTER
View
Parameter
Description
Example
default med (BGP-VPNv4 subaddress family view)
Syntax
View
Parameter
Description
Example
C
ONFIGURATION
OMMANDS
undo default local-preference
BGP-VPNv4 subaddress family view
value: Default value for the local preference, in the range 0 to 4294967295. A
greater value represents a higher priority.
Use the
default local-preference
preference.
Use the
undo default local-preference
By default, the default value of the local preference is 100.
# 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] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] default local-preference 180
default med med-value
undo default med
BGP-VPNv4 subaddress family view
med-value: MED value, in the range 0 to 4,294,967,295.
Use the
default med
Use the
undo default med
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.
# Set the default MED to 10 for PE 1 in BGP-VPNv4 subaddress family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] default med 10
command to set the default value of the local
command to restore the default.
command to set the default system metric.
command to restore the default.