stub-router (OSPFv3 view)

Function

The stub-router command configures a stub device.

The undo stub-router command restores the default configuration.

By default, no device is configured as a stub device.

Format

stub-router [ [ on-startup [ interval ] ] | [ intra-area-prefix-lsa ] | [ external-lsa [ externallsa-metric ] ] | [ inter-area-prefix-lsa [ interareaprefixlsa_metric ] ] ] *

undo stub-router

Parameters

Parameter Description Value
on-startup interval

Specifies an interval for the device to remain as a stub device after being restarted.

The value is an integer ranging from 5 to 65535, in seconds. The default value is 500 seconds.

intra-area-prefix-lsa

Advertises intra-area-prefix-LSAs with the default maximum cost.

-

external-lsa externallsa-metric

Advertises external-LSAs with the configured or default maximum cost.

The value is an integer ranging from 1 to 16777215. The default value is 16711680.

inter-area-prefix-lsa interareaprefixlsa_metric

Advertises inter-area-prefix-LSAs with the configured or default maximum cost.

The value is an integer ranging from 1 to 16777215. The default value is 16711680.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

After the stub-router command is configured on the device, the device instructs other devices not to forward data to itself by increasing the cost to the maximum value (65535) for the links in the device-LSA generated by the device. The cost is not infinite, and therefore, the routes to this stub device still exist.

Example

# Configure a stub device to advertise external-LSAs and inter-area-prefix-LSAs with cost 16777214.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] stub-router on-startup 65535 intra-area-prefix-lsa external-lsa 16777214 inter-area-prefix-lsa 16777214
# Configure a stub device.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] stub-router
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >