R2511-HP MSR Router Series IP Multicast Command Reference(V5)

453
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
peer public-as-only (IPv6 MBGP address family view)
Use peer public-as-only to disable IPv6 MBGP updates to a peer or a peer group from carrying private
AS numbers.
Use undo peer public-as-only to allow IPv6 MBGP updates to a peer or a peer group to carry private AS
numbers.
Syntax
peer { ipv6-group-name | ipv6-address } public-as-only
undo peer { ipv6-group-name | ipv6-address } public-as-only
Default
Private AS numbers can be carried in outbound IPv6 MBGP update packets.
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.
Usage guidelines
The command does not take effect on IPv6 MBGP updates with both public and private AS numbers. The
range of private AS numbers is from 64512 to 65535.