Configure OSPF Globally

Configure OSPFv3 globally to enable it on the system and to configure the router ID.

Procedure

  1. Enter either Global Configuration mode or VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Enable OSPFv3 for IPv6:

    router ospf ipv6–enable

    The default is disabled.

  3. Log on to OSPF Router Configuration mode:

    router ospf

  4. Specify the router ID:

    ipv6 router-id {A.B.C.D}

  5. Optionally, make the router an autonomous system (AS) boundary router (BR):

    ipv6 as-boundary-router enable

    Enable the ASBR if the router attaches at the edge of the OSPF network, and has one or more interfaces that run an interdomain routing protocol. The default is disabled.

Example

Enable OSPFv3 for IPv6:

Switch:1(config)#router ospf ipv6–enable

Log on to OSPF Router Configuration mode:

Switch:1(config)#router ospf

Specify the router ID:

Switch:1(config-ospf)#ipv6 router-id 1.1.1.1

Variable definitions

Use the data in the following table to use the ipv6 router-id command.

Variable

Value

{A.B.C.D}

Specifies a 32–bit integer that identifies the router in the autonomous system. This value must be unique. The default value will be one of the IPv4 interface addresses.