Hi Ravi. as I said in another thread, VLANs are represented by interfaces in VPP, so to achieve VALN differentiated forwarding you need to bind different tables/polices/etc with the different routes/rules/etc to the different VLAN interfaces.
For example, create different ip tables: Ip table add X Add the routes to the different memifs in the different tables. Ip route table X 172.172.0.0/24 via 192.168.1.3 memifX/0 And bind the input VLAN interfaces to the different tables set int ip table input.30X X /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: Monday, 2 August 2021 at 22:53 To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> Subject: [vpp-dev] VLAN+IP based forwarding #acl, #abf #vlan #memif #forwarding #vpp Hi Experts, We have our application reading packets through memif and does consume them. We are adding rules in the VPP to reach particualr memif based on dst IP. "ip route add 172.172.0.0/24 via 192.168.1.3 memif1/0" However we have a requirement, where the Destination NETWORK can overlap with other VLAN. So we need forward rules based on the "VLAN + MEMIF" For example If VLAN is 301 and DST IP is 172.173.0.0/24 it should reach to memif1/0 If VLAN is 302 and DST IP is 172.173.0.0/24 it should reach to memif2/0 If VLAN is 302 and DST IP is 172.174.0.0/24 it should reach to memif1/0 If VLAN is 301 and DST IP is 172.174.0.0/24 it should reach to memif2/0 We can not use L2 xconnect, which directly relays L2 packets to corresponding memif1/0, We need DST and VLAN because our application handles multiple clients with same overlapping subnets with VLAN+IP based routing. So we need VLAN+DST IP based routing, any suggestion is a great help. //Ravi
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19900): https://lists.fd.io/g/vpp-dev/message/19900 Mute This Topic: https://lists.fd.io/mt/84622474/21656 Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp Mute #memif:https://lists.fd.io/g/vpp-dev/mutehashtag/memif Mute #abf:https://lists.fd.io/g/vpp-dev/mutehashtag/abf Mute #vlan:https://lists.fd.io/g/vpp-dev/mutehashtag/vlan Mute #forwarding:https://lists.fd.io/g/vpp-dev/mutehashtag/forwarding Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-