Configuring a remote source group on the source device
Creating a remote source group
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a remote source group. | mirroring-group group-id remote-source | By default, no remote source groups exist. |
Configuring source ports for a remote source group
To configure source ports for a mirroring group, use one of the following methods:
Assign a list of source ports to the mirroring group in system view.
Assign a port to the mirroring group as a source port in interface view.
To assign multiple ports to the mirroring group as source ports in interface view, repeat the operation.
When you configure source ports for a remote source group, follow these restrictions and guidelines:
Do not assign a source port of a mirroring group to the remote probe VLAN of the mirroring group.
A mirroring group can contain multiple source ports.
A port can be assigned to different mirroring groups as follows:
When acting as a source port for unidirectional mirroring, the port can be assigned to up to four mirroring groups.
When acting as a source port for bidirectional mirroring, the port can be assigned to up to two mirroring groups.
When acting as a source port for unidirectional and bidirectional mirroring, the port can be assigned to up to three mirroring groups. One mirroring group is used for bidirectional mirroring and the other two for unidirectional mirroring.
A Layer 2 or Layer 3 aggregate interface cannot be configured as a source port.
A source port cannot be configured as a reflector port, monitor port, or egress port.
Configuring source ports for a remote source group in system view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure source ports for a remote source group. | mirroring-group group-id mirroring-port interface-list { both | inbound | outbound } | By default, no source port is configured for a remote source group. |
Configuring a source port for a remote source group in interface view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Configure the port as a source port for a remote source group. | mirroring-group group-id mirroring-port { both | inbound | outbound } | By default, a port does not act as a source port for any remote source groups. |
Configuring source CPUs for a remote source group
A mirroring group can contain multiple source CPUs.
The device supports mirroring only inbound traffic of a source CPU.
To configure source CPUs for a remote source group:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure source CPUs for a remote source group. | mirroring-group group-id mirroring-cpu slot slot-number-list inbound | By default, no source CPU is configured for a remote source group. |
Configuring the reflector port for a remote source group
To configure the reflector port for a remote source group, use one of the following methods:
Configure the reflector port for the remote source group in system view.
Assign a port to the remote source group as the reflector port in interface view.
When you configure the reflector port for a remote source group, follow these restrictions and guidelines:
The port to be configured as a reflector port must be a port not in use. Do not connect a network cable to a reflector port.
When a port is configured as a reflector port, all existing configurations of the port are cleared. You cannot configure other features on the reflector port.
A mirroring group can contain only one reflector port.
You cannot change the duplex mode or speed for a reflector port.
If an IRF port is bound to only one physical interface, do not configure the physical interface as a reflector port. Otherwise, the IRF might split.
Configuring the reflector port for a remote source group in system view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure the reflector port for a remote source group. | mirroring-group group-id reflector-port interface-type interface-number | By default, no reflector port is configured for a remote source group. |
Configuring the reflector port for a remote source group in interface view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Configure the port as the reflector port for a remote source group. | mirroring-group group-id reflector-port | By default, a port does not act as the reflector port for any remote source groups. |
Configuring the egress port for a remote source group
To configure the egress port for a remote source group, use one of the following methods:
Configure the egress port for the remote source group in system view.
Assign a port to the remote source group as the egress port in interface view.
When you configure the egress port for a remote source group, follow these restrictions and guidelines:
Disable the following features on the egress port:
Spanning tree.
802.1X.
IGMP snooping.
Static ARP.
MAC address learning.
A mirroring group contains only one egress port.
A port of an existing mirroring group cannot be configured as an egress port.
Configuring the egress port for a remote source group in system view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure the egress port for a remote source group. | mirroring-group group-id monitor-egress interface-type interface-number | By default, no egress port is configured for a remote source group. |
Configuring the egress port for a remote source group in interface view
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Configure the port as the egress port for a remote source group. | mirroring-group group-id monitor-egress | By default, a port does not act as the egress port for any remote source groups. |
Configuring the remote probe VLAN for a remote source group
When you configure the remote probe VLAN for a remote source group, follow these restrictions and guidelines:
Only an existing static VLAN can be configured as a remote probe VLAN.
When a VLAN is configured as a remote probe VLAN, use the remote probe VLAN for port mirroring exclusively.
The remote mirroring groups on the source device and destination device must use the same remote probe VLAN.
To configure the remote probe VLAN for a remote source group:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure the remote probe VLAN for a remote source group. | mirroring-group group-id remote-probe vlan vlan-id | By default, no remote probe VLAN is configured for a remote source group. |