304
[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.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-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 session 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 for peer group
test
as 0
seconds, indicating the session will never time out.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0
Related commands
•
display bgp peer ipv4 unicast
•
display bgp peer ipv6 unicast
•
timer
preference
Use
preference
to configure preferences for BGP routes.
Use
undo preference
to restore the default.
Syntax
preference
{
external-preference internal-preference local-preference
|
route-policy
route-policy-name
}
undo preference
Default
The preferences of external, internal, and local BGP routes are 255, 255, and 130.
Views
BGP IPv4 unicast instance view, BGP-VPN IPv4 unicast instance view, BGP IPv6 unicast instance view,
BGP-VPN IPv6 unicast instance view
Predefined user roles
network-admin
Parameters
external-preference
: Specifies a preference for EBGP routes, in the range of 1 to 255.
internal-preference
: Specifies a preference for IBGP routes, in the range of 1 to 255.
local-preference
: Specifies a preference for local routes, in the range of 1 to 255.