PREV NEXT INDEX

Avici Systems Inc.


ospf router-id


Configures an OSPF router ID.

Syntax: [no] ospf router-id ip-address

id-number

IP address that identifies this OSPF router.

Description: Router ID is the tie-breaker for OSPF path selection. The path selection process uses a variety of metrics to select a route. If all other metrics (accessibility, administrative weight, local preference, etc.) are equal, OSPF determines the router ID using the following priority:

  1. Use the address configured by the ospf router-id command

  2. Use the address of the loopback interface with the highest IP address

  3. Use the highest IP address of any interface

  4. If no interface exists, set the router-ID to 0.0.0.0

If no OSPF router ID is explicitly configured, OSPF computes the router-ID based on the items 2, 3, and 4 and restarts OSPF (if the process is enabled and router-ID has changed).

WARNING The ospf router-id command causes the OSPF process to restart using the new router-ID (if the processes are enabled and router-ID has changed).

Use ospf router-id ip-address command to set the OSPF router ID for the system.

Use the no ospf router-id to configure the OSPF router ID as the default value (address of the loopback 0 interface).

Factory Default: Loopback 0 interface address.

Command Mode: Router configuration.

Example: In the following example, the ospf router-id ip-address command configures the router ID as 5.1.1.49, and the show ip ospf command displays the setting:

router(config-router)#ospf router-id 5.1.1.49

router(config-router)#end

router#show ip ospf

OSPF is running, process id: 2, router id: 5.1.1.49

Number of areas: 1, normal: 1, stub: 0

Maximum paths per route: 1

Area: 0.0.0.0

Number of interfaces in this area is 4

Type of authentication none

SPF algorithm has run 9 times

SPF interval 5 seconds

Related Commands: router ospf
show ip ospf


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: ospf20.html
    Last Updated: 05/10/04 at 16:34:58

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