< Home

loopback remote swap-mac

Function

The loopback remote swap-mac command enables remote MAC swap loopback.

The undo loopback remote swap-mac command disables remote MAC swap loopback.

By default, remote MAC swap loopback is disabled on an interface.

Format

Models excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:

loopback remote swap-mac source-mac source-mac-address dest-mac dest-mac-address vlan vlan-id [ inner-vlan inner-vlan-id ] [ timeout { time-value | none } ]

undo loopback remote swap-mac

S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:

loopback remote swap-mac [ timeout { time-value | none } ]

undo loopback remote swap-mac

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the inner-vlan inner-vlan-id parameter.

Parameters

Parameter

Description

Value

source-mac source-mac-address

Specifies the source MAC address of test packets.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

The source and destination MAC addresses must be unicast MAC addresses.

dest-mac dest-mac-address

Specifies the destination MAC address of test packets.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

The source and destination MAC addresses must be unicast MAC addresses.

vlan vlan-id

Specifies the VLAN ID of test packets.

The value is an integer that ranges from 1 to 4094.

inner-vlan inner-vlan-id

Specifies the inner VLAN ID of test packets.

The value is an integer that ranges from 1 to 4094.

timeout time-value

Specifies the timeout period of a loopback test. If the loopback swap-mac start command is run to enable MAC swap loopback, a MAC swap loopback test stops after the timeout period of the loopback test expires.

The value is an integer that ranges from 5 to 300, in seconds. The default value is 60.

timeout none

Indicates that the loopback test timeout function is disabled. If the loopback swap-mac start command is run to enable MAC swap loopback, a MAC swap loopback test cannot automatically stop after its timeout period expires. Instead, you must run the loopback swap-mac stop command to manually stop the MAC swap loopback test.

-

Views

Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before using the Switch to provide services for users, perform a remote MAC swap loopback test to check whether the Switch can provide services properly. This test checks connectivity and performance of the network between the Switch uplink interface and a remote device. The remote MAC swap loopback test can also check whether VLAN mapping and VLAN stacking are configured successfully on the uplink interface.

A remote MAC swap loopback test checks connectivity and performance of the network between a tester and a tested switch but does not check performance of the tested switch.

In a remote MAC swap loopback test, a tester sends test packets to the Switch. When test packets reach the uplink interface, the Switch swaps the source and destination MAC addresses of test packets and sends the packets back to the tester through this interface.

Follow-up Procedure

Run the loopback swap-mac start command to enable the MAC swap loopback function.

Precautions

  • An Eth-Trunk interface supports the MAC swap loopback function but an Eth-Trunk member interface does not.

  • The port is not a Layer 3 port. If the port is a Layer 3 port, run the portswitch command to switch the port to the Layer 2 mode.

  • The loopback remote swap-mac and single-fiber enable commands cannot be used on the same interface.
  • If the switch does not receive any test packet within the timeout period after the remote MAC swap loopback test starts, perform the test again. And then run the loopback swap-mac start command.
  • If timeout none is specified in the command, you can perform a loopback test at any time until the MAC swap loopback function is disabled by using the loopback swap-mac stop command.

Example

# Configure remote MAC swap loopback.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] loopback remote swap-mac source-mac 0018-2000-0085 dest-mac 0018-2000-1004 vlan 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >