From “show interface” output, the rx/tx counters of TenGE4/0/0 matches that of 
tx/rx counters of 4/0/1.  So L2XC is working between them.  For the other L2XC 
pair, the rx counter of TenGE7/0/1 matches that of the tx counter of 7/0/0 so 
that also seem fine.  The rx of TenGE7/0/0 and tx of 7/0/1 are all 0’s which 
also matches.  Thus both L2XC pairs appear to function as expected.  Are you 
expecting packets in the TenGE7/0/0 to 7/0/1 direction and so think it is not 
working there?  Then you need to find out why TenGE7/0/0 is not receiving any 
packets.   -John

From: [email protected] <[email protected]> On Behalf Of 
[email protected]
Sent: Saturday, January 19, 2019 4:20 AM
To: [email protected]
Subject: [vpp-dev] L2 xconnect feature on multiple interface

Hi,

I want to use the L2 xconnect or L2 bridge feature on multiple interface , i.e 
suppose I have 4 ports :
x1 and x2  and also  y1 and y2.
I want to only do

vpp# set interface l2 xconnect x1 x2
vpp# set interface l2 xconnect x2 x1
vpp# set interface l2 xconnect y1 y2
vpp# set interface l2 xconnect y2 y1

so that all traffic from port x1 is sent to port x2 and vice versa ,
also all traffic from port y1 is sent to port y2 and vice versa.

but only one set of them works at the same time , for example only x1 and x2 
works but y1 and y2 not working
if i change the mode of x1 and x2 interface to L3 mode , y1 and y2 interface 
will work in L2 mode
I test this situation with l2 bridge and i have the same problem.
May i know ,why it doesn't work if i set l2 (xconnect or bridge) for multiple 
interface ???

here is my configuration and commands :

for l2 xconnect test :
vpp# set int state TenGigabitEthernet4/0/0 up
vpp# set int state TenGigabitEthernet4/0/1 up
vpp# set int state TenGigabitEthernet7/0/0 up
vpp# set int state TenGigabitEthernet7/0/1 up

vpp# set interface promiscuous on TenGigabitEthernet4/0/0
vpp# set interface promiscuous on TenGigabitEthernet4/0/1
vpp# set interface promiscuous on TenGigabitEthernet7/0/0
vpp# set interface promiscuous on TenGigabitEthernet7/0/1
vpp# set interface l2 xconnect TenGigabitEthernet4/0/0 TenGigabitEthernet4/0/1
vpp# set interface l2 xconnect TenGigabitEthernet4/0/1 TenGigabitEthernet4/0/0
vpp# set interface l2 xconnect TenGigabitEthernet7/0/1 TenGigabitEthernet7/0/0
vpp# set interface l2 xconnect TenGigabitEthernet7/0/0 TenGigabitEthernet7/0/1

vpp# show interface
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     
Counter          Count
TenGigabitEthernet21/0/0          5     down         9000/0/0/0
TenGigabitEthernet21/0/1          6     down         9000/0/0/0
TenGigabitEthernet24/0/0          7     down         9000/0/0/0
TenGigabitEthernet24/0/1          8     down         9000/0/0/0
TenGigabitEthernet4/0/0           1      up          9000/0/0/0     rx packets  
             2803151
                                                                    rx bytes    
           700562045
                                                                    tx packets  
             3693049
                                                                    tx bytes    
          3791177782
                                                                    tx-error    
                  62
TenGigabitEthernet4/0/1           2      up          9000/0/0/0     rx packets  
             3693049
                                                                    rx bytes    
          3791177782
                                                                    tx packets  
             2803151
                                                                    tx bytes    
           700562045
TenGigabitEthernet7/0/0           3      up          9000/0/0/0     tx packets  
             4799610
                                                                    tx bytes    
          3764207865
TenGigabitEthernet7/0/1           4      up          9000/0/0/0     rx packets  
             4799610
                                                                    rx bytes    
          3764207865
local0                            0     down          0/0/0/0


vpp# show mode
l3 local0
l2 xconnect TenGigabitEthernet4/0/0 TenGigabitEthernet4/0/1
l2 xconnect TenGigabitEthernet4/0/1 TenGigabitEthernet4/0/0
l2 xconnect TenGigabitEthernet7/0/0 TenGigabitEthernet7/0/1
l2 xconnect TenGigabitEthernet7/0/1 TenGigabitEthernet7/0/0
l3 TenGigabitEthernet21/0/0
l3 TenGigabitEthernet21/0/1
l3 TenGigabitEthernet24/0/0
l3 TenGigabitEthernet24/0/1

I have checked connectivity and sure that's correct
Regards,
david
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11958): https://lists.fd.io/g/vpp-dev/message/11958
Mute This Topic: https://lists.fd.io/mt/29289024/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to