The port-mirroring to command specifies an observing port for mirroring.
The undo port-mirroring to command deletes an observing port for mirroring.
By default, no observing port is specified for an interface.
port-mirroring to observe-index observe-index
port-mirroring to observe-index observe-index &<2-8>
port-mirroring to null0
port-mirroring to observe-index observe-index { inbound | outbound }
undo port-mirroring to observe-index observe-index
undo port-mirroring to observe-index observe-index &<2-8>
undo port-mirroring to null0
undo port-mirroring to observe-index observe-index { inbound | outbound }
Parameter | Description | Value |
---|---|---|
observe-index observe-index | Specifies the index of an observing port. |
The value is an integer that ranges from 1 to 255. |
null0 | Indicates that interface null0 functions as the observing port. If no actual observing port is available, you can set the observing port to null0, which allows the device to obtain traffic information on a mirrored port using the user-defined offset and statstics collection. |
- |
inbound | Assign mirror to the inbound of an interface. |
- |
outbound | Assign mirror to the outbound of an interface. |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10G LAN interface view, 10G WAN interface view, 25GE sub-interface view, 25GE interface view, 40GE sub-interface view, 40GE interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, EVC view of an Eth-Trunk interface, EVC view of an Ethernet interface
Usage Scenario
You can specify an observing port using one of the following methods:
Prerequisites
You have configured a mirrored port and an observing port.
Precautions
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [~HUAWEI-GigabitEthernet0/1/0] port-mirroring to null0
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [~HUAWEI-GigabitEthernet0/1/0] port-mirroring to observe-index 1 2
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [~HUAWEI-GigabitEthernet0/1/0] port-mirroring to observe-index 1 inbound