244
C
28: C
HAPTER
ONFIGURATION FOR
Configuring RSPAN
M
F
IRRORING
EATURES
Configuration procedure
Table 214 Configure VLAN-based mirroring
Operation
Enter system view
Define a VLAN-based local
mirroring group
Configure VLAN-based
mirroring
Enter Ethernet port view of
the destination port
Define the current port as
the destination port
Display the parameter
settings of the mirroring
Configuration example
Configure VLAN-based mirroring to mirror the packets received by all ports in
■
VLAN 2.
The destination port is GigabitEthernet1/0/2.
■
Configuration procedure:
<S4200G> system-view
System View: return to User View with Ctrl+Z.
[4200G] mirroring-group 1 local
[4200G] mirroring-group 1 mirroring-vlan 2 inbound
[4200G] interface gigabitethernet 1/0/2
[4200G-GigabitEthernet1/0/2] mirroring-group 1 monitor-port
The RSPAN feature of S4200G allows for MAC-based and VLAN-based remote
mirroring.
You can implement MAC-based and VLAN-based remote mirroring by performing
MAC-based and VLAN-based configurations on the remote source mirroring group of
the source switch.
Configuration prerequisites
The source switch, intermediate switch, and the destination switch have been
■
determined.
The source port, the reflector port, the destination port, and the Remote-probe
■
VLAN have been determined.
The direction of the packets to be monitored has been determined.
■
Intermediate switch and source switch support the function of
■
MAC-learning-disabled-based-on-VLAN, which also is enabled for Remote-probe
VLAN.
If you are configuring MAC-based remote mirroring, verify that the MAC address
■
you enter is a static MAC address that already exists in the MAC address entries.
If you are configuring VLAN-based remote mirroring, determine the corresponding
■
VLAN ID.
Command
system-view
mirroring-group group-id local
mirroring-group group-id
mirroring-vlan vlan-id inbound
interface interface-type
interface-number
mirroring-group group-id
monitor-port
display mirroring-group
{ group-id | all | local }
Description
-
Required
Required
-
Required
Required
The display command can be
executed in any view