Displaying and maintaining port mirroring
To do...
Display the configuration of port
mirroring groups
Port mirroring configuration examples
Local port mirroring configuration example
Network requirements
On the network shown in
Device A connects to the marketing department through Ethernet 1/0/1 and to the technical
•
department through Ethernet 1/0/2. It connects to the server through Ethernet 1/0/3.
Configure local port mirroring in mirroring port mode to enable the server to monitor the
•
bidirectional traffic of the marketing department and the technical department.
Figure 47 Network diagram for local port mirroring configuration
Configuration procedure
Create a local mirroring group.
1.
# Create local mirroring group 1.
<DeviceA> system-view
[DeviceA] mirroring-group 1 local
# Configure Ethernet 1/0/1 and Ethernet 1/0/2 as mirroring ports and port Ethernet 1/0/3 as the
monitor port.
[DeviceA] mirroring-group 1 mirroring-port ethernet 1/0/1 ethernet 1/0/2 both
[DeviceA] mirroring-group 1 monitor-port ethernet 1/0/3
Use the command...
display mirroring-group { group-id
| all | local | remote-destination |
remote-source } [ | { begin |
exclude | include }
regular-expression ]
Figure
47:
138
Remarks
Available in any view