Hi Ravi,

A memif interface is not p2p, so your ABF policy path needs a next-hop:

  abf policy add id 0 acl 0 via 192.168.1.X memif1/0
where .X is the host on the other end.

/neale


From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of RaviKiran Veldanda 
via lists.fd.io <ravi.jupvpp=gmail....@lists.fd.io>
Date: Friday, 16 July 2021 at 17:15
To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: [vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl 
#abf #policy #routing

[Edited Message Follows]

Hi Experts,
We are trying to implement forwarding dst X.X.X.X/X subnet packets on interface 
Y to the memif1/0
To achieve that we used ACL and ABF policy rules.
When I am trying to send traffic to "X.X.X.X" network I see ARP requests for 
that subnet on memif1/0.
We don't need to send ARP for these "X.X.X.X", because Our application at other 
end of memif1/0 will take care of further processing.
How to achieve that kind of forwarding.
Please find my configuration for your reference.

=========Receving on the memif ====

set interface state HundredGigabitEthernet12/0/0 up

create sub-interfaces HundredGigabitEthernet12/0/0 1100

set interface state HundredGigabitEthernet12/0/0.1100 up

set interface ip add HundredGigabitEthernet12/0/0.1100 192.168.110.2/24

create memif socket id 1 filename /run/vpp/memif1.sock

create interface memif id 0 socket-id 1 master

set interface state memif1/0 up

set interface ip add memif1/0 192.168.1.3/24

==== ACL rules ====

set acl-plugin acl permit dst 172.172.0.0/24

abf policy add id 0 acl 0 via memif1/0

abf attach ip4 policy 0  HundredGigabitEthernet12/0/0.1100

===========================
We are expecting any "Ingress" traffic destined to "172.172.0.0/24" should go 
to the "memif1/0".
We tried giving
abf policy add id 0 acl 0 via 192.168.1.5 memif1/0 --> still same problem. We 
see ARP request for 172.172.0.1
How can we achieve that kind of forwarding in VPP? Any pointers will be a big 
help for us.
//Ravi


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19815): https://lists.fd.io/g/vpp-dev/message/19815
Mute This Topic: https://lists.fd.io/mt/84250705/21656
Mute #acl:https://lists.fd.io/g/vpp-dev/mutehashtag/acl
Mute #abf:https://lists.fd.io/g/vpp-dev/mutehashtag/abf
Mute #policy:https://lists.fd.io/g/vpp-dev/mutehashtag/policy
Mute #routing:https://lists.fd.io/g/vpp-dev/mutehashtag/routing
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to