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

270
If neither the holdtime nor the keepalive interval is configured as 0, the holdtime must be at least three
times the keepalive interval.
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.
Examples
# In BGP view, configure the keepalive interval and holdtime 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 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-ipv4-vpn1] peer test timer keepalive 60 hold 180
# In BGP view, configure both the keepalive interval and holdtime for peer group test as 0 seconds,
indicating the peer group never times 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 never times out. (vpn1 must have been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test timer keepalive 0 hold 0
Related commands
timer
preference (BGP/BGP-VPN instance view)
Use preference to configure preferences for external, internal, and local routes.
Use undo preference to restore the default.
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }
undo preference
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
external-preference: Specifies the preference of EBGP routes, in the range of 1 to 255.