max-metric router-lsa

Syntax

max-metric router-lsa [on-startup没有max-metric router-lsa [on-startup]

描述

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没有form of the command.

The没有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

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. Range: 5 to 86400. Default: 600.

权威

Administrators or local user group members with execution rights for this command.

Examples

Setting to maximize the cost metrics for Router LSA:

switch(config)#router ospfv3 1switch(config-ospfv3-1)#max-metric router-lsaswitch(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 1switch(config-ospfv3-1)#没有max-metric router-lsaswitch(config-ospfv3-1)#没有max-metric router-lsa on-startup