Hi Matt, SPAN without L2 is putting the packet mirror on an interface (only main interface) input and/or output irrespectively of it in L2 or L3 mode.
SPAN with L2 means to perform packet mirror on L2 input and/or output on an interface or sub-interface which is in a bridge domain or cross connect. One thing to note with L2 SPAN is that the output/destination interface used for mirrored packet must also be in L2 mode. Using L2 interface for output allows user to configure VLAN rewrite operation on that interface on mirrored packets. If SPAN is configure on an interface with both L2 and without L2, you will get packet mirrored twice if the interface is set to L2 bridging or xconnect. Packet is replicated once on input at the interface and replicated again on L2-input to a BD/xconnect. If interface is in L3 mode, L2 SPAN will not have any effect. Regards, John -----Original Message----- From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Matthew Smith Sent: Thursday, April 26, 2018 11:05 AM To: vpp-dev <vpp-dev@lists.fd.io> Subject: [vpp-dev] SPAN questions Is the L2 flag when adding a SPAN mirror intended to indicate that the source port is a member of a bridge domain? I noticed that SPAN can be configured on a port with the L2 flag set and also with it unset. So configurations for L2 and ! L2 can both exist at the same time. E.g.: vpp# set interface span TenGigabitEthernet2/0/1 destination TenGigabitEthernet2/0/0 both vpp# set interface span TenGigabitEthernet2/0/1 l2 destination TenGigabitEthernet2/0/0 both vpp# show interface span Source Destination Device L2 TenGigabitEthernet2/ TenGigabitEthernet2/ ( both) ( both) Are there cases where this would be necessary? Or do the graph nodes for only one of {L2, device} get used for a source interface at any given time? Thanks, -Matt -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9081): https://lists.fd.io/g/vpp-dev/message/9081 View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/18098046 Mute This Topic: https://lists.fd.io/mt/18098046/21656 New Topic: https://lists.fd.io/g/vpp-dev/post Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656 Group Home: https://lists.fd.io/g/vpp-dev Contact Group Owner: vpp-dev+ow...@lists.fd.io Terms of Service: https://lists.fd.io/static/tos Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub -=-=-=-=-=-=-=-=-=-=-=-