OcNOS-RON-6.3.1 : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor version
neighbor version
Use this command to accept only a particular BGP version.
By default, the system uses BGP version 4 and on request dynamically negotiates down to version 2. Using this command disables the router’s version-negotiation capability and forces the router to use only a specified version with the neighbor.
Use the no parameter with this command to use the default version level of a neighbor.
Command Syntax
neighbor (A.B.C.D|X:X::X:X|WORD) version 4
no neighbor (A.B.C.D|X:X::X:X|WORD) version
For BGP unnumbered mode:
neighbor WORD version 4
no neighbor WORD version
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.
4
BGP version number
Default
By default, the system uses BGP version 4 and on request dynamically negotiates down to version 2
Command Mode
Router mode and BGP unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 12
(config-router)#neighbor 10.10.10.10 version 4
 
(config)#router bgp 12
(config-router)#no neighbor 10.10.10.10 version
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 version 4
Last modified date: 07-13-2023