Checking the mirroring configuration on an S series switch

For an S series switch (except the S1700), you can run the following commands to check the mirroring configuration:
- Run the display current-configuration command to check the mirroring configuration in the configuration file of the switch.
- Run the display observe-port command to check the observing port configuration.
- Run the display port-mirroring command to check the configuration of port mirroring, traffic mirroring, VLAN mirroring, and MAC address mirroring.
- Check the MQC-based traffic mirroring configuration and its application.
1. Run the display traffic behavior user-defined [ behavior-name ] command to check the traffic behavior configuration.
2. Run the display traffic classifier user-defined [ classifier-name ] command to check the traffic classifier configuration.
3. Run the display traffic policy user-defined command to check the traffic policy configuration.
4. Run the display traffic policy user-defined policy-name [ classifier classifier-name ] command to check the traffic policy configuration.
5. Run the display traffic-policy applied-record [ policy-name ] command to check the application record of a specified traffic policy.
- Check the ACL-based traffic mirroring application.
Run the following commands to check statistics on the packets matching rules. Before running these commands, run the traffic-statistic command in the system view or the traffic-statistic command in the interface view to configure the ACL-based traffic statistics collection function.
1. display traffic-statistics interface inbound
2. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound
3. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl { bas-acl | adv-acl | user-acl | acl-name | l2-acl } [ rule rule-id ]
4. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl ipv6 { bas-acl | adv-acl | acl-name } [ rule rule-id ]
5. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl { acl-name | l2-acl } [ rule rule-id ] acl { bas-acl | adv-acl | acl-name } [ rule rule-id ]

Scroll to top