
345
IPv6 MPLS L3VPN configuration commands
default local-preference (BGP-VPNv6 subaddress family view)
Description
Use the
default local-preference
command to set the default value of the local preference.
Use the
undo default local-preference
command to restore the default.
By default, the default value of the local preference is 100.
Syntax
default local-preference
value
undo default local-preference
View
BGP-VPNv6 subaddress family view
Default level
2: System level
Parameters
value
: Specifies the default value for the local preference, ranging from 0 to 4,294,967,295. A greater
value represents a higher priority.
Examples
# Devices A and B are connected to the outside AS. In BGP-VPNv6 subaddress family of Device B, set the
default local preference of device B to 180, so that when a destination in the outside AS can be reached
through both A and B, the BGP VPN-IPv6 route going through B to the destination is preferred.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-af-vpnv6] default local-preference 180
default med (BGP-VPNv6 subaddress family view)
Description
Use the
default med
command to set the default value of the system MED.
Use the
undo default med
command to restore the default.
By default, the default system MED value is 0.
With other criteria the same, the system selects the route with a smaller MED value as the AS external
route.
Syntax
default med
med-value
undo default med