ospf srlg

Function

The ospf srlg command adds an interface to a shared risk link group (SRLG).

The undo ospf srlg command deletes an interface from an SRLG.

By default, an interface is not added to any SRLG.

Format

ospf srlg srlg-value

undo ospf srlg [ srlg-value ]

Parameters

Parameter Description Value
srlg-value

Specifies an SRLG ID.

The value is an integer ranging from 0 to 4294967295.

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

An SRLG is a set of links that share a common physical resource, such as an optical fiber. These links share the same risk level. If one of the links fails, all the other links in the SRLG may also fail.

If two links have the same risk of failure, you can run the ospf srlg command on each of the links' interfaces to add the links to the same SRLG. Then, configure OSPF to preferentially select a backup link not in the same SRLG as the specified link during route calculation in IP FRR, reducing the possibility of network traffic interruption.

Follow-up Procedure

Run the tiebreaker srlg-disjoint preference command to configure OSPF to preferentially select a backup link not in the same SRLG during route calculation in IP FRR.

Example

# Add GE 0/1/0 to SRLG1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ospf srlg 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >