A physical port must be configured as an observing port before the mirroring function is configured. You can configure a single observing port or multiple observing ports in a batch. Observing ports configured in a batch are added to an observing port group. After a mirrored port is configured, the mirrored port is bound to the observing port group. Therefore, such batch configuration is usually performed in 1:N mirroring to simplify the configuration.
Configuring a Single Observing Port
-
Configure a local observing port, which directly connects to a monitoring device.
<HUAWEI> system-view [HUAWEI] observe-port 1 interface gigabitethernet 1/0/1
-
Configure a Layer 2 remote observing port, which forwards mirroring packets to a monitoring device across a Layer 2 network.
<HUAWEI> system-view [HUAWEI] observe-port 1 interface gigabitethernet 1/0/1 vlan 10
-
Configure a Layer 3 remote observing port, which forwards mirroring packets to a monitoring device across a Layer 3 network. (Only S7700/S9700 support the configuration of a Layer 3 remote observing port.)
<HUAWEI> system-view [HUAWEI] observe-port 1 interface gigabitethernet 1/0/1 destination-ip 10.1.1.1 source-ip 10.2.2.2
Configure Observing Ports in a Batch (only in V200R005 and Later Versions)
-
Configure local observing ports in a batch, which directly connect to monitoring devices.
<HUAWEI> system-view [HUAWEI] observe-port 1 interface-range gigabitethernet 1/0/1 to gigabitEthernet 1/0/3
-
Configure Layer 2 remote observing ports, which forward mirroring packets to monitoring devices across a Layer 2 network.
<HUAWEI> system-view [HUAWEI] observe-port 1 interface-range gigabitethernet 1/0/1 to gigabitEthernet 1/0/3 vlan 10
-
Layer 3 remote observing ports cannot be configured in a batch.
More Information: S Series Switches Common Operation Guide