< Home

mpls te cspf preferred-igp

Function

The mpls te cspf preferred-igp command specifies a preferred IGP for the CSPF calculation.

The undo mpls te cspf preferred-igp command restores the default settings.

The TEDB generated by OSPF is preferred by default.

Format

mpls te cspf preferred-igp { isis [ isis-process-id [ level-1 | level-2 ] ] | ospf [ ospf-process-id [ area { area-id-1 | area-id-2 } ] ] }

undo mpls te cspf preferred-igp

Parameters

Parameter Description Value
isis Indicates that the TEDB generated by IS-IS is preferred. -
isis-process-id Specifies the process ID. The value is an integer that ranges from 1 to 65535.
level-1 Indicates that the TEDB generated by a Level-1 IS-IS device is preferred. -
level-2 Indicates that the TEDB generated by a Level-2 IS-IS device is preferred. -
ospf Indicates that the TEDB generated by OSPF is preferred. -
ospf-process-id Specifies the ID of an OSPF process. The value is an integer that ranges from 1 to 65535.
area area-id-1 Specifies a preferred OSPF area configured in number format. The value is an integer that ranges from 0 to 4294967295.
area area-id-2 Specifies a preferred OSPF area configured in IP address format. The value is in dotted decimal notation.

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When selecting a path, CSPF prefers the TEDB generated by OSPF to calculate a CR-LSP by default. When the OSPF TEDB can be used to calculate a path, the IS-IS TEDB is not used. If the calculation based on the OSPF TEDB fails, recalculation based on the IS-IS TEDB is performed.

You can run the mpls te cspf preferred-igp command to configure CSPF to prefer the TEDB generated by IS-IS when calculating a CR-LSR. In this case, the OSPF TEDB is only used to calculate a path when the path calculation based on the IS-IS TEDB fails.

Prerequisites

CSPF has been enabled using the mpls te cspf command.

Example

# Configure CSPF to prefer the TEDB generated by OSPF when calculating a CR-LSP.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls te cspf
[HUAWEI-mpls] mpls te cspf preferred-igp ospf
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >