The port-mirroring pe-vid command configures mirroring based on VLAN segments for inner and outer VLAN tags on a user-VLAN sub-interface.
The undo port-mirroring pe-vid command deletes the configuration.
By default, no mirrored port is configure on the Device.
Parameter | Description | Value |
---|---|---|
inbound |
Indicates incoming packets, to be specific, the packets received by the mirrored port. |
- |
outbound |
Indicates outgoing packets, to be specific, the packets sent by the mirrored port. |
- |
pe-vid low-vid |
Specifies the outer start VLAN ID of a double-tagged VLAN packet. |
The value is an integer ranging from 1 to 4094. |
to high-vid |
Specifies the outer end VLAN ID of a double-tagged VLAN packet. |
The value is an integer ranging from 1 to 4094. |
to ce-vlan-id-end |
Specifies the inner end VLAN ID of a double-tagged VLAN packet. |
The value is an integer ranging from 1 to 4094. |
ce-vid ce-vlan-id-begin |
Specifies the inner start VLAN ID of a double-tagged VLAN packet. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
If traffic on the BRAS's user-VLAN or anyother sub-interface, through which VLAN users access the IP core network, needs to be monitored and analyzed, mirroring can be configured for user traffic on the user-VLAN or anyother sub-interface based on the inner and outer VLAN ID.
Prerequisites
No other configuration is required before you run the port-mirroring command. To implement the mirroring function, you must configure an observing port and specify an observing port on an interface board.
Precautions
The same interface can serve as either the mirrored port or the observing port.
The observing port and mirrored port cannot be configured on the main interface or sub-interfaces of the same Eth-Trunk interface. You can specify the vlan parameter on a Layer 2 interface so that only packets with a specified VLAN ID are mirrored. When a Layer 2 interface is configured with the access type and is added to a VLAN using the port default vlan command, if only packets with a specified VLAN ID need to be mirrored, the original packets on the mirrored port do not carry any VLAN ID, but the mirrored packets sent by the observing carry one VLAN ID.