< Home

set service-mode

Function

The set service-mode command sets the working mode of the device to enhanced.

The undo set service-mode command restores the working mode of the device to normal.

By default, the working mode of the device is normal.

This command is supported only by S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S.

Format

Command format on the S5732-H, S6730-S, S6730S-S, S6730S-H, and S6730-H:

set service-mode { enhanced-bfd | enhanced-oam | enhanced-ptp }

undo set service-mode { enhanced-bfd | enhanced-oam | enhanced-ptp }

Command format on other switches:

set service-mode enhanced

undo set service-mode enhanced

Parameters

Parameter

Description

Value

enhanced

Sets the working mode of the device to enhanced.

-

enhanced-bfd

Sets the BFD working mode of the device to enhanced.

-

enhanced-oam

Sets the OAM working mode of the device to enhanced.

-

enhanced-ptp

Sets the PTP working mode of the device to enhanced.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In normal mode, the interval for receiving BFD packets must be more than or equal to 100 ms. If the interval cannot meet requirements, run the set service-mode command to change the working mode of the switch to enhanced or enhanced-bfd mode so that the switch supports a minimum of 3 ms interval.

To implement some OAM functions, you need to run the set service-mode command to change the working mode of the switch to enhanced or enhanced-oam mode. For more details, see the OAM description.

To configure PTP, you need to run the set service-mode command to change the working mode of the switch to enhanced enhanced-ptp mode.

Precautions

  • Running the set service-mode command will reduce the device forwarding performance. Therefore, confirm the action before you use the command.

  • If BFD has been enabled before this command is executed, disable BFD first.

  • Before changing the working mode from enhanced to normal, disable the PTP function.

  • On the S5732-H, S6730-S, S6730S-S, S6730S-H, and S6730-H, you can run the set service-mode command multiple times to set the working mode of BFD, PTP, and OAM to enhanced.

Example

# Set the working mode of the device to enhanced.
<HUAWEI> system-view
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >