< Home

stub (OSPF area)

Function

The stub command sets an area to a stub area.

The undo stub command cancels the settings.

By default, no area is set to a stub area.

Format

stub [ no-summary | default-route-advertise backbone-peer-ignore ] *

undo stub

Parameters

Parameter Description Value
no-summary Disables an ABR from sending non-default Type 3 LSAs to the stub area. This parameter applies only to ABRs of stub areas. If the parameter is configured on an ABR, the ABR advertises only one default Type 3 LSA (no other Type 3 LSAs) to the stub area. In this case, this area is also called a totally stub area. -
default-route-advertise Configures an ABR to advertise a default Type 3 LSA to the stub area. This parameter applies only to ABRs of stub areas. -
backbone-peer-ignore Prevents an ABR from checking the neighbor status when the ABR generates a default Type 3 LSA and advertises it to the stub area. This parameter applies only to ABRs of stub areas. If the parameter is configured on an ABR, the ABR generates a default Type 3 LSA and advertises it to the stub area as long as an interface is Up in the backbone area. -

Views

OSPF area view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

There are two configuration commands for stub areas: stub and default-cost. The stub area attribute must be configured on all switches in a stub area using the stub command.

The default-cost command takes effect only when it is configured on an ABR. The command is used to specify the cost of the default summary route transmitted by the ABR to the stub area.

  • If the stub command is run on an ABR, without parameters specified, the ABR advertises a default Type 3 LSA and advertises it to the stub area as long as an OSPF neighbor in the full state exists in the backbone area.
  • If the stub no-summary command is run on an ABR, the ABR is disabled from sending non-default Type 3 LSAs to the stub area connected to the ABR.
  • If the stub default-route-advertise backbone-peer-ignore command is run on an ABR, the ABR generates a default Type 3 LSA and advertises it to the stub area as long as an interface is Up in the backbone area.

Precautions

The backbone area cannot be configured as a stub area.

Example

# Set OSPF area 1 as a stub area.

<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] area 1
[HUAWEI-ospf-100-area-0.0.0.1] stub
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >