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 this 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 for the time mentioned in seconds or for a default value of 600 seconds.
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-ospf
Parameters
on-startup <SECONDS>
Optional. Advertise a maximum metric on startup.
Specifies the time in seconds to advertise self as stub-router. If no time is specified, the default time of 600 seconds is used. Default: 600 seconds. Range: 5-86400.
Authority
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 ospf 1 switch(config-ospf-1)# max-metric router-lsa switch(config-ospf-1)# max-metric router-lsa on-startup switch(config-ospf-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 ospf 1 switch(config-ospf-1)# no max-metric router-lsa switch(config-ospf-1)# no max-metric router-lsa on-startup