set protocols ospf max-metric router-lsa administrative


The set protocols ospf max-metric router-lsa administrative 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.

Enabling this feature administratively allows for administrative intervention for whatever reason, for an indefinite period of time. The command will then take effect until manually deleted.

The delete protocols ospf max-metric router-lsa administrative command deletes the configuration.

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 administrative

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


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>].


Usage Guidelines

The highlighted lines in the following example shows that set protocols ospf [vrf <vrf-name>] max-metric router-lsa administrative is configured for advertising the maximum metric.

admin@Xorplus# run show ospf vrf x

VRF Name: x

OSPF Routing Process, Router ID: 10.1.240.0

Supports only single TOS (TOS0) routes

This implementation conforms to RFC2328

RFC1583Compatibility flag is disabled

OpaqueCapability flag is disabled

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 0.539s ago

Last SPF duration 173 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 5. Checksum Sum 0x000211ba

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: 1

   Area has no authentication

   SPF algorithm executed 40 times

   Number of LSA 4

   Number of router LSA 3. Checksum Sum 0x0001a0d5

   Number of network LSA 1. Checksum Sum 0x000068d5

   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 to administrative:
admin@Xorplus# set protocols ospf max-metric router-lsa administrative
admin@Xorplus# commit



Copyright © 2024 Pica8 Inc. All Rights Reserved.