monitor (ERSPAN)

Configures ERSPAN monitoring.
Syntax
monitor profile profile-number { both | input | output }
no monitor profile profile-number { both | input | output }
Command Default

Ports are not monitored.

Parameters
profile profile-number
Specifies the ERSPAN profile to be used. The monitor port is specified in the profile.
both
Monitors both incoming and outgoing traffic on the monitor port.
input
Monitors the ingress traffic on the monitor port.
output
Monitors the egress traffic on the monitor port.
Modes

Interface configuration mode

Usage Guidelines

You must configure an ERSPAN profile before you can enable ERSPAN monitoring.

ERSPAN does not support VLAN monitoring.

The no form of the command disables ERSPAN monitoring on the port.

Examples

The following example shows how to enable ERSPAN monitoring for ingress and egress traffic. The monitor port is 1/1/1, and the ERSPAN profile is 1.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# monitor profile 1 both
History
Release version Command history
08.0.40 This command was introduced.