< Home

mpls te srlg

Function

The mpls te srlg command configures an interface as an SRLG member.

The undo mpls te srlg command deletes an interface from an SRLG.

No interface is added to any SRLG by default.

Format

mpls te srlg srlg-number

undo mpls te srlg { srlg-number | all }

Parameters

Parameter Description Value
srlg-number Specifies the number of the SRLG to which an interface belongs. The value is an integer that ranges from 0 to 4294967295.
all Indicates that all SRLG configurations are deleted from an interface. -

Views

VLANIF interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The SRLG, like the bandwidth and affinity property, is a constraint in path calculation. If SRLG is configured for links, an IGP floods the TE link information along with the SRLG membership information to all devices in an IGP area. The SRLG membership information is also added into the TEDB.

Prerequisites

Before running the mpls te srlg command, the mpls te command must be run in the interface view.

Precautions

If SRLG is configured for links and the mpls te srlg path-calculation command is configured on the ingress of the primary tunnel, when calculating the path of a bypass tunnel or a hot-standby tunnel, CSPF determines whether the SRLG attribute is used as a constraint according to the configured SRLG calculation mode.

One interface can join multiple SRLGs.

Example

# Add VLANIF100 to SRLG 1 and SRLG 2.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] mpls
[HUAWEI-Vlanif100] mpls te
[HUAWEI-Vlanif100] mpls te srlg 1
[HUAWEI-Vlanif100] mpls te srlg 2
# Add GE0/0/1 to SRLG 1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] mpls
[HUAWEI-GigabitEthernet0/0/1] mpls te
[HUAWEI-GigabitEthernet0/0/1] mpls te srlg 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >