set protocols ospf max-metric router-lsa on-shutdown


The set protocols ospf max-metric router-lsa on-shutdown command configures the protocol to advertise a maximum metric (65535) so that other routers do not prefer this router as an intermediate hop in their shortest path first (SPF) calculations. on-shutdown <advert-time> indicates to advertise a maximum metric in advance of shutdown for the advert-time configured in seconds to gracefully excuse itself from the OSPF domain.

The delete protocols ospf max-metric router-lsa on-shutdown command advertises the normal cost metrics instead of advertising the maximized cost metric.


NOTE:

max-metric router-lsa feature has three configuration methods, the commands are shown as below.

set protocols ospf [vrf <vrf-name>] max-metric router-lsa on-startup <advert-time>

set protocols ospf [vrf <vrf-name>] max-metric router-lsa on-shutdown <advert-time>

set protocols ospf [vrf <vrf-name>] max-metric router-lsa administrative

They can be configured separately or simultaneously. When administrative is configured with other methods, the configuration of “administrative takes effect.


Command Syntax

set protocols ospf [vrf <vrf-name>] max-metric router-lsa on-shutdown <advert-time>

delete protocols ospf [vrf <vrf-name>] max-metric router-lsa on-shutdown


Parameters

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

on-shutdown <advert-time>

Specifies the time interval to advertise a maximum metric in advance of shutdown. The value is an integer, in seconds, that ranges from 5 to 100.


Usage Guidelines

The highlighted lines in the following example shows that set protocols ospf [vrf <vrf-name>] max-metric router-lsa on-shutdown <advert-time> is configured with 100 seconds, and 1 minutes 31 seconds remaining is left for advertising the maximum metric and shutting down the router.

admin@Xorplus# run show ospf vrf x

VRF Name: x

OSPF Routing Process, Router ID: 10.1.240.0

Deferred shutdown in progress, 1m31s remaining

Supports only single TOS (TOS0) routes

This implementation conforms to RFC2328

RFC1583Compatibility flag is disabled

OpaqueCapability flag is disabled

Stub router advertisement is configured

   Enabled for 100s prior to full shutdown

Initial SPF scheduling delay 0 millisec(s)

Minimum hold time between consecutive SPFs 50 millisec(s)

Maximum hold time between consecutive SPFs 5000 millisec(s)

Hold time multiplier is currently 1

SPF algorithm last executed 8.551s ago

Last SPF duration 201 usecs

SPF timer is inactive

LSA minimum interval 5000 msecs

LSA minimum arrival 1000 msecs

Write Multiplier set to 20

 Refresh timer 10 secs

Maximum multiple paths(ECMP) supported  256

This router is an ASBR (injecting external routing information)

Number of external LSA 2. Checksum Sum 0x0000d86e

Number of opaque AS LSA 0. Checksum Sum 0x00000000

Number of areas attached to this router: 1

Area ID: 0.0.0.0 (Backbone)

   Number of interfaces in this area: Total: 11, Active: 10

   Originating stub / maximum-distance Router-LSA

     Administratively activated (indefinitely)

   Number of fully adjacent neighbors in this area: 2

   Area has no authentication

   SPF algorithm executed 8 times

   Number of LSA 6

   Number of router LSA 3. Checksum Sum 0x00013603

   Number of network LSA 3. Checksum Sum 0x0001509c

   Number of summary LSA 0. Checksum Sum 0x00000000

   Number of ASBR summary LSA 0. Checksum Sum 0x00000000

   Number of NSSA LSA 0. Checksum Sum 0x00000000

   Number of opaque link LSA 0. Checksum Sum 0x00000000

   Number of opaque area LSA 0. Checksum Sum 0x00000000


Example

  • Setting to maximize the cost metrics for Router LSA on shutdown:
admin@Xorplus# set protocols ospf max-metric router-lsa on-shutdown 120
admin@Xorplus# commit




Copyright © 2024 Pica8 Inc. All Rights Reserved.