396
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 IP address.
value
: Specifies a preferred value, in the range of 0 to 65535.
Description
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.
The preferred value defaults to 0.
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 the routes that match it. Other 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 routes that match it also use the value set with the
peer preferred-value
command.
To learn how to use 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 the
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)
Syntax
peer
{
ipv6-group-name
|
ipv6-address
}
public-as-only
undo
peer
{
ipv6-group-name
|
ipv6-address
}
public-as-only
View
IPv6 MBGP address family view
Default 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 IP address.