To delete a neighbor, you must shut down the neighbor before issuing the no neighbor ip-address command.
Use the following CLI syntax to delete a neighbor.
CLI syntax
config>router# bgp
group name
no neighbor ip-address
shutdown
no peer-as asn
shutdown
Example
config>router# bgp
config>router>bgp# group headquarters1
config>router>bgp>group# neighbor 10.0.0.103
config>router>bgp>group>neighbor# shutdown
config>router>bgp>group>neighbor# exit
config>router>bgp>group# no neighbor 10.0.0.103
The following example displays the ‟headquarters1” configuration with the neighbor 10.0.0.103 removed.
ALA-B>config>router>bgp# info
----------------------------------------------
group "headquarters1"
description ‟HQ execs”
local-address 10.0.0.104
neighbor 10.0.0.5
passive
peer-as 300
exit
exit
----------------------------------------------
ALA-B>config>router>bgp#