Deleting a neighbor

To delete a neighbor, you must shut down the neighbor before issuing the no neighbor ip-addr command.

Use the following syntax to delete a neighbor.

 config>router# bgp
     group name
     no neighbor ip-address
     shutdown
         no peer-as asn
         shutdown

Example: Command usage to delete a neighbor

 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

Example: Configuration output

The following is a sample of the ‟headquarters1” configuration output 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#