Enabling OSPFv3

Creating an OSPFv3 process is a prerequisite for configuring OSPFv3 features. By creating an OSPFv3 process, you can specify the router ID for an OSPFv3 process.

Context

OSPFv3 supports multi-process. Multiple OSPFv3 processes running on one Device are differentiated by process IDs. You can set an OSPFv3 process ID when enabling OSPFv3. The process ID is only locally valid and does not affect the packet exchange with other Devices.

In the format of an IPv4 address, a router ID is a 32-bit unsigned integer that uniquely identifies one Device within an AS. The router ID of OSPFv3 must be set. Without a router ID, OSPFv3 cannot run properly.

When configuring the router ID, ensure that the router ID is unique in an AS. When multiple processes are enabled on the same Device, specify a unique router ID for each process.

Configure router IDs during network planning so that OSPFv3 can run properly.

Perform the following steps on the Device that runs OSPFv3:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ospfv3 [ process-id ] [ vpn-instance vpnname ]

    OSPFv3 is enabled, and the OSPFv3 view is displayed.

    The description of an OSPFv3 process helps identify special processes by the description command.

  3. Run router-id router-id

    A router ID is set.

    When configuring the router ID, ensure that the router ID is unique in an AS. You can select the IP address of an interface as the router ID.

    Each router ID in an OSPFv3 process must be unique. Otherwise, routers cannot establish OSPFv3 neighbor relationships, and the routing information is incorrect.

    If a router ID conflict occurs, perform either of the following operations:

    • Reconfigure a router ID.
    • Run the undo ospfv3 router-id auto-recover disable command to enable the router ID automatic recovery function. After the function is enabled, the system automatically allocates a new router ID.
      • If the automatic recovery function is enabled and a router ID conflict occurs between indirectly connected routers in one OSPFv3 area, the system replaces the conflicted router ID with a newly calculated one. The automatic recovery function takes effect on both configured and automatically generated router IDs.
      • The system can replace a router ID in a maximum of three attempts in case the router ID conflict persists.

  4. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >