preference (IPv6 address family view/IPv6 BGP-VPN
instance view)
Syntax
preference
{
external-preference internal-preference local-preference
|
route-policy
route-policy-name
}
undo preference
View
IPv6 address family view, IPv6 BGP-VPN instance view
Default level
2: System level
Parameters
external-preference
: Preference of EBGP route learned from an EBGP peer, in the range of 1 to 255.
internal-preference
: Preference of IBGP route learned from an IBGP peer, in the range of 1 to 255.
local-preference
: Preference of IPv6 BGP local route, in the range of 1 to 255.
route-policy-name
: Routing policy name, a string of 1 to 63 characters. The routing policy can set a
preference for routes passing it. The default value applies to the routes filtered out.
Description
Use
preference
to configure preferences for EBGP, IBGP, and local routes.
Use
undo preference
to restore the default.
The bigger the preference value is, the lower the preference is. The default values of
external-preference
,
internal-preference
and
local-preference
are 255, 255 and 130.
Examples
# Configure preferences for EBGP, IBGP, and local routes as 20, 20 and 200.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] preference 20 20 200
reflect between-clients (IPv6 address family view)
Syntax
reflect between-clients
undo reflect between-clients
View
IPv6 address family view
Default level
2: System level
Parameters
None
402