segment-routing mpls (OSPF view)

Function

The segment-routing mpls command enables Segment Routing for an OSPF process.

The undo segment-routing mpls command disables Segment Routing for an OSPF process.

By default, Segment Routing is disabled for OSPF processes.

Format

segment-routing mpls

undo segment-routing mpls

Parameters

None

Views

OSPF view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

In Segment Routing implementation, an IGP is used to collect network-wide topology information and assign a label to each router. Therefore, Segment Routing must be enabled for the IGP. If OSPF is used as the IGP, run the segment-routing mpls command in the OSPF view to enable Segment Routing.

Prerequisites

Segment Routing has been enabled globally, and opaque LSA has been enabled using the opaque-capability enable command.

Precautions

Segment routing cannot work unless this configuration is done.

Example

# Enable Segment Routing in the OSPF view.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] quit
[*HUAWEI] ospf 1
[*HUAWEI-ospf-1] opaque-capability enable
[*HUAWEI-ospf-1] segment-routing mpls
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >