Configuring Ethernet loopback in VLAN-aware mode

The following steps configure Ethernet loopback in VLAN-aware mode.
  1. Enter the configure terminal command to enter global configuration mode.
    device# configure terminal
  2. (Optional) Enter the ethernet loopback test-mac command from interface configuration mode to configure the port as flow-aware and exit interface configuration mode.
    Once configured and when Ethernet loopback is enabled, only the frames received with the specific source MAC address and destination MAC address are looped back. Skip this step to configure flow-unaware mode.
    Note: On ICX 7450 and ICX 7250 devices, configuring the ethernet loopback test-mac command is mandatory because these devices support only flow-aware mode. In other supported platforms, the ethernet loopback test-mac command is optional because you can configure flow-aware or flow-unaware mode.
    device(config)# interface ethernet 1/1/1 
    device(config-if-e1000-1/1/1)# ethernet loopback test-mac 1111.2222.3333 4444.5555.5555
    device(config-if-e1000-1/1/1)# exit
  3. Enter the VLAN configuration mode using the vlan command.
    device(config)# vlan 100
  4. Enter the ethernet loopback command by specifying the Ethernet interface to enable Ethernet loopback on one or a set of ports in a specific VLAN (VLAN-aware mode).
    device(config-vlan-100)# ethernet loopback ethernet 1/1/1

The following example configures Ethernet loopback in VLAN-aware mode as flow-aware.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ethernet loopback test-mac 1111.2222.3333 4444.5555.5555
device(config-if-e1000-1/1/1)# exit
device(config)# vlan 100
device(config-vlan-100)# ethernet loopback ethernet 1/1/1

The following example configures Ethernet loopback in VLAN-aware mode as flow-unaware.

device(config)# vlan 100
device(config-vlan-100)# ethernet loopback ethernet 1/1/1

The following example configures Ethernet loopback in VLAN-aware mode as flow-unaware on a set of ports.

device(config)# vlan 100
device(config-vlan-100)# ethernet loopback ethernet 1/1/1 to 1/1/10