Hi Willy, Please see comment below.
On Wed, May 11, 2016 at 8:52 AM, Willy Chen <ccps960718...@gmail.com> wrote: > Hello, > > I want to know about how OVS to deal with gre tunnel, > What things OVS doing when packet send out through tunnel? > OVS uses Linux GRE tunnel implementation. When packet sends out through tunnel port in ovs, the ovs datapath will encapsulates the packet with the IP header you configured, and forward to Linux network stack. Then depending on IP address at the outer header, Linux kernel will forward to the corresponding outgoing interface, in your case it should be eth0. > And when VM2's eth0 receive the packet, what happened in the vm2 ? > VM2's eth0 receives the tunnel packet, forwards to gre tunnel, does the packet encapsulation, then based on the flow entry in OVS, it forwards to h2. > > If I have 2 switch in vm2, and they tunnel to vm1 with different key, > when h1 ping h2, why ovs can transfer packet to h2, how did it knows ? > > Then this depends on how you setup the flow entry. Regards, William <http://openvswitch.org/mailman/listinfo/discuss> > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss