[ovs-discuss] vm can't ping over ovs gre port

Alex Wang alexw at nicira.com
Fri Jul 5 16:49:18 UTC 2013


Hey JinHwan,

Could you also provide the "ovs-dpctl dump-flows" and "tcpdump" output?

Kind Regards,
Alex Wang,


On Fri, Jul 5, 2013 at 12:23 AM, JinHwan Hwang <calanchue at gmail.com> wrote:

> I've followed ovs gre setting described at this<http://blog.scottlowe.org/2013/05/07/using-gre-tunnels-with-open-vswitch/>.
> But i couldn't ping from a vm to other vm over gre. I just got packet loss
> message from ping command. As i understand ping should go through gre0 and
> so on br0 and em0(physical ethernet interface). I'm currently can't figured
> out where to start to solve this problem. I attached all data which is
> relevant to this problem as i think.
>
> thanks for your help
>
>
> em1, 2 : physical ethernet interface.
> vnet0 : virtual interface for the vm at host.
> default policy for iptables is ACCEPT.
>
> host1
> -----------------------------------------------
> # ovs-vsctl show
> a27e5053-57f1-4abc-ad16-740b991deaf4
>     Bridge "br1"
>         Port "vnet0"
>             Interface "vnet0"
>         Port "gre1"
>             Interface "gre1"
>                 type: gre
>                 options: {remote_ip="192.168.100.21"}
>         Port "br1"
>             Interface "br1"
>                 type: internal
>     Bridge "br0"
>         Port "tep0"
>             Interface "tep0"
>                 type: internal
>         Port "em2"
>             Interface "em2"
>         Port "br0"
>             Interface "br0"
>                 type: internal
>
> # ifconfig
> br0       Link encap:Ethernet  HWaddr 78:45:C4:F1:77:D3
>           inet addr:111.111.104.20  Bcast:111.111.255.255  Mask:255.255.0.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:87798 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:8311 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:16964268 (16.1 MiB)  TX bytes:4102764 (3.9 MiB)
>
> br1       Link encap:Ethernet  HWaddr 06:6F:5E:19:8E:43
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:70 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:7424 (7.2 KiB)  TX bytes:0 (0.0 b)
>
> em1       Link encap:Ethernet  HWaddr 78:45:C4:F1:77:D1
>           inet addr:172.16.143.20  Bcast:172.16.143.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1013749 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:591839 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:116551436 (111.1 MiB)  TX bytes:190337381 (181.5 MiB)
>           Interrupt:36 Memory:d6000000-d6012800
>
> em2       Link encap:Ethernet  HWaddr 78:45:C4:F1:77:D3
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:271696 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:31348 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:52996899 (50.5 MiB)  TX bytes:13088219 (12.4 MiB)
>           Interrupt:48 Memory:d8000000-d8012800
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:77086 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:77086 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:9595600 (9.1 MiB)  TX bytes:9595600 (9.1 MiB)
>
> tep0      Link encap:Ethernet  HWaddr 76:EE:E6:89:FE:46
>           inet addr:192.168.100.20  Bcast:192.168.100.255
>  Mask:255.255.255.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:79785 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:155 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:9641257 (9.1 MiB)  TX bytes:15049 (14.6 KiB)
>
> vnet0     Link encap:Ethernet  HWaddr FE:0D:45:A3:92:EA
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:271 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:500
>           RX bytes:25038 (24.4 KiB)  TX bytes:3498 (3.4 KiB)
>
> # route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.100.0   *               255.255.255.0   U     0      0        0
> tep0
> 172.16.143.0    *               255.255.255.0   U     0      0        0 em1
> link-local      *               255.255.0.0     U     1002   0        0 em1
> 111.111.0.0     *               255.255.0.0     U     0      0        0 br0
> default         111.111.104.1   0.0.0.0         UG    0      0        0 br0
>
>
>
>
>
> host2
> -----------------------------------------------
> # ovs-vsctl show
> 5dcbfca3-e518-4214-8c23-7b89b30719ad
>     Bridge "br0"
>         Port "br0"
>             Interface "br0"
>                 type: internal
>         Port "tep0"
>             Interface "tep0"
>                 type: internal
>         Port "em2"
>             Interface "em2"
>     Bridge "br1"
>         Port "br1"
>             Interface "br1"
>                 type: internal
>         Port "gre1"
>             Interface "gre1"
>                 type: gre
>                 options: {remote_ip="192.168.100.20"}
>         Port "vnet0"
>             Interface "vnet0"
>
>
> # ifconfig
> br0       Link encap:Ethernet  HWaddr D4:BE:D9:AC:F0:CF
>           inet addr:111.111.104.21  Bcast:111.111.255.255  Mask:255.255.0.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:87006 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:13260 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:12556550 (11.9 MiB)  TX bytes:4318048 (4.1 MiB)
>
> br1       Link encap:Ethernet  HWaddr CA:5A:E9:93:13:4A
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:70 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:7424 (7.2 KiB)  TX bytes:0 (0.0 b)
>
> em1       Link encap:Ethernet  HWaddr D4:BE:D9:AC:F0:CD
>           inet addr:172.16.143.21  Bcast:172.16.143.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:903898 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:417417 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:101599551 (96.8 MiB)  TX bytes:116662118 (111.2 MiB)
>           Interrupt:36 Memory:d6000000-d6012800
>
> em2       Link encap:Ethernet  HWaddr D4:BE:D9:AC:F0:CF
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:287767 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:48626 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:54416236 (51.8 MiB)  TX bytes:14369437 (13.7 MiB)
>           Interrupt:48 Memory:d8000000-d8012800
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:186515 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:186515 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:21395412 (20.4 MiB)  TX bytes:21395412 (20.4 MiB)
>
> tep0      Link encap:Ethernet  HWaddr 5A:97:DC:14:AD:B8
>           inet addr:192.168.100.21  Bcast:192.168.100.255
>  Mask:255.255.255.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:77121 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:13815665 (13.1 MiB)  TX bytes:14693 (14.3 KiB)
>
> vnet0     Link encap:Ethernet  HWaddr FE:0D:45:A3:92:EA
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:51 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:500
>           RX bytes:4170 (4.0 KiB)  TX bytes:1136 (1.1 KiB)
>
> # route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.100.0   *               255.255.255.0   U     0      0        0
> tep0
> 172.16.143.0    *               255.255.255.0   U     0      0        0 em1
> link-local      *               255.255.0.0     U     1002   0        0 em1
> 111.111.0.0     *               255.255.0.0     U     0      0        0 br0
> default         111.111.104.1   0.0.0.0         UG    0      0        0 br0
>
>
> vm at host 1
> -----------------------------------------
> eth0 : 10.123.123.20
>
> vm at host 2
> -----------------------------------------
> eth0 : 10.123.123.21
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130705/bc90edfc/attachment.html>


More information about the discuss mailing list