6-67
hold time is not 0, one third of the hold time is taken as the interval for sending keepalive
messages.
z
If neither the holdtime interval nor the keepalive interval is configured as 0, the holdtime interval
must be at least three times the keepalive interval.
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
# In BGP view, configure the keepalive interval and holdtime interval for peer group
test
as 60s and
180s.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test timer keepalive 60 hold 180
# In BGP-VPN instance view, configure the keepalive interval and holdtime interval for peer group
test
as 60s and 180s (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 60 hold 180
# In BGP view, 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] peer test timer keepalive 0 hold 0
# In BGP-VPN instance view, configure both the keepalive interval and holdtime interval for peer group
test
as 0 seconds, indicating the peer group will never time out. (
vpn1
must be created first.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0
preference (BGP/BGP-VPN instance view)
Syntax
preference
{
external-preference internal-preference local-preference
|
route-policy
route-policy-name
}
undo preference
View
BGP view, BGP-VPN instance 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.