R3303-HP HSR6800 Routers IP Multicast Command Reference

421
peer preferred-value (IPv6 MBGP address family view)
Use peer preferred-value to assign a preferred value to routes received from an IPv6 MBGP peer or peer
group.
Use undo peer preferred-value to restore the default.
Syntax
peer { ipv6-group-name | ipv6-address } preferred-value value
undo peer { ipv6-group-name | ipv6-address } preferred-value
Default
The preferred value defaults to 0.
Views
IPv6 MBGP address family view
Default command level
2: System level
Parameters
ipv6-group-name: Specifies an IPv6 MBGP peer group by its name, a string of 1 to 47 characters.
ipv6-address: Specifies an IPv6 MBGP peer by its IPv6 address.
value: Specifies a preferred value in the range of 0 to 65535.
Usage guidelines
Routes learned from peers each have a preferred value. Among multiple routes to the same destination,
the route with the greatest preferred value is selected.
If you both reference a routing policy and use the peer { ipv6-group-name | ipv6-address }
preferred-value value command to set a preferred value for routes from a peer, the routing policy sets the
specified preferred value for matching routes. Routes that do not match the routing policy use the value
set with the peer preferred-value command.
If the preferred value specified in the routing policy is zero, the matching routes also use the value set with
the peer preferred-value command. For information about using a routing policy to set a preferred value,
see the command peer { group-name | ipv6-address } route-policy route-policy-name { import | export }
in this document, and the command apply preferred-value preferred-value in Routing policy
configuration commands in Layer 3—IP Routing Command Reference.
Examples
# Configure a preferred value of 50 for routes from IPv6 MBGP peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100
[Sysname-bgp-af-ipv6] quit
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 enable
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 preferred-value 50