< Home

stub-router (OSPFv3)

Function

The stub-router command configures a device as stub router.

The undo stub-router command restores the default configuration.

By default, no stub router exists.

Format

stub-router [ on-startup [ interval ] ]

undo stub-router

Parameters

Parameter Description Value
on-startup [ interval ] Specifies the interval during which a device acts as a stub router when the device is restarted or faulty.
  • If on-startup is not specified, the device is always a stub router, even if the cost of all routes advertised by the device is 65535.
  • If on-startup is specified, the device works as a stub router only when it restarts or is faulty. The hold time of the stub router state is determined by interval parameter. If the interval parameter is not configured, the default interval (500 seconds) is used.
The value is an integer ranging from 5 to 65535, in seconds. By default, it is 500 seconds.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

After the stub-router command is configured on a switch, the stub router informs other OSPFv3 devices not to use this stub router for data forwarding by increasing the metrics of the links in the Router-LSA generated by the switch. Since the metric is not infinite, the devices to this stub router still exist. The metrics of all links in the device Router-LSAs generated by the stub router are set to 65535.

Example

# Configure the device as a stub router.

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