Management and Configuration Guide K/KA/KB.15.15

Configuring a mirroring policy to select inbound traffic
Syntax
class ipv4 | ipv6 classname [ no ] [seq-number] [ match |
ignore ip-protocol source-address destination-address ]
[precedence precedence-value] [tos tos-value] [ip-dscp
codepoint] [vlan vlan-id]
Syntax
policy mirror policy-name [no] [seq-number] [ class ipv4 | ipv6
classname action mirror session ] [ action mirror session
]... [ no ]
default-class action mirror session [ no ] [ interface
port/trunk | vlan vid-# ]
service-policy mirror-policy-name in
In the policy mirror command, the mirror session parameter accepts a number (1 to
4) or name, if the specified mirroring session has already been configured with the name name-str
option in the mirror command.
The [no] interface | vlan service-policy in command removes the mirroring policy
from a port, VLAN, trunk, or mesh interface for a specified session, but leaves the session available
for other assignments.
Configuring MAC-based criteria to select traffic
Syntax
[ no ] monitor mac mac-addr [ src | dst | both ] mirror
session
Enter the monitor mac mirror command at the global configuration level.
Use the no form of the complete Command syntax (for example, no monitor
mac 112233-445566 src mirror 3) to remove a MAC address as mirroring
criteria from an active session on the switch without removing the session itself.
Configuring a remote mirroring destination on the remote switch
Syntax
mirror endpoint ip src-ip src-udp-port dst-ip exit-port
[truncation]
Configuring a remote mirroring destination on the local switch
Syntax
mirror session remote ip src-ip src-udp-port dst-ip
Configuring a local mirroring destination on the local switch
Syntax
mirror session port exit-port
Configuring a remote mirroring destination on the remote switch 319