Dear OVS folks, I have some doubts regarding LISP tunneling. I have a setup where I am getting incoming LISP tunneled packets into my OVS. What I want to do is to check the inner IP destination address and based on that I need to forward the packets. Let us say that there are only two possibilities for inner IP addresses : 10.0.0.1 and 10.0.0.2.
If the inner IP address is 10.0.0.1, then I want the packet to be forwarded to an interface (say eth1 and port number 1) without doing any change to the tunneled packet. If the inner IP address is 10.0.0.2, then I want the packet to be forwarded to the another interface (say eth2 and port number 2) with only the inner contents of the tunnel packets. I am thinking of the following flow entries to do the mentioned rules, but correct me if I am wrong. * table=0,dl_type=0x0800,nw_dst=10.0.0.2,actions=mod_dl_dst=10:0:0:2,output:2* - Will this flow check for the inner destination IP of the tunneled packet and put only the metadata in port eth2? *table=0,dl_type=0x0800,action=NORMAL* - Will this flow take care of all other flows? PS : Sorry for the previous emails. That was a mistake. Best Regards, Ashish Kurian Best Regards, Ashish Kurian On Wed, May 17, 2017 at 2:47 PM, Ashish Kurian <ashish...@gmail.com> wrote: > Dear OVS folks, > > I have some doubts regarding LISP tunneling. I have a setup where I am > getting incoming LISP tunneled packets into my OVS. What I want to do is to > check the inner IP destination address and based on that I need to forward > the packets. Let us say that there are only two possibilities of inner IP > addresses : 10.0.0.1 and 10.0.0.2. > > If the inner IP address is 10.0.0.1, then I want the packet to be > forwarded to an interface (say eth1 and port number 1) without doing any > change to the tunneled packet. If the inner IP address is 10.0.0.2, then I > want the packet to be forwarded to the another interface (say eth2 and port > number 2) with only the inner contents of the tunnel packets. > > I am thinking of the following flow entries to do the mentioned rules, but > correct me if I am wrong. > > > *table=0,dl_type=0x0800,nw_dst=10.0.0.2,actions=mod_dl_dst=10:0:0:2,output:2* > > > Best Regards, > Ashish Kurian > > Best Regards, > Ashish Kurian > > On Wed, May 17, 2017 at 2:46 PM, Ashish Kurian <ashish...@gmail.com> > wrote: > >> Dear OVS folks, >> >> I have some doubts regarding LISP tunneling. I have a setup where I am >> getting incoming LISP tunneled packets into my OVS. What I want to do is to >> check the inner IP destination address and based on that I need to forward >> the packets. Let us say that there are only two possibilities of inner IP >> addresses : 10.0.0.1 and 10.0.0.2. >> >> If the inner IP address is 10.0.0.1, then I want the packet to be >> forwarded to an interface (say eth1 and port number 1) without doing any >> change to the tunneled packet. If the inner IP address is 10.0.0.2, then I >> want the packet to be forwarded to the another interface (say eth2 and port >> number 2) with only the inner contents of the tunnel packets. >> >> I am thinking of the following flow entries to do the mentioned rules, >> but correct me if I am wrong. >> >> >> *table=0,dl_type=0x0800,nw_dst=10.0.0.2,actions=mod_dl_dst=10:0:0:2,output:2* >> >> >> Best Regards, >> Ashish Kurian >> > >
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss