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.
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. |
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.
<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
<HUAWEI> system-view [~HUAWEI] ospfv3 1 [*HUAWEI-ospfv3-1] stub-router