mirror-filter source vlan
By default, VLAN-based filtering is disabled.
The no form of the command
removes the mirror-filter for forwarding specified VLANs.
A maximum of 72 VLANs can be mirror-filtered, contingent on TCAM availability.
When you configure VLAN mirror filtering, keep in mind the potential for bandwidth congestion on destination uplinks. If the RSPAN destination uplink is the same as the forwarding path, the number of mirror traffic sources configured should be appropriate to the bandwidth available for forwarding traffic.
The following example configures a single VLAN for forwarding.
device# configure terminal device(config)# mirror-filter source vlan 100
The following example configures two single VLANs for forwarding.
device# configure terminal device(config)# mirror-filter source vlan 3000 3500
The following example configures RSPAN-based port mirroring on ports 1/1/1 and 1/1/2 and configures LAG 1 as the destination.
device# configure terminal device(config)# vlan 3000 by port device(config-vlan-3000)# untagged ethernet 1/1/1 device(config-vlan-3000)# tagged ethernet 1/1/2 . . . device(config-vlan-3000)# exit device(config)# vlan 3500 by port device(config-vlan-3500)# tagged ethernet 1/1/1 to 1/1/2 . . . device(config-vlan-3500)# exit device(config)# rspan-vlan 4000 device(config-rspan-vlan-4000)# tagged lag 1 device(config-rspan-vlan-4000)# rspan destination lag 1 device(config-rspan-vlan-4000)# rspan source monitor-in ethernet 1/1/1 to 1/1/2 device(config-rspan-vlan-4000)# end device# show vlan brief ethernet 1/1/1 Port 1/1/1 is a member of 2 VLANs VLANs 3000 3500 Untagged VLAN : Tagged VLANs : 3000 3500
In the example, the mirrored traffic from ports 1/1/1 and 1/1/2 is sent through LAG 1. Port 1/1/1 is an untagged member of VLAN 3000 and a tagged member of VLAN 3500. Traffic for both these VLANs inbound to 1/1/1 is mirrored and sent through the destination port, LAG 1. Because VLAN-based filtering is enabled for VLAN 3000, mirrored traffic from that VLAN is filtered, and the RSPAN destination, LAG 1, carries on VLAN 3500 traffic arriving on port 1/1/1.
| Release version | Command history |
|---|---|
| 08.0.90f | This command was introduced. |