Configurations on the destination device
You need only configure a remote destination mirroring group on the destination device. For the detailed
configuration procedure, refer to
Displaying and Maintaining Traffic Mirroring
To do...
Display the configuration
information about the user-defined
traffic behavior
Display the configuration
information about the user-defined
policy
Traffic Mirroring Configuration Examples
Traffic Mirroring Configuration Example
Network Requirements
The user's network is as described below:
Host A (with the IP address 192.168.0.1) and Host B are connected to GigabitEthernet 2/0/1 of the
switch.
The data monitoring device is connected to GigabitEthernet 2/0/2 of the switch.
It is required to monitor and analyze packets sent by Host A on the data monitoring device.
Figure 2-1 Network diagram for configuring traffic mirroring to a port
Configuration Procedure
Configuration on the 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 use basic ACL 2000 as the match criteria.
Creating a remote destination mirroring
Use the command...
display traffic behavior
user-defined behavior-name
display qos policy user-defined
policy-name
2-3
group.
Remarks
Available in any view