R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

466
Usage guidelines
Routes learned from peers each have an initial preferred value. Among multiple routes to the same
destination, the route with the biggest value is selected.
If you both reference a routing policy and use the command peer ipv6-address preferred-value value to
set a preferred value for routes from a peer, the routing policy sets the specific preferred value for routes
matching it. If the preferred value in the routing policy is zero, the routes use the value set with the peer
ipv6-address preferred-value value command. For information about using a routing policy to set a
preferred value, see the command peer 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."
Examples
# Configure the preferred value as 50 for routes from peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpn-instance 11
[Sysname-bgp-ipv6-11] peer 1:2::3:4 preferred-value 50
peer public-as-only (IPv6 address family view)
Use peer public-as-only to configure IPv6 BGP updates to a peer or peer group to not carry private AS
numbers.
Use undo peer public-as-only to allow IPv6 BGP updates to a peer or 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
BGP updates carry the private AS number.
Views
IPv6 address family view
Default command level
2: System level
Parameters
ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ipv6-address: Specifies the IPv6 address of a peer.
Usage guidelines
The command does not take effect if the BGP update has both the public AS number and private AS
number. The range of private AS number is from 64512 to 65535.
Examples
# Configure BGP updates sent to the peer 1:2::3:4 to not carry private AS numbers.
<Sysname> system-view