carrier(system view)

Function

The carrier command sets the response hold time of the system after an interface to report status change events.

The undo carrier command restores the default delay time for an interface to report status change events.

By default, the response hold time of the system after an interface goes Down is 0 ms. That is, the system responds immediately after an interface goes Down.

The default response hold-off time of the system is 200 ms after an interface goes Up. That is, the system responds 200 ms later, and the interface is Up.

If an interface goes Down from Up twice within 1 minute, the default hold-off time for the system to respond to the interface Up event is adjusted to 3s. If an interface stays up within 5 minutes, the default response hold-off time restores to 200 ms.

Format

carrier { down-hold-time | up-hold-time } interval-value

undo carrier down-hold-time [ interval-value ]

undo carrier up-hold-time [ interval-value ]

Parameters

Parameter Description Value
down-hold-time

The interface goes Down after the specified response suppression time.

-

up-hold-time

The interface goes Up after the specified response suppression time.

-

interval-value

Specifies the response hold time of the system when the interface status changes.

The value is an integer ranging from 0 to 86400000, in milliseconds.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

To set a hold period for a device to respond after an interface goes down, run the carrier down-hold-time command in the interface view. This configuration prevents flapping triggered by frequent interface status changes. It applies to scenarios where an interface is physically up, and the bottom layer detects that the link status changes from up to down because of a LOS alarm, PCS down event, local fault, remote fault, or other reasons.

Precautions

When global configurations are configured, if non-default configurations are configured on an interface, the configuration takes effect on the interface. If the default configuration is used, the global configuration takes effect.

Example

# Globally set the response hold time of the system to 10 ms later, and the interface goes Down.
<HUAWEI> system-view
[~HUAWEI] carrier down-hold-time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >