acl
To configure ACL-based traffic mirroring, use the acl command in the monitor session configuration mode. To stop ACL-based traffic mirroring, use the no form of this command.
acl
Command Default
No default behavior or values
Command Modes
Monitor session configuration
Command History
Release |
Modification |
---|---|
Release 6.1.3 |
This command was introduced. |
Usage Guidelines
If you use the acl command, traffic is mirrored according to the definition of the global interface access list (ACL) defined in one of the following commands: ipv4 access-list , ipv6 access-list .
Even when the acl command is configured on the source mirroring port, if the ACL configuration command does not use the capture keyword, no traffic gets mirrored.
If the ACL configuration uses the capture keyword, but the acl command is not configured on the source port, although traffic is mirrored, no access list configuration is applied.
Examples
This example shows how to configure ACL-based traffic mirroring on the interface:
Router(config)# monitor-session tm_example
Router(config-es-acl)# 10 deny 0000.1234.5678 0000.abcd.abcd any capture
Router(config-es-acl)# exit
Router(config)# interface GigabitEthernet0/2/0/0
Router(config-if)# monitor-session tm_example direction rx-only
Router(config-if)# acl
Router(config-if)# l2transport
Router(config-if-l2)# exit
Router(config-if)# end