Configuring Flow Based Mirroring requires you to create ACLs that define the rules for the actions that will be performed on the targetted traffic. Multiple ACLs can be created and applied on the target interface. The following limitations apply:
The following are allowed as source ports, Physical Ethernet, Port Channel, VLAN, or Virtual Ethernet.
The following are allowed as destination ports, Physical Ethernet or Port Channel.
You must create your ACLs and apply them to the source ports for mirroring.
Disable protocols on the destination interfaces.
This configures the mirroring of the bi-directional traffic from ports 0/1 to 0/3.
This example summarizes the above configuration
SLX # configure terminal SLX (config)# interface ethernet 0/3 SLX (conf-if-eth-0/3)# lldp disable SLX (conf-if-eth-0/3)# exit SLX (config)#ip access-list extended mirror-my-port SLX (config-ipacl-ext)# SLX (config-ipacl-ext)#seq 5 permit ip host 10.10.10.1 any count mirror SLX (config-ipacl-ext)# exit SLX (config)# interface ethernet 0/1 SLX (config-eth-0/1)# ip access-group mirror-my-port in SLX (config-eth-0/1)# ip access-group mirror-my-port out SLX (config-eth-0/1)# exit SLX (config)# monitor session 25 SLX (config-session-25)# source ethernet 0/1 destination ethernet 0/3 direction both flow-based SLX (config-session-25)# exit
This examples show a configuration for Flow Based Mirroring from a Port Channel port to an Ethernet port.
SLX (config)# monitor session 26 SLX (config-session-26)# source port-channel 1 destination ethernet 0/3 direction rx flow-based
This example shows a configuration for Flow Based Mirroring from an Ethernet port to a Port Channel port.
SLX (config)# monitor session 27 SLX (config-session-27)# source ethernet 0/1 destination port-channel 3 direction tx flow-based
This example shows a configuration for Flow Based Mirroring from a VE to an Ethernet port.
SLX (config)# monitor session 28 SLX (config-session-28)# source ve 1 destination ethernet 0/3 direction both flow-based
This example show a configuration for Flow Based Mirroring from a VLAN to an Ethernet port.
SLX (config)# monitor session 29 SLX (config-session-29)# source vlan 100 destination ethernet 0/3 direction tx flow-based