Hi All,

Inside vpp I have two bridge-domains and each of them has a loopback
interface as bvi.
Each bridge domain also has a host-interface .

Following is the set of command used.

Linux CLIs to configure veth:

ip link add ve_A type veth peer name ve_B
ip link add ve_C type veth peer name ve_D
ifconfig ve_A 1.1.1.1/24
ifconfig ve_C 2.2.2.2/24

CLIs on VPP

create host-interface name ve_B
create host-interface name ve_D
set interface state host-ve_B up
set interface state host-ve_D up

create loopback interface
create loopback interface
set interface ip address loop0 1.1.1.2/24
set interface ip address loop1 2.2.2.3/24
set interface state loop0 up
set interface state loop1 up

create bridge-domain 100
create bridge-domain 200

set interface l2 bridge host-ve_B 100
set interface l2 bridge host-ve_D 200
set interface l2 bridge loop0 100 bvi
set interface l2 bridge loop1 200 bvi

[image: image.png]


 ping -I ve_A 1.1.1.2  from host is working.
 ping -I ve_C 2.2.2.3 from host is working.

but


*ping -I ve_A 2.2.2.3 fails.*
vpp# show mode
l3 local0
l2 bridge host-ve_B bd_id 100 shg 0
l2 bridge host-ve_D bd_id 200 shg 0
l2 bridge loop0 bd_id 100 bvi shg 0
l2 bridge loop1 bd_id 200 bvi shg 0

vpp# show interface address
host-ve_B (up):
  L2 bridge bd-id 100 idx 1 shg 0
host-ve_D (up):
  L2 bridge bd-id 200 idx 2 shg 0
local0 (dn):
loop0 (up):
  L2 bridge bd-id 100 idx 1 shg 0 bvi
  L3 1.1.1.2/24 ip4 table-id 4 fib-idx 1
loop1 (up):
  L2 bridge bd-id 200 idx 2 shg 0 bvi
  L3 2.2.2.3/24 ip4 table-id 4 fib-idx 1
And following is the output of show errors:

vpp# show error
   Count                  Node                              Reason
      Severity
         3             arp-reply             RX interface is unnumbered to
diffe   error
         3          af-packet-input                    timed out block
        error
         3          af-packet-input                  total received block
       error
         3              l2-learn                       L2 learn packets
       error
         3              l2-input                       L2 input packets
       error
         3              l2-flood                       L2 flood packets
       error

Following is the packet trace.

vpp# show trace
------------------- Start of thread 0 vpp_main -------------------
Packet 1

17:47:50:154354: af-packet-input
  af_packet: hw_if_index 1 rx-queue 0 next-index 4
    block 132:
      address 0x7fb423c40000 version 2 seq_num 133 pkt_num 0
    tpacket3_hdr:
      status 0x20000001 len 42 snaplen 42 mac 92 net 106
      sec 0x62f4832a nsec 0x31ace5eb vlan 0 vlan_tpid 0
    vnet-hdr:
      flags 0x00 gso_type 0x00 hdr_len 0
      gso_size 0 csum_start 0 csum_offset 0
17:47:50:154368: ethernet-input
  ARP: 8a:f5:4b:3c:07:19 -> ff:ff:ff:ff:ff:ff
17:47:50:154376: l2-input
  l2-input: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
[l2-learn l2-flood ]
17:47:50:154386: l2-learn
  l2-learn: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
bd_index 1
17:47:50:154390: l2-flood
  l2-flood: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
bd_index 1
17:47:50:154395: arp-input
  request, type ethernet/IP4, address size 6/4
  8a:f5:4b:3c:07:19/1.1.1.1 -> 00:00:00:00:00:00/2.2.2.3
17:47:50:154397: arp-reply
  request, type ethernet/IP4, address size 6/4
  8a:f5:4b:3c:07:19/1.1.1.1 -> 00:00:00:00:00:00/2.2.2.3
17:47:50:154409: error-drop
  rx:loop0
17:47:50:154411: drop
  arp-reply: RX interface is unnumbered to different subnet

Packet 2

17:47:51:174342: af-packet-input
  af_packet: hw_if_index 1 rx-queue 0 next-index 4
    block 133:
      address 0x7fb423c50000 version 2 seq_num 134 pkt_num 0
    tpacket3_hdr:
      status 0x20000001 len 42 snaplen 42 mac 92 net 106
      sec 0x62f4832b nsec 0x32721b32 vlan 0 vlan_tpid 0
    vnet-hdr:
      flags 0x00 gso_type 0x00 hdr_len 0
      gso_size 0 csum_start 0 csum_offset 0
17:47:51:174362: ethernet-input
  ARP: 8a:f5:4b:3c:07:19 -> ff:ff:ff:ff:ff:ff
17:47:51:174370: l2-input
  l2-input: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
[l2-learn l2-flood ]
17:47:51:174374: l2-learn
  l2-learn: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
bd_index 1
17:47:51:174377: l2-flood
  l2-flood: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 8a:f5:4b:3c:07:19
bd_index 1
17:47:51:174381: arp-input
  request, type ethernet/IP4, address size 6/4
  8a:f5:4b:3c:07:19/1.1.1.1 -> 00:00:00:00:00:00/2.2.2.3
17:47:51:174384: arp-reply
  request, type ethernet/IP4, address size 6/4
  8a:f5:4b:3c:07:19/1.1.1.1 -> 00:00:00:00:00:00/2.2.2.3
17:47:51:174396: error-drop
  rx:loop0
17:47:51:174398: drop
  arp-reply: RX interface is unnumbered to different subnet

I also tried adding both these loopback to  a different ip table .
but couldn't get it working.

Do I need to enable routing functionality ?

Thanks
Pragya Nand
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21789): https://lists.fd.io/g/vpp-dev/message/21789
Mute This Topic: https://lists.fd.io/mt/92952384/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to