set interface ethernet

Configures packet mirroring by specifying the egress port for the monitored traffic.

Syntax

set interface ethernet name
no set interface ethernet name

Parameters

interface ethernet name
Specifies the name of the interface for the mirror destination.

Modes

Config mode

Usage Guidelines

The name identifier must be a valid interface for the platform.

The name must be in slot/port format.

If the same command is executed more than once, the second and subsequent executions are ignored and no error is reported.

Examples

The following examples show how to configure description for an interface.

device# configure terminal
device(config)# 
The following examples show error messages.

Mirror destination interface is already set:

Error: mirror interface is already configured

Invalid interface name:

device# configure terminal
device(config)#mirror mirr1
device(config-mirror)# set interface ethernet 0/0 
Error: Interface does not exist

device(config-mirror)# set interface ethernet 10/4 
Error: Interface does not exist