Configuring Loopback Mode
Loopback-mode means that a physical port can become network-port (ingress) and tool-port(egress) to which flow rules can be applied. A loopback-mode port is operated in loopback mode and avoids customers connecting a physical cable to make it operate in Loopback mode.
As soon as a port is configured as a loopback-mode port, it is internally changed to a loopback mode state. This means that the link is UP with or without cables being inserted. Traffic flows out of a loopback-mode port (Tx direction) and loops back to it (Rx direction).
loopback-mode ports can provide the following flexibility:
Support for multiple lookups on the same packet. For example, decapsulate the tunnel and look up based on the inner header.
Multiple egress actions on the same traffic. For example (shown here) send to tool as-is and add VLAN tag.
The following command is used to configure the interface to work as both network-port and tool-port. When enabled on an interface, it acts like a mac loopback which loops back the egress packets back to the device on the same port.
Reference
Command | loopback-mode no loopback-mode |
Description | Activation loopback mode |
Parameters | None |
Mode | INTERFACE |
Example
You can verify the configuration by using the command(s) below: