On Thu, Sep 29, 2011 at 2:36 PM, terryxing <xingtia...@gmail.com> wrote: > Hi, > > I am so frustrated on setting up the tunnel between the open vswitch on > xenservers. I have two xenserver. I use one NIC as the interface to talk to > another remote xenserver host. I add a port name gre1 on the xenbr1 for > both two servers. > > I run, > > ovs-vsctl add-port xenbr1 gre1 -- set interface gre1 type=gre > options:remote_ip=129.X.X.X (public ip address on xenbr1 of xenserver host 1 > ) > ovs-vsctl add-port xenbr1 gre1 -- set interface gre1 type=gre > options:remote_ip=198.X.X.X (public ip address on xenbr1 of xenserver host 2 > )
You can't add a GRE port to the same bridge as the interface on which the packet will be sent. Doing so will create a loop because a packet sent to the GRE port will get encapsulated and sent to interface associated with the remote_ip. This is xenbr1, which can in turn sent the packet to the GRE port, etc. You need to create a separate bridge for VMs that are inside the tunnel. > I run this command on both xenserver host. They are success to be run. > > I check the ovs-vsctl list-ports xenbr1 on both xenserver host. > > Both of two server shows : > eth1 (physical NIC attached to xenbr1) > gre1 (The one I created above) > Sometimes, It has another port shown which is vif4.1 (is that the VIF of one > VM with VLAN ID ? because I attach one virtual interface for each VM, that > interface has vlan id say 100 on it.) It's the first interface of VM 4, not a vlan. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss