OSPFv3 Stub Router Commands

Use these commands to configure OSPFv3 stub router advertisement.

Note: Open Shortest Path First version 3 (OSPFv3) commands are supported on the M4350 series switches only. The M4250 series switches do not support OSPFv3.

max-metric router-lsa (OSPFv3 Router Configuration)

M4350

To configure OSPFv3 to enter stub router mode, use this command in Router OSPFv3 Global Configuration mode. When OSPFv3 is in stub router mode, OSPFv3 sets the metric in the nonstub links in its router LSA to MaxLinkMetric. Other switches or routers therefore compute very long paths through the stub router, and prefer any alternate path. Doing so eliminates all transit traffic through the stub router, when alternate routes are available. Stub router mode is useful when adding or removing a router from a network or to avoid transient routes when a router reloads.

You can administratively force OSPFv3 into stub router mode. OSPFv3 remains in stub router mode until you take OSPFv3 out of stub router mode. Alternatively, you can configure OSPF to start in stub router mode for a configurable period of time after the router boots up.

If you set the summary LSA metric to 16,777,215, other routers skip the summary LSA when they compute routes.

If you have configured the switch or router to enter stub router mode on startup (using the max-metric router-lsa on-startup command), and then enter the max-metric router-lsa command, there is no change. If OSPFv3 is administratively in stub router mode (that is, you have entered the max-metric router-lsa command), and you configure OSPFv3 to enter stub router mode on startup (using the max-metric router-lsa on-startup command), OSPFv3 exits stub router mode (assuming the startup period has expired) and the configuration is updated. Without any parameters, stub router mode only sends maximum metric values for router LSAs.

Default OSPF is not in stub router mode by default
Format max-metric router-lsa [external-lsa metric] [inter-area-lsas metric] [on-startup seconds] [summary-lsa metric]
Mode OSPFv3 Router Configuration
Parameter Description
external-lsa (Optional) Sends the maximum metric values for external LSAs. The metric argument is the maximum metric value to use for LSAs. The range is 1 to 16777215 (0xFFFFFF). The default value is 16711680 (0xFF0000).
inter-area-lsas (Optional) Sends the maximum metric values for Inter-Area-Router LSAs. The metric argument is the maximum metric value to use for LSAs. The range is 1 to 16777215 (0xFFFFFF). The default value is 16711680 (0xFF0000).
on-startup (Optional) Starts OSPF in stub router mode. The seconds argument is the number of seconds that OSPF remains in stub router mode after a reboot. The range is 5 to 86,400 seconds. There is no default value.
summary-lsa (Optional) Sends the maximum metric values for Summary LSAs. The metric argument is the maximum metric value to use for LSAs. The range is 1 to 16777215 (0xFFFFFF). The default value is 16711680 (0xFF0000).

no max-metric router-lsa (OSPFv3 Router Configuration)

Use this command in OSPFv3 Router Configuration mode to disable stub router mode. The command clears either type of stub router mode (always or on-startup) and resets all LSA options. If OSPF is configured to enter global configuration mode on startup, and during normal operation you want to immediately place OSPF in stub router mode, enter the no max-metric router-lsa on-startup command. The command no max-metric router-lsa with the external-lsa, inter-area-lsas, on-startup, or summary-lsa keyword causes OSPF to send summary LSAs with metrics computed using normal procedures.

Format no max-metric router-lsa [external-lsa] [inter-area-lsas] [on-startup] [summary-lsa]
Mode OSPFv3 Router Configuration

clear ipv6 ospf stub-router

M4350

Use this command to force OSPF to exit stub router mode when it has automatically entered stub router mode because of a resource limitation. OSPF only exits stub router mode if it entered stub router mode because of a resource limitation or if it is in stub router mode at startup. This command does not take effect if OSPF is configured to be in stub router mode permanently.

Format clear ipv6 ospf stub-router
Mode Privileged EXEC