< Home

remark destination-mac

Function

The remark destination-mac command configures an action of re-marking the destination MAC address in packets in a traffic behavior.

The undo remark destination-mac command deletes the configuration.

By default, an action of re-marking the destination MAC address in packets is not configured in a traffic behavior.

Only the S5720-EI, S6720-EI, and S6720S-EI support this command.

Format

remark destination-mac mac-address

undo remark destination-mac

Parameters

Parameter

Description

Value

mac-address

Specifies the destination MAC address.

The value is in H-H-H format. An H is a hexadecimal number with 1 to 4 digits. The value must be a unicast MAC address.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use the remark destination-mac command to re-mark the destination MAC address in packets in a traffic behavior so that the downstream device can identify packets and provide differentiated services.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing destination MAC address re-marking.

Precautions

  • In a traffic behavior, the remark destination-mac command cannot be used with the redirect ip-nexthop or redirect ip-multihop command.
  • A traffic policy containing remark destination-mac cannot be applied to the outbound direction.
  • If you run the remark destination-mac command in the same traffic classifier view multiple times, only the latest configuration takes effect.

Example

# Configure the traffic behavior b1: The destination MAC address of packets is re-marked to 0050-b007-bed3.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark destination-mac 0050-b007-bed3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >