neighbor — router
all] no neighbor
A routing neighbor
No neighbors defined
The behavior and syntax of this command depend on the routing protocol you are using.
For RIP, this command specifies a RIP neighbor. This is useful when you have routers that cannot receive RIP broadcasts. In this situation, use the
neighbor command to specify the IP addresses of routers that should receive RIP packets directly. If you use this command, RIP packets are not broadcast; they are sent only to the specified neighbors. The
neighbor command is frequently used with the
passive-interface command, which specifies that the interface should only listen for routing updates.
For IGRP, the command specifies an IGRP neighbor for the router to communicate with. It is often used with the
passive-interface command. As with RIP, you can use the
neighbor command together with
passive-interface to send updates to one or more routers without sending updates to other routers on the network. Multiple
neighbor commands are allowed.
For EIGRP, the
neighbor command is accepted by the parser but has no effect on the EIGRP process. It is accepted for backward compatibility with IGRP configurations.
For OSPF, you use the command to define a router’s OSPF neighbors ...