segment-routing

Function

The segment-routing command enables segment routing.

The undo segment-routing command disables segment routing.

By default, segment routing is disabled.

Format

segment-routing

undo segment-routing

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

Segment routing (SR) is a protocol designed to forward data packets on a network based on source routes. Segment routing divides a network path into several segments and assigns a segment ID to each segment and network forwarding node. The segments and nodes are sequentially arranged (segment list) to form a forwarding path. To enable segment routing, run the segment-routing command.

Precautions

Ensure that segment routing has been disabled in the IS-IS process before you run the undo segment-routing command in the system view.

Example

# Enable segment routing globally.
<HUAWEI> system-view
[~HUAWEI] segment-routing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >