monitor-session (l2vpn)
To attach a traffic monitoring session as one of the segments for a cross connect, use the monitor-session
command in point-to-point cross connect configuration mode. To remove the association between a traffic
mirroring session and a cross connect, use the no form of this command.
monitor-session session-name
no monitor-session session-name
Syntax Description
Name of the monitor session to configure.
session-name
Command Default
No default behavior or values
Command Modes
Point-to-point cross connect configuration
Command History
ModificationRelease
This command was introduced.Release 4.0.0
Usage Guidelines
Before you can attach a traffic mirroring session to a cross connect, you must define it using the monitor-session
global configuration command. Once the traffic mirroring session is defined, use the monitor-session
point-to-point cross connect configuration command to attach this session as one of the segments for the cross
connect. Once attached, all traffic replicated from the monitored interfaces (in other words, interfaces that are
associated with the monitor-session) is replicated to the pseudowire that is attached to the other segment of
the cross-connect.
The session-name argument should be different than any interface names currently used in the system.
Task ID
OperationsTask ID
read, writel2vpn
Examples
This example shows how to attach a traffic mirroring session as segment for the xconnect:
RP/0/RSP0/CPU0:router(config)# l2vpn
RP/0/RSP0/CPU0:router(config-l2vpn)# xconnect group g1
RP/0/RSP0/CPU0:router(config-l2vpn-xc)# p2p xcon1
RP/0/RSP0/CPU0:router(config-l2vpn-xc-p2p)# monitor-session mon1
Cisco ASR 9000 Series Aggregation Services Router VPN and Ethernet Services Command Reference, Release
6.1.x
110
Point to Point Layer 2 Services Commands
monitor-session (l2vpn)