Configuring Local Port Mirroring With Multiple Monitor Ports Example - HP 5820X Switch Configuration Manual

Network management and monitoring
Hide thumbs Also See for 5820X Switch:
Table of Contents

Advertisement

[DeviceB-GigabitEthernet1/0/1] quit
# Configure GigabitEthernet 1/0/2 as a trunk port that permits the packets of VLAN 2 to pass through.
[DeviceB-GigabitEthernet1/0/1] quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 2
[DeviceB-GigabitEthernet1/0/2] quit
Configure Device C (the destination device)
3.
# Configure GigabitEthernet 1/0/1 as a trunk port that permits the packets of VLAN 2 to pass through.
<DeviceC> system-view
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 2
[DeviceC-GigabitEthernet1/0/1] quit
# Create a remote destination mirroring group.
[DeviceC] mirroring-group 1 remote-destination
# Create VLAN 2 and disable the MAC address learning function for VLAN 2.
[DeviceC] vlan 2
[DeviceC-vlan2] mac-address mac-learning disable
[DeviceC-vlan2] quit
# Configure VLAN 2 as the remote probe VLAN of the mirroring group; configure GigabitEthernet 1/0/2
as the monitor port of the mirroring group; disable STP on GigabitEthernet 1/0/2 and assign the port to
VLAN 2.
[DeviceC] mirroring-group 1 remote-probe vlan 2
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] mirroring-group 1 monitor-port
[DeviceC-GigabitEthernet1/0/2] undo stp enable
[DeviceC-GigabitEthernet1/0/2] port access vlan 2
[DeviceC-GigabitEthernet1/0/2] quit
Verify the configurations
4.
After the configurations are completed, you can monitor all packets received and sent by the marketing
department on the server.
Configuring local port mirroring with multiple monitor ports
example
Network requirements
As shown in
GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 respectively. Configure port
mirroring to enable all three data monitoring devices, Server A, Server B, and Server C, to monitor both
the incoming and outgoing traffic of the three departments.
Figure
69, Dept. A, Dept. B, and Dept. C are connected to Switch A through ports
184

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5800 switch

Table of Contents