Chapter 4 Service Configuration
This instance describes how to configure port mirroring on a switch and port 2 can
monitor the packets on port 1, see
Figure 4-2
.
Figure 4-2 Port Mirroring Configuration Instance
l
Configuration Procedure
1.
The following example describes how to set port mirroring in ingress direction.
zte(cfg)#set mirror session 1 add source-port 1 ingress
zte(cfg)#set mirror session 1 add dest-port 2 ingress
zte(cfg)#set mirror statistical sample-interval 100 ingress
/*set the port sample-interval of mirror statistic*/
zte(cfg)#set mirror rspan-tag vlan-id 100 priority 7 ingress
/*set VLAN tag added after port mirroring*/
2.
The following example describes how to set port mirroring in egress direction.
zte(cfg)#set mirror add source-port 1 egress
zte(cfg)#set mirror add dest-port 2 egress
zte(cfg)#set mirror statistical sample-interval 100 egress
/*set the port sample-interval of mirror statistic*/
zte(cfg)#set mirror rspan-tag vlan-id 100 priority 7 engress
/*set VLAN tag added after port mirroring*/
l
Configuration Verification
Check port mirroring configuration
zte(cfg)#show mirror session 1
Session 1:
Ingress mirror information:
---------------------------
Source port
: 1
Destination port:
2
Egress mirror information:
---------------------------
Source port
: 1
Destination port:
2
zte(cfg)#show mirror rspan
Ingress Rspan VLAN tag: priority 7, vlan 100
Egress
Rspan VLAN tag: priority 7, vlan 100
zte(cfg)#show mirror statistical
Ingress statistical mirror: sample-interval 100
Egress
statistical mirror: sample-interval 100
4-11
SJ-20120409144109-002|2012-07-02(R1.0)
ZTE Proprietary and Confidential
Содержание ZXR10 2910E-PS
Страница 6: ...IV ...
Страница 8: ...II ...
Страница 264: ...Tables This page intentionally left blank ...