< Home

stub-router (OSPF)

Function

The stub-router command configures the stub router.

The undo stub-router command restores the default configuration.

By default, the FW is not configured as a stub router.

Format

stub-router [ on-startup [ interval ] ]

undo stub-router

Parameters

Parameter Description Value
on-startup interval Specifies the interval during which a FW acts as a stub router when it restarts or a master/slave main control board switchover is performed. The value is an integer that ranges from 5 to 65535, in seconds. By default, the value is 500 seconds.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

After the stub-router command is configured on a ospf device, the device informs other devices not to use this stub router to forward data by increasing the metric (≥65535) of the links in the LSA that is generated by the device. The metric is not infinite. Therefore, the routes to this stub router still exist. The metric of the LSA links that is generated by the stub router is very high.

Note the following points when running the stub-router command:
  • If you run the stub-router command on a device without specifying on-startup, the FW always functions as a stub device, and the cost of the routes from this device stays at 65535.
  • If you run the stub-router on-startup command on a device, the device becomes a stub router after it restarts or a master/slave main control board switchover is performed and stays as a stub device for a period specified by interval. If interval is not specified, the default value (500s) takes effect.

Example

# Configure the stub router.

<sysname> system-view
[sysname] ospf 1
[sysname-ospf-1] stub-router
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >