If mirroring is configured on the main interface, will traffic of its sub-interface be mirrored

23

If mirroring is configured on the main interface, traffic of its sub-interface will be mirrored.

Other related questions:
If mirroring is configured on the main interface, will the traffic of the sub-interface be mirrored to the observing port
Yes, the traffic of the sub-interface will be mirrored to the observing port

How to configure interface mirroring on AR routers
By configuring local interface mirroring (one mirroring interface or multiple mirroring interfaces), you can replicate the packets transmitted through the interface to local monitoring devices for analysis and surveillance.
Note:
Interfaces used in the example are just for reference. Configure local interface mirroring based on actual interface information in practice.
Before configuring local interface mirroring, ensure that the link protocol state of the interface is Up.
In the configuration commands, inbound indicates the inbound mirroring traffic and outbound indicates the outbound mirroring traffic. You can change outbound to inbound in the commands if you need outgoing mirroring traffic.

Scenario 1: Configure local interface mirroring (one mirroring interface)
(1)Configure the observing interface
#Configure GE0/0/1 as the local observing interface on the router.
system-view
[Huawei] observe-port interface gigabitethernet 0/0/1
(2)Configure the mirroring interface
#Configure GE0/0/2 as the mirroring interface, and bind the inbound mirroring traffic to the local observing interface, that is, replicate the packets received by the mirroring interface to the local observing interface.
[Huawei] interface gigabitethernet 0/0/2
[Huawei-GigabitEthernet0/0/2] mirror to observe-port inbound
[Huawei-GigabitEthernet0/0/2] return

For details, select Configuration > CLI-based Configuration > Network Management and Monitoring Configuration Guide >
Mirroring Configuration > Configuration Examples > Example for Configuring 1:1 Local Port Mirroring in the following URL: [http://support.huawei.com/hedex/hdx.do?docid=EDOC1000116356&id=dc_cfg_mirror_1131&text=Example%2520for%2520Configuring%25201%253A1%2520Local%2520Port%2520Mirroring&lang=en">Product Documentation.

Scenario 2: Configure local interface mirroring (multiple mirroring interfaces)
(1)Configure the observing interface
#Configure Eth0/0/1 as the local observing interface on the router.
system-view
[Huawei] observe-port interface ethernet 0/0/1
(2)Configure the mirroring interface.
Configure Eth0/0/0 as the mirroring interface on the router.
[Huawei] interface ethernet 0/0/0
[Huawei-Ethernet0/0/0] mirror to observe-port inbound
[Huawei-Ethernet0/0/0] quit
# Configure Eth0/0/2 as the mirroring interface on the router.
[Huawei] interface ethernet 0/0/2
[Huawei-Ethernet0/0/2] mirror to observe-port inbound
[Huawei-Ethernet0/0/2] return

For details, select Configuration > CLI-based Configuration > Network Management and Monitoring Configuration Guide >
Mirroring Configuration > Configuration Examples > Example for Configuring N:1 Local Port Mirroring in the following URL: Product Documentation.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top