OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor disallow-infinite-holdtime
neighbor disallow-infinite-holdtime
Use this command to disallow configuration of infinite hold-time. This command enables the local BGP speaker to reject a hold-time of “0” seconds from a peer (during exchange of open messages) or a user (during configuration).
The no form of this command allows the BGP speaker to accept a hold-time of “0” from a peer or during configuration.
Command Syntax
neighbor (A.B.C.D|X:X::X:X|WORD) disallow-infinite-holdtime
no neighbor (A.B.C.D|X:X::X:X|WORD) disallow-infinite-holdtime
For BGP unnumbered mode:
neighbor WORD disallow-infinite-holdtime
no neighbor WORD disallow-infinite-holdtime
Parameters
A.B.C.D
Address of the BGP neighbor in an IPv4 format
X:X::X:X
Address of the BGP neighbor in an IPv6 format
WORD
Name of a BGP peer group created with the neighbor WORD peer-group command. When you specify this parameter, the command applies to all peers in the group.
Default
By default, neighbor disallow infinite holdtime is disabled
Command Mode
Router mode and BGP unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config-router)#neighbor 10.11.4.26 disallow-infinite-holdtime
(config-router)#neighbor 3ffe::45 disallow-infinite-holdtime
 
For unnumbered peer below configuration is given in BGP unnumbered-mode.
(config)#router bgp 100
(config-router)#bgp unnumbered-mode
(config-router-unnum)#neighbor eth1 disallow-infinite-holdtime
Last modified date: 10/16/2023