[ovs-discuss] Two GRE tunnels with same src/dst

Frank frank at cloud.com
Wed Jan 19 00:08:38 UTC 2011


Thank you Romain. see attachments.

I try to add to gre interface points to 192.168.152.22 under bridge xapi9.
The first one named "3-1" was successful, the another one "test" was failed.


On 01/18/2011 03:57 PM, Romain Lenglet wrote:
> Hi Frank,
> Could you send the output of "ovs-vsctl list Interface" and "ip link"?
> What are the names of your other interfaces in OVS and in your system?
> Before and after you create your "test" GRE interface.
>
> On Wed, Jan 19, 2011 at 3:59 AM, Frank <frank at cloud.com 
> <mailto:frank at cloud.com>> wrote:
>
>     Thanks Romain. That's a typo, with type "gre" it will be still
>     failed. And the log complains "File exists"
>
>     [root at xenserver-frank1 ~]# ovs create interface name=test
>     options:"remote_ip=192.168.152.22 key=2" type=gre
>     e0f8369c-bd5c-41b9-8e22-8d6b58e11429
>
>     [root at xenserver-frank1 ~]# ovs create port name=test
>     interfaces=[e0f8369c-bd5c-41b9-8e22-8d6b58e11429]
>     13abaf54-155c-4954-951f-4e7da1f48b8e
>
>     [root at xenserver-frank1 ~]# ovs add bridge xapi7 ports
>     13abaf54-155c-4954-951f-4e7da1f48b8e
>
>     The log says:
>
>     Jan 18 10:57:23|11332|bridge|INFO|created port test on bridge xapi7
>     Jan 18 10:57:23|11333|bridge|WARN|could not create iface test:
>     File exists
>     Jan 18 10:57:23|11334|bridge|WARN|bridge xapi7: port test has no
>     interfaces, dropping
>
>
>
>
>     On 01/16/2011 04:25 PM, Romain Lenglet wrote:
>>     Hi Frank,
>>
>>     You don't create the GRE ports correctly.
>>     The options and type are incorrect. See below.
>>
>>     On Fri, Jan 14, 2011 at 7:22 AM, Frank <frank at cloud.com
>>     <mailto:frank at cloud.com>> wrote:
>>
>>         On 01/04/2011 02:34 PM, Jesse Gross wrote:
>>
>>             On Thu, Dec 30, 2010 at 6:00 PM, Frank<frank at cloud.com
>>             <mailto:frank at cloud.com>>  wrote:
>>
>>                 Hi guys:
>>                    I just try to create two GRE tunnels between two
>>                 hosts, the result is I
>>                 can't do this.
>>                    vswitch complains "could not create iface test:
>>                 File exists" when
>>                 creating second tunnel.
>>                    I did set different GRE keys for tunnels.
>>
>>                    I google and get some articles said it's possible
>>                 to create multiple GRE
>>                 tunnels with same src/dst.
>>                    I am curious what technical barrier prevents our
>>                 doing since GRE key is
>>                 an natural tag to distinguish different tunnels.
>>
>>             You can have multiple tunnels between the same endpoints
>>             if they are
>>             distinguished by key.  Please post your interface config.
>>
>>
>>         I am sorry for late reply. I create tunnels as below (ovs is
>>         alias of ovs-vsctl):
>>
>>         [root at xenserver-frank4 ~]# ovs list interface 1-2
>>         _uuid               : ebc0d114-d258-4670-9965-8a5a0491b0b9
>>         external_ids        : {}
>>         ingress_policing_burst: 0
>>         ingress_policing_rate: 0
>>         mac                 : []
>>         name                : "1-2"
>>         ofport              : 8
>>         options             : {remote_ip="192.168.152.22 key=1"}
>>
>>
>>     Those options should read {remote_ip="192.168.152.22", key="1"}.
>>
>>         statistics          : {collisions=0, rx_bytes=894703,
>>         rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0,
>>         rx_over_err=0, rx_packets=12083, tx_bytes=28882506,
>>         tx_dropped=0, tx_errors=0, tx_packets=21760}
>>         status              : {}
>>         type                : gre
>>         [root at xenserver-frank4 ~]# ovs create interface name=test
>>         options:"remote_ip=192.168.152.22 key=2"
>>
>>
>>     So I suggest trying something like:
>>     ovs create interface name=test
>>     'options:remote_ip="192.168.152.22", key="2"'
>>     to create the interface with correct options.
>>
>>         74c1e2e3-da43-4ae4-86e7-048de205f974
>>
>>         [root at xenserver-frank4 ~]# ovs create port name=test
>>         interfaces=[74c1e2e3-da43-4ae4-86e7-048de205f974]
>>         3dc08a5c-102c-45c6-9891-9692d2d4a8e3
>>
>>         [root at xenserver-frank4 ~]# ovs add bridge xapi7 ports
>>         3dc08a5c-102c-45c6-9891-9692d2d4a8e3
>>
>>         [root at xenserver-frank4 ~]# ovs list interface test
>>         _uuid               : 74c1e2e3-da43-4ae4-86e7-048de205f974
>>         external_ids        : {}
>>         ingress_policing_burst: 0
>>         ingress_policing_rate: 0
>>         mac                 : []
>>         name                : test
>>         ofport              : []
>>         options             : {remote_ip="192.168.152.22 key=2"}
>>         statistics          : {}
>>         status              : {}
>>         type                : ""
>>
>>
>>     This type is wrong. It should be "gre" for a GRE port.
>>     You have to pass the correct type when creating the interface above.
>>
>>
>>
>>         Actually I already had a tunnel to "192.168.152.22" with key
>>         = 1. we can see the secondary creation was failed even I set
>>         the key=2.
>>         In ovs-vswitchd.log, here are:
>>
>>         Jan 13 14:18:31|02259|netdev|WARN|failed to get flags for
>>         network device test: No such device
>>         Jan 13 14:18:31|02260|bridge|WARN|could not create iface
>>         test: No such device
>>         Jan 13 14:18:31|02261|bridge|WARN|bridge xapi7: port test has
>>         no interfaces, dropping
>>
>>
>>
>>
>>
>>         _______________________________________________
>>         discuss mailing list
>>         discuss at openvswitch.org <mailto:discuss at openvswitch.org>
>>         http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110118/ea4f763c/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ip-link-after.log
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110118/ea4f763c/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ip-link-before.log
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110118/ea4f763c/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list-interface-after.log
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110118/ea4f763c/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list-interface-before.log
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110118/ea4f763c/attachment-0003.ksh>


More information about the discuss mailing list