max-metric router-lsa

Syntax

max-metric router-lsa [on-startup <SECONDS>]

no max-metric router-lsa [on-startup]

Description

Sets the protocol to advertise a maximum metric so that other routers do not prefer the router as an intermediate hop in their shortest path first (SPF) calculations. If the on-startup parameter is used, the router is configured to advertise a maximum metric at startup. That is, for the time specified in seconds, or the default value of 600 seconds.

To disable advertisement of the maximum metric, use the no form of the command.

The no form of this command advertises the normal cost metrics instead of advertising the maximized cost metric. This setting causes the router to be considered in traffic forwarding.

Command context

config-ospfv3

Parameters

on-startup <SECONDS>

Optional. Automatically advertises the stub Router-LSA (or maximize the router-LSA cost metric) for a specified time interval upon OSPFv3 startup.

Specifies the time in seconds. If no time is specified, the default time of 600 seconds is used. Default: 600 seconds. Range: 5-86400.

Authority

Administrators

Examples

Setting to maximize the cost metrics for Router LSA:

switch(config)# router ospfv3 1
switch(config-ospfv3-1)# max-metric router-lsa
switch(config-ospfv3-1)# max-metric router-lsa on-startup 3000

Setting to advertise the normal cost metrics instead of advertising the maximized cost metric:

switch(config)# router ospfv3 1
switch(config-ospfv3-1)# no max-metric router-lsa
switch(config-ospfv3-1)# no max-metric router-lsa on-startup