11-51
z
After this command is executed, the peer connection is closed at once, and a new connection to
the peer is negotiated using the configured hold time.
Related commands:
timer
.
Examples
# Configure the keepalive interval and holdtime interval for the peer group test as 60 seconds and 180
seconds.
<Sysname] system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test timer keepalive 60 hold 180
# Configure both the keepalive interval and holdtime interval for peer group
test
as 0 seconds,
indicating the peer group will never time out.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test timer keepalive 0 hold 0
preference (IPv6 address family view)
Syntax
preference
{
external-preference internal-preference local-preference
|
route-policy
route-policy-name
}
undo preference
View
IPv6 address family view
Default Level
2: System level
Parameters
external-preference
: Preference of eBGP routes, in the range 1 to 255.
internal-preference
: Preference of iBGP routes, in the range 1 to 255.
local-preference
: Preference of IPv6 BGP local routes, in the range 1 to 255.
route-policy-name
: Routing policy name, a string of 1 to 19 characters. The routing policy can set a
preference for routes matching it. The default value applies to the routes filtered out.
Description
Use the
preference
command to configure preferences for eBGP, iBGP, and local BGP routes.
Use the
undo preference
command 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 respectively.
Examples
# Configure preferences for eBGP, iBGP, and local routes as 20, 20 and 200.