How to configure local interface mirroring on AR series routers

By configuring local interface mirroring, you can replicate the packets transmitted through the interface to local monitoring devices for analysis and surveillance.
Before configuring local interface mirroring, ensure that the link protocol state of the interface is Up.

1. Configure the local observing interface.
Background
In local interface mirroring, monitoring devices are directly connected to the observing interface.
It is recommended that other configurations should not be performed on an interface that is configured as the observing interface to prevent its mirroring function from being affected:
- If not only the mirroring packets but also the packets of other services are transmitted through the observing interface, the source of the packets cannot be distinguished.
- If traffic congests on the observing interface, mirroring packets may be discarded because the priority of the mirroring packets is lower.
Procedure
Run the system-view command to enter the system view.
Run the observe-port interface interface-type interface-number command to configure the local observing interface.

2. Configure the local mirroring interface.
Background
An interface of any type can be configured as a mirroring interface.
If an Eth-trunk interface is configured as a mirroring interface, a member interface of the Eth-trunk interface cannot be configured as a mirroring interface separately. If you want to configure a member interface of the Eth-trunk as a mirroring interface, you must unbind the member interface from the Eth-trunk interface.
If a member interface of an Eth-trunk is configured as a mirroring interface, the Eth-trunk interface cannot be configured as a mirroring interface. If you want to configure the Eth-trunk interface as a mirroring interface, you must unbind the member interface that is configured as the mirroring interface from the Eth-trunk interface.
Procedure
Run the system-view command to enter the system view.
Run the interface interface-type interface-number command to enter the interface view.
Run the mirror to observe-port { both | inbound | outbound } [ exclude-link-head ] command to configure the local mirroring interface.

Scroll to top