Thanks for the reply. I pulled in your plugin and applied to v21.06, when I try to set it up, got the following error message:
vpp# classify table mask l3 ip4 dst l4 dst_port vpp# ip session redirect table 0 match l3 ip4 dst 192.168.21.2 l4 dst_port 2156 via ipip0 ip session redirect: parse error `l4 dst_port 2156 via ipip0' Could you please point out what CLI commands I should use to set that up? Thanks, Wei ________________________________ From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Benoit Ganne (bganne) via lists.fd.io <bganne=cisco....@lists.fd.io> Sent: Monday, December 6, 2021 12:05 PM To: Wei Huang <wei.hu.hu...@oracle.com>; vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> Subject: [External] : Re: [vpp-dev] Use classify to direct specific udp packets to use different path Hi, > Can VPP use classify to direct UDP packets to port 2156 using ipip0, UDP > packet to port 2157 using ipip1? Yes. An easy way to do it is to use the ip_session_redirect plugin (not merged): https://urldefense.com/v3/__https://gerrit.fd.io/r/c/vpp/*/33455__;Kw!!ACWV5N9M2RV99hQ!bPBAAtsjX5bBCAIoNy4zOJJ_y-0iwYzs56SrEOeKCpynDGDG4lf8DgpS3QADiKY3xw$ Otherwise, you can do it with current VPP by creating 2 VRFs, each one with a default route through ipip0 and ipip1 respectively and configure the classifier to steer the packets to the relevant VRF. Best ben
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20587): https://lists.fd.io/g/vpp-dev/message/20587 Mute This Topic: https://lists.fd.io/mt/87544298/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-