Reference Guide

In the State eld, true indicates that the port is enabled. In the Reason eld, Is UP indicates that hardware resources are allocated.
OS10# show monitor session all
S.Id Source Destination Dir SrcIP DstIP DSCP TTL State Reason
----------------------------------------------------------------------
1 ethernet1/1/7 port-channel10 rx N/A N/A N/A N/A true Is UP
Monitor session conguration
The maximum number of port monitoring sessions, including local and remote sessions, is 18. All monitored frames are tagged if the
congured monitoring direction is egress (outgoing) and if the monitored port (MD) is a L2 or L3 port.
If the MD port is a L2 port, the frames are tagged with the VLAN ID of the VLAN to which the MD belongs. If the MD port is a L3 port, the
frames are tagged with VLAN ID 4095. If the MD port is in a L3 VLAN, the frames are tagged with the L3 VLAN ID.
OS10 continues to mirror incoming and outgoing trac owing on the MD port (source interface) even when the spanning-tree state of
the source port transitions from Forwarding to Blocking.
Change destination port
OS10# show monitor session all
S.Id Source Destination Dir SrcIP DstIP DSCP TTL State Reason
--------------------------------------------------------------------
1 vlan20 port-channel10 rx N/A N/A N/A N/A true Is UP
OS10(config)# monitor session 1 type local
OS10(conf-mon-local-1)# source interface vlan 20 rx
OS10(conf-mon-local-1)# destination interface ethernet 1/1/7
OS10(conf-mon-local-1)# exit
OS10(config)# do commit
OS10(config)# do show monitor session all
S.Id Source Destination Dir SrcIP DstIP DSCP TTL State Reason
------------------------------------------------------------------
1 vlan20 ethernet1/1/7 rx N/A N/A N/A N/A true Is UP
Congure port-channel as destination port
OS10(config)# monitor session 2 type local
OS10(conf-mon-local-2)# source interface ethernet 1/1/8 rx
OS10(conf-mon-local-2)# destination interface port-channel 10
OS10(conf-mon-local-2)# no shutdown
View monitoring session
In the State eld, true indicates that the port is enabled. In the Reason eld, Is UP indicates that hardware resources are allocated.
OS10# show monitor session all
S.Id Source Destination Dir SrcIP DstIP DSCP TTL State Reason
----------------------------------------------------------------------------
1 vlan20 ethernet1/1/7 rx N/A N/A N/A N/A true Is UP
2 ethernet1/1/8 port-channel10 rx N/A N/A N/A N/A true Is UP
Flow-based monitoring
Flow-based monitoring conserves bandwidth by inspecting only specied trac instead of all interface trac. Using ow-based monitoring,
you can monitor only trac received by the source port that matches criteria in ingress access-lists.
1 Enable ow-based monitoring for a monitoring session in MONITOR-SESSION mode.
flow-based enable
186
Layer 2