Traffic Mirroring Configuration Examples; Example For Mirroring Traffic To An Interface; Configuration Procedure - H3C S5500-SI Series Operation Manual

Hide thumbs Also See for S5500-SI Series:
Table of Contents

Advertisement

To do...
Display QoS policy
configuration information

Traffic Mirroring Configuration Examples

Example for Mirroring Traffic to an Interface

Network requirements
On the network as shown in
connected to GigabitEthernet1/0/1 of the switch; a data monitoring device is connected to
GigabitEthernet1/0/2 of the switch.
Monitor and analyze packets sent by Host A on the data monitoring device.
Figure 9-1 Network diagram for configuring traffic mirroring to a port

Configuration Procedure

Configure Switch:
# Enter system view.
<Sysname> system-view
# Configure basic IPv4 ACL 2000 to match packets with the source IP address 192.168.0.1.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 192.168.0.1 0
[Sysname-acl-basic-2000] quit
# Create class 1 and configure the class to use ACL 2000 for traffic classification.
[Sysname] traffic classifier 1
[Sysname-classifier-1] if-match acl 2000
[Sysname-classifier-1] quit
# Create behavior 1 and configure the action of mirroring traffic to GigabitEthernet1/0/2 in the traffic
behavior.
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface GigabitEthernet 1/0/2
[Sysname-behavior-1] quit
# Create QoS policy 1 and associate traffic behavior 1 with class 1 in the QoS policy.
Use the command...
display qos policy
user-defined [ policy-name
[ classifier tcl-name ] ]
Figure
9-1, Host A (with the IP address 192.168.0.1) and Host B are
9-3
Remarks
Available in any view

Advertisement

Chapters

Table of Contents
loading

Table of Contents