monitor-session (interface)
To associate a traffic mirroring session with a specific interface, use the
monitor-session
command in interface
configuration mode or dynamic-template configuration mode. To remove the association between a traffic
mirroring session and an interface, use the
no
form of this command.
monitor-session session-name
[
direction
{
rx-only| tx-only
}]
[port-level]
no monitor-session session-name
[
direction
{
rx-only| tx-only
}]
[port-level]
Syntax Description
Name of the monitor session to
configure.
session-name
Specifies that traffic replication is
in only one direction.
direction
Specifies that only ingress traffic
is replicated.
rx-only
Specifies that only egress traffic is
replicated.
tx-only
Command Default
Replicates both ingress and egress traffic.
Command Modes
Interface configuration
Dynamic template configuration (for BNG)
Command History
Modification
Release
This command was introduced.
Release 3.9.1
The
acl
and
mirror first
keywords were added.
Release 4.0.0
The support for this command under dynamic-template configuration
mode was added for BNG.
Release 5.1
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Before you can associate a traffic mirroring session to a specific interface, you must define it using the
monitor-session
global configuration command. After the traffic mirroring session is defined, use the
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
1084
Traffic Mirroring Commands on the Cisco ASR 9000 Series Router
monitor-session (interface)