CLI user manual
33
Chapter 14 Port mirroring
14.1 Enter the port mirroring view
Port mirroring configuration includes:
1. Port mirroring configuration;
2. Delete port mirroring;
3. View port mirroring;
Table 14.1.1 to enter the port mirroring configuration view:
Operating
Command
Description
Enter the port mirroring configuration
view
Mirror
To perform the operation in the
system
14.2 Port mirroring configuration / delete
The user can use the following command to port mirroring configuration / delete.
Table 14.2.1 port mirroring configuration / delete command:
Operating
Command
Description
Port mirroring
configuration
Config
{0|1|2}
<mirror_port>
<port>
{0|1|2}:Data type
0 --all data
1 --Ingress data only
2 --Egress data only
<
mirror_port
>:Mirror port 1,2,3-8
<port>:Acquisition port
Port mirroring
delete
Close mirror
In view of the port mirroring
Example: the allocation of port 3 to collect all the data ports 1 and 2.
Switch(Mirror)#config 0 1-2 3
Mirror portlist: 1,2
Collect port : 3
Watch direction: all data
[OK]
14.3 Display port mirroring information
Table 14.3.1 view port mirroring information command:
Operating
Command
Description
Display port mirroring information
Show mirror
In view of the port mirroring