Mirroring Traffic That Matches An Acl Rule - Huawei S3700HI Configuration Manual - Qos

Table of Contents

Advertisement

S3700HI Ethernet Switches
Configuration Guide - QoS
l
----End

1.5.6 Mirroring Traffic That Matches an ACL Rule

Context
By configuring traffic mirroring, you can mirror packets that match an ACL rule to the specified
interface for the ease of packet analysis.
Procedure
l
Issue 01 (2012-03-15)
Configuring traffic statistics on an interface
1.
Run:
system-view
The system view is displayed.
2.
Run:
interface interface-type interface-number
The interface view is displayed.
Or, run:
interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
3.
Run:
traffic-statistic inbound acl { [ ipv6 ] {bas-acl | adv-acl | name acl-
name } | l2-acl | user-acl } [ rule rule-id ]
The statistics on the incoming packets matching an ACL rule are collected on an
interface.
NOTE
A Layer 2 ACL and a Layer 3 ACL can be set in the traffic-statistic command simultaneously.
The Layer 3 ACL and its rules can be configured only after the Layer 2 ACL and its rules are
configured. The Layer 2 ACL number ranges from 4000 to 4999 and the Layer 3 ACL number
ranges from 2000 to 2999 or 3000 to 3999.
To configure both Layer 2 ACLs and Layer 3 ACLs on an interface of a switch, use the
following command:
traffic-statistic inbound acl { l2-acl | name acl-name } [ rule rule-id ] acl { bas-acl | adv-
acl | name acl-name } [ rule rule-id ] [ by-bytes ]
Configure traffic mirroring globally.
1.
Run:
system-view
The system view is displayed.
2.
Run:
traffic-mirror [ vlan vlan-id ] inbound { acl { [ ipv6 ] { bas-acl | adv-
acl | name acl-name } | l2-acl | user-acl } } [ rule rule-id ] to observe-
port o-index
The incoming packets matching an ACL rule are mirrored on an interface.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1 Class-based QoS Configuration
[ by-bytes ]
35

Advertisement

Table of Contents
loading

Table of Contents