monitor-session
interface configuration command or dynamic template configuration command to associate
this session with a specific source interface. For BNG sessions, the subscriber is attached to the monitor
session, only when the dynamic template is applied to the subscriber. When the session is associated, all
specified traffic on the interface is then replicated to the destination location defined in the monitor session
configuration.
The
monitor-session
interface configuration command also enters monitor session configuration mode for
you to configure additional features of the mirroring session.
If a physical interface is configured for Layer 3, then the traffic mirroring session can be associated on physical
interfaces. Example:
interface TenGigE0/1/0/0
ipv4 address 10.0.0.1 255.255.255.0
If a physical interface has sub-interfaces configured for Layer 3, then the traffic mirroring session must be
associated on each sub-interface. Example:
interface TenGigE0/1/0/1.601
ipv4 address 10.0.1.1 255.255.255.0
encapsulation dot1q 601
For more information about monitoring a session, see
Configuring Traffic Monitoring
chapter in
Cisco ASR
9000 Series Aggregation Services Router Interface and Hardware Component Configuration Guide
.
Task ID
Operations
Task ID
read, write
interface
read, write
config-services
Examples
This example shows how to enter monitor session configuration mode:
RP/0/RSP0/CPU0:router#
configure
RP/0/RSP0/CPU0:router(config)#
interface gigabitethernet0/0/0/11
RP/0/RSP0/CPU0:router(config-if)#
l2transport
RP/0/RSP0/CPU0:router(config-if-l2)#
monitor-session mon1
RP/0/RSP0/CPU0:router(config-if-mon)#
This example shows how to configure
monitor-session
command in the dynamic-template configuration
mode for BNG:
RP/0/RSP0/CPU0:router#
configure
RP/0/RSP0/CPU0:router(config)#
dynamic-template type ppp ppp_template
RP/0/RSP0/CPU0:router(config-dynamic-template-type)#
monitor-session mon1 direction rx-only
RP/0/RSP0/CPU0:router(config-dynamic-template-type)#
acl
RP/0/RSP0/CPU0:router(config-dynamic-template-type)#
mirror first 100
Related Commands
Description
Command
Defines a traffic mirroring session and enter monitor session
configuration mode.
monitor-session, on page 1083
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
1085
Traffic Mirroring Commands on the Cisco ASR 9000 Series Router
monitor-session (interface)