PREV NEXT INDEX

Avici Systems Inc.


neighbor


Creates or deletes a neighbor entry.

Syntax: [no] neighbor ip-address [priority number]

ip-address

IP address of the OSPF neighbor.

priority number

Optional. Sets the priority of the neighbor. Valid values are 0 - 255.

Description: OSPF cannot dynamically discover its neighbors on non-broadcast multi-access and point-to-multipoint networks. For these networks neighbors must be configured. The router uses the information in the neighbor entry to send unicast hellos to the neighbor to start an adjacency.

When two routers attached to a network both attempt to become designated router, the one with the highest priority wins. A neighbor whose priority is set to 0 is ineligible to become designated router.

Use the neighbor ip-address command to add the specified address as a neighbor.

Use the neighbor ip-address priority number command to add the specified address as a neighbor and to set the priority of that neighbor.

Use the neighbor ip-address priority 0 command to add the specified address as a neighbor and to specify that the neighbor is ineligible to become a designated router.

Use the no neighbor ip-address command to delete the specified address as a neighbor.

Factory Default: For neighbor: no neighbors configured. For priority: 1

Command Mode: Router configuration.

Example 1: In the following example, the neighbor ip-address priority number command adds a neighbor with a priority of 3, and the show ip ospf neighbor command displays the setting:

router(config)#router ospf 1

router(config-router)#network 10.1.1.0 0.0.0.255 area 0

router(config-router)#neighbor 10.1.1.99 priority 3

router#show ip ospf neighbor

Area 0.0.0.0

Neighbor ID Pri State Dead Time Address Interface

10.10.10.10       3   Full/ - 39       10.1.1.99       POS 1/1/1

20.20.20.20 1 Full/ - 37 208.1.1.20 POS 1/1/3

30.30.30.30 1 Full/ - 30 202.1.1.30 CL CL-A

Example 2: In the following example, the no neighbor ip-address command deletes a neighbor:

router(config)#router ospf 1

router(config-router)#network 10.1.1.0 0.0.0.255 area 0

router(config-router)#no neighbor 10.1.1.99



Related Commands: network area
router ospf
ip ospf network
interface
show ip ospf
show ip ospf neighbor


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: ospf.fm
    HTML File Name: ospf18.html
    Last Updated: 05/10/04 at 16:34:58

Please email suggestions and comments to: doc@avici.com