< Home

maximum-routes

Function

The maximum-routes command sets the maximum number of routes of different types that OSPF supports.

The undo maximum-routes command restores the default maximum number of routes of different types that OSPF supports.

Format

maximum-routes { external | inter | intra } number

undo maximum-routes { external | inter | intra }

Parameters

Parameter Description Value
external Indicates the maximum number of AS external routes that OSPF supports. -
inter Indicates the maximum number of inter-area routes that OSPF supports. -
intra Indicates the maximum number of intra-area routes that OSPF supports. -
number Specifies the maximum number of routes of different types.

The value is an integer.

  • When the external parameter is specified, the value of number is an integer ranging from 100 to 5000000.
  • When the inter parameter is specified, the value of number is an integer ranging from 100 to 1000000.
  • When the intra parameter is specified, the value of number is an integer ranging from 100 to 100000.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Based on the real world situation of a network, such as the convergence speed, you can run the maximum-routes command to configure the maximum number of routes of different types. This ensures full use of network resources and improves network performance.

Precautions

The maximum number of routes supported by OSPF cannot exceed the maximum number of all routes supported by the switch.

The maximum-routes command configuration limits the maximum number of routes that can be locally calculated. Therefore, the command configuration affects the maximum number of routes that can be sent, but does not affect the maximum number of LSAs that can be received.

Example

# Set the maximum number of routes that OSPF supports.

<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] maximum-routes intra 500
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >