For ANCP:
[ no ] neighbor neighborName
For OSPF:
neighbor ipAddressOspf [ pollinterval seconds | priority number ]
no neighbor ipAddressOspf [ pollinterval | priority ]
For RIP:
[ no ] neighbor ipAddressRip
Command introduced before JunosE Release 7.1.0.
For ANCP, creates an ANCP neighbor and accesses the L2C Neighbor Configuration (config-l2c-neighbor) mode. For OSPF, configures OSPF neighbors on an NBMA network. For RIP, specifies a RIP neighbor to which the router sends unicast messages. The no version removes the specified neighbor configuration or, by omitting the neighbor name, all ANCP neighbor configurations (ANCP), removes the neighbor (OSPF and RIP), or restores the default values (OSPF).
Address Family Configuration (RIP), Router Configuration