Configuring Ethernet loopback in VLAN-aware mode
The following steps configure Ethernet loopback in VLAN-aware mode.
- Enter the
configure terminalcommand to enter global configuration mode. - (Optional) Enter the
ethernet loopback test-maccommand 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. - Enter the VLAN configuration mode using the
vlancommand. - Enter the
ethernet loopbackcommand by specifying the Ethernet interface to enable Ethernet loopback on one or a set of ports in a specific VLAN (VLAN-aware mode).
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