Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-07 Thread Wei Huang
décembre 2021 14:43 > To: vpp-dev@lists.fd.io; Benoit Ganne (bganne) > Subject: Re: [vpp-dev] Use classify to direct specific udp packets to use > different path > > Tried same, still have problem. What version are you using? > > vpp# loop create-interface > loop0 > vpp#

Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-07 Thread Benoit Ganne (bganne) via lists.fd.io
; > From: vpp-dev@lists.fd.io on behalf of Benoit Ganne > (bganne) via lists.fd.io > Sent: Tuesday, December 7, 2021 5:00 AM > To: Wei Huang ; vpp-dev@lists.fd.io d...@lists.fd.io> > Subject: [External] : Re: [vpp-dev] Use classify to direct specific udp > packets to use diffe

Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-07 Thread Wei Huang
: [External] : Re: [vpp-dev] Use classify to direct specific udp packets to use different path Hi, > 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_p

Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-07 Thread Benoit Ganne (bganne) via lists.fd.io
Hi, > 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' Not sure what is wrong, this works for me: DBGvpp# loop create-interface loop0

Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-06 Thread Wei Huang
@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

Re: [vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-06 Thread Benoit Ganne (bganne) via lists.fd.io
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://gerrit.fd.io/r/c/vpp/+/33455 Otherwise, you can do it with current VPP by creating 2 VRFs,

[vpp-dev] Use classify to direct specific udp packets to use different path

2021-12-06 Thread Wei Huang
I added two routes like this vppctl ip route add 192.168.21.0/24 via ipip0 vppctl ip route add 192.168.21.0/24 via ipip1 Can VPP use classify to direct UDP packets to port 2156 using ipip0, UDP packet to port 2157 using ipip1? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this