OcNOS-RON-6.3.1 : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor de-activate
neighbor de-activate
Use this command to disable the exchange of specific address family routes with a neighboring router for peer-group member. After a TCP connection is opened with a neighboring router, use this command to enable or disable the exchange of address family information for peer-group member.
Use the no parameter with this command to inherit the properties of peer-group. i.e., If peer-group is activated in the given address-family, no of this command will activate the peer member as peer-group is activated in address-family..
Command Syntax
neighbor (A.B.C.D|X:X::X:X) de-activate
no neighbor (A.B.C.D|X:X::X:X) de-activate
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
Default
By default de-activate is disabled for all peer-group members. For all address-families, Use this command to disable a neighbor to exchange routing information of a specific address-family with a neighbor.
Command Mode
Address Family mode
Applicability
This command is introduced in OcNOS version 6.0.0. This command is applicable only to neighbor which is a member of peer-group.
Examples
#configure terminal
router bgp 100
neighbor pg1 peer-group
neighbor pg1 remote-as 100
neighbor 10.1.1.2 peer-group pg1
neighbor 20.1.1.2 peer-group pg1
neighbor 30.1.1.2 remote-as 100
!
address-family ipv4 unicast
neighbor pg1 activate
neighbor 30.1.1.2 activate
exit-address-family
!
(config-router-af)#neighbor 10.1.1.2 de-activate
(config-router-af)#show running-config bgp
!
router bgp 100
neighbor pg1 peer-group
neighbor pg1 remote-as 100
neighbor 10.1.1.2 peer-group pg1
neighbor 20.1.1.2 peer-group pg1
neighbor 30.1.1.2 remote-as 100
!
address-family ipv4 unicast
neighbor pg1 activate
neighbor 10.1.1.2 de-activate
neighbor 30.1.1.2 activate
exit-address-family
!
(config-router-af)#no neighbor 10.1.1.2 de-activate
(config-router-af)#commit
(config-router-af)#
(config-router-af)#show running-config bgp
!
router bgp 100
neighbor pg1 peer-group
neighbor pg1 remote-as 100
neighbor 10.1.1.2 peer-group pg1
neighbor 20.1.1.2 peer-group pg1
neighbor 30.1.1.2 remote-as 100
!
address-family ipv4 unicast
neighbor pg1 activate
neighbor 30.1.1.2 activate
exit-address-family
!
Last modified date: 07-13-2023