Configuring the OSPFv3 max-metric router LSA

By configuring the OSPFv3 max-metric router LSA feature you can enable OSPFv3 to advertise its locally generated router LSAs with a maximum metric.

Before you begin

Note

Note

You can configure OSPFv3 max-metric router LSA in either startup or non-startup mode. Configuring max-metric with non-startup mode, it is only applied once and is not persistent across reloads, or after the clear ip ospf all command is issued.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the ip router-id command to specify the router ID.
    device(config)# ip router-id 10.11.12.13
  3. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  4. Enter the max-metric router-lsa command with the external-lsa keyword and specify a value to configure the maximum metric value .
    device(config-ipv6-router-ospf-vrf-default-vrf)# max-metric router-lsa external-lsa 1500
  5. Enter the max-metric router-lsa command with the on-startup keyword and specify a value to specify a period of time to advertise a maximum metric after a restart before advertising with a normal metric.
    device(config-ipv6-router-ospf-vrf-default-vrf)# max-metric router-lsa on-startup 85

Example

The following example configures an OSPFv3 device to advertise a maximum metric and sets the maximum metric value for external LSAs to 1500, and configures the device to advertise a maximum metric for 85 seconds after a restart before advertising with a normal metric.

device# configure terminal
device(config)# ip router-id 10.11.12.13
device(config)# ipv6 router ospf 
device(config-ipv6-router-ospf-vrf-default-vrf)# max-metric router-lsa external-lsa 1500
device(config-ipv6-router-ospf-vrf-default-vrf)# max-metric router-lsa on-startup 85