mac

Commands for Mirroring Configuration
547
access-list <num>
Function: Specify the access control for the source of the mirror. The no form command
will disable this configuration.
Parameters: <session> is the session number for the mirror. Currently only 1 is
supported. <interface-list> is the list of source interfaces of the mirror which can be
separated by '-' and ';'. <num> is the number of the access list. rx means to filter the
datagram received by the interface. tx for the datagram sent out, and both means both
of income and outcome datagram.
Command Mode: Global Mode.
Usage Guide: This command is used to configure the source interfaces for the mirror. It
is not restricted the source interface of the mirror on the switch. The source can be one
interface, or can be multiple interfaces. For flow mirror, only datagram received can be
mirrored. The parameters can be rx, tx, both. The related access list should be
prepared before this command is issued. For how to configure the access list, please
refer to ACL configuration. The mirror can only be created after the destination interface
of the corresponding session has been configured.
Example: Configure the mirror interface 1/6 to filter with access list 120 in session 1.
Switch(config)#monitor session 1 source interface 1/6 access-list 120 rx
54.3 monitor session destination interface
Command: monitor session <session> destination interface <interface-number>
no monitor session <session> destination interface
<interface-number>
Function: Specify the destination interface of the mirror. The no form command will
disable this configuration.
Parameters: <session> is the session number of the mirror, which is currently limited to
1-4. <interface-number> is the destination interface of the mirror.
Default: None.
Command Mode: Global mode
Usage Guide: Only one destination mirror interface is supported on the switch. To be
mentioned. The interface which is configured as the destination of the mirror should not
be configured as the member of the interface trunk. And the maximum throughput of the
interface is recommended to be larger than the total throughput of the interfaces to be
mirrored. If the destination is removed, the mirror path configured will be removed at the
same time. And if the destination interface is reconfigured, the interface, CPU mirror path
will be recovered. To be mentioned, the flow mirror can only be recovered after the