Uploaded image for project: 'hicn'
  1. hicn
  2. HICN-278

router plugin cause loop BVI can't response ICMP request.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 22.02
    • None
    • hicn/vpp-plugin

       

      When I am using route plugin(hicn-extra-plugin-19.04) with VPP, I saw a VLAN issue introduced by command "enable tap-inject", which provided by this plugin.

      The issue is I can't ping the IP address of loop BVI interface of VPP on VM2 from another VM1 with vlan sub-interface.

      If I redo the following testing without "enable tap-inject", the VM1 can ping 200.0.0.1 as expected.

      I also verified this issue persistent even I did "disable tap-inject" after run into this issue.

       

      The detail is below:

      1. I have a VM1 (with VLAN sub-interface) connected to another VM2 (with VPP running on it)
      2. Set IP address 200.0.0.2/24 on VLAN sub interface on VM1.
      3. I setup a bridge-domain with BVI loop interface and a VLAN sub-interface within VM2, as below:

      vpp# show bridge-domain 100200 detail

        BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood   Flooding  ARP-Term  arp-ufwd   BVI-Intf

       100200     1      1     off        on        on       flood        on        on       off     loop10200

       

                 Interface           If-idx ISN  SHG  BVI  TxFlood        VLAN-Tag-Rewrite      

                 loop10200             3     1    0    *      *                 none            

         GigabitEthernet0/3/0.200      4     1    0    -      *                 pop-1           

       

        IP4/IP6 to MAC table for ARP Termination

      vpp# show interface addr

      GigabitEthernet0/3/0 (up):

      GigabitEthernet0/3/0.200 (up):

        L2 bridge bd-id 100200 idx 1 shg 0 

      GigabitEthernet0/4/0 (up):

        L3 20.0.0.1/30

      local0 (dn):

      loop10200 (up):

        L2 bridge bd-id 100200 idx 1 shg 0 bvi

        L3 200.0.0.1/24 ip4 table-id 100200 fib-idx 1

      vpp#

      1. I try to ping 200.0.0.1 from VM1, but ping failed.

      The follow statistic show there is rx packet on both VLAN sub-interface and BVI loop interface on VM2. But no tx packet on these ports.

      vpp# show interface

                    Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count    

      GigabitEthernet0/3/0              1      up          9000/0/0/0     rx packets                   453

                                                                          rx bytes                   21322

                                                                          tx packets                    14

                                                                          tx bytes                    1056

                                                                          drops                         16

                                                                          ip6                           15

                                                                          tx-error                       1

      GigabitEthernet0/3/0.200          4      up           0/0/0/0       rx packets                   438

                                                                          rx bytes                   20176

      GigabitEthernet0/4/0              2      up          9000/0/0/0     rx packets                351685

                                                                          rx bytes                28328240

                                                                          tx packets                348757

                                                                          tx bytes                26426330

                                                                          drops                       8314

                                                                          ip4                       342527

                                                                          ip6                          840

      local0                            0     down          0/0/0/0      

      loop10200                         3      up          9000/0/0/0     rx packets                   438

                                                                          rx bytes                   12292

                                                                          drops                          1

                                                                          ip6                            1

      vpp#

            mashemat Masoud Hemmatpour
            ljlu1504 ryan lu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: