segment-routing global-block (OSPF view)

Function

The segment-routing global-block command configures a segment routing global block (SRGB).

The undo segment-routing global-block command deletes an SRGB.

By default, no SRGB is configured.

Format

segment-routing global-block begin-value end-value [ ignore-conflict ]

undo segment-routing global-block [ begin-value end-value [ ignore-conflict ] ]

Parameters

Parameter Description Value
begin-value

Specifies the start value of the SRGB.

The value varies according to the device.

end-value

Specifies the end value of the SRGB.

The value varies according to the device.

ignore-conflict

Specifies whether to ignore a conflict.

-

Views

OSPF view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

To configure an SRGB in an existing IGP instance, run the segment-routing global-block command.

Prerequisites

The OSPF process has been enabled, and segment routing has been enabled globally.

Precautions

  1. If this command is not run, SR cannot work properly, but all SR configurations can be performed properly.
  2. Before modifying an SRGB, run the undo segment-routing global-block command to delete the SRGB configuration. This operation causes service flapping.
  3. The next hop of an SR route cannot recurse to a tunnel interface. If an OSPF process has been enabled on an FA tunnel interface and SRGB needs to be configured, SR-labeled traffic may be discarded.
  4. If a label in the configured SRGB label range is occupied, you can configure the ignore-conflict parameter to deliver the configuration. However, the configuration does not take effect and you need to restart the device to make the configuration take effect. Typically, you are not advised to configure the ignore-conflict parameter. You can run the display ospf brief command to check whether the ignore-conflict parameter is configured for the SRGB and whether related TLVs are advertised after the device restarts.

Example

# If one or more labels in an SRGB being configured are occupied, you can specify the ignore-conflict parameter in an attempt to deliver the SRGB configuration. However, this configuration takes effect only after the device is restarted.
<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
[*HUAWEI-ospf-1] segment-routing global-block 153616 153800 ignore-conflict
# Configure an SRGB in an existing OSPF instance. (The value range of SRGB varies according to the device. Here is an example only.)
<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
[*HUAWEI-ospf-1] segment-routing global-block 153616 153800
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >