< Home

hop-limit

Function

The hop-limit command sets the hop limit in a CR-LSP attribute template.

The undo hop-limit command restore the default hop limit from a CR-LSP attribute template.

By default, the hop limit in a CR-LSP attribute template is 32.

Format

hop-limit hop-limit

undo hop-limit

Parameters

Parameter Description Value

hop-limit

Specifies the value of the hop limit.

The value is an integer that ranges from 1 to 32. The hop limit is 32 by default.

Views

LSP attribute view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To limit the maximum number of hops supported by each CR-LSP established using the CR-LSP attribute template, run the hop-limit command in the LSP attribute view. This hop limit restricts CR-LSP path selection.

Prerequisites

A CR-LSP attribute template has been created and the LSP attribute view has been entered using the lsp-attribute command.

Example

# Set the maximum number of hops in the CR-LSP attribute template to 20.

<HUAWEI> system-view
[HUAWEI] lsp-attribute lsp-attribute-name
[HUAWEI-lsp-attribute-lsp-attribute-name] hop-limit 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >