ZXR10 2900 Series User Manual
Port Mirroring Basic Configuration
To mirror the ports, perform the following steps.
Command
Function
zte(cfg)#
set mirror add source-port
<
portlist
>{
ingress
|
egress
}
This adds an egress or
ingress mirroring port.
zte(cfg)#
set mirror delete source-port
<
portlist
>{
ingress
|
egress
}
This deletes an egress
or ingress mirroring
port.
zte(cfg)#
set mirror add dest-port
<
portid
>{
ingress
|
egress
}
This sets an egress or
ingress monitoring port.
zte(cfg)#
set mirror delete dest-port
<
portid
>{
ingress
|
egress
}
This deletes an egress
or ingress monitoring
port.
zte(cfg)#
set mirror statistic
{
ingress
|
egress
}
sample-interval
<
1-2047
>
This sets sample mirror
statistic rate.
zte(cfg)#
show mirror
This displays
the configuration
information of port
mirroring.
Example
zte(cfg)#show mirror
Ingress mirror information:
---------------------------
Ingress statistical mirror :
sample-interval 1
Source port: none
Destination port: none
Egress mirror information:
---------------------------
Geport(sub card) egress statistical mirror :
sample-interval 1
Source port: none
Destination port: none
Port Mirroring Configuration Example
This example describes how to configure port mirroring on switch
and port 2 can monitor the packets on port 1, as shown in
Figure
40
.
F
IGURE
40 P
ORT
M
IRRORING
C
ONFIGURATION
E
XAMPLE
The configuration of switch:
74
Confidential and Proprietary Information of ZTE CORPORATION