< Home

Configuring OSPF Stub Areas

The stub area is a special area defined by OSPF, which has only one ABR. When an area meets certain requirements, you can configure it as a stub area. In this case, OSPF routes can be quickly aggregated and effectively spread.

Context

After area partition, the number of LSAs in the network decreases, and the OSPF extensibility is enhanced. To reduce its routing table size and the number of LSAs, you can configure some non-backbone areas on the AS border as stub area.

You must use the stub command to configure the area with Stub functions on the FWs that are connected to the stub area.

Procedure

  1. Access the system view.

    system-view

  2. Access the OSPF process view.

    ospf [ process-id ]

  3. Access the OSPF area view.

    area area-id

  4. Configure the current area as a stub area.

    stub [ no-summary ]

    The parameter in the stub command is valid only when you configure the command on ABRs.

  5. Configure the cost of the default routes to the stub area.

    default-cost cost

    The default-cost command can be configured on ABRs only.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >