Hello,
I am using a GRE tunnel with OVS. Here is the setup detail: +--------------+ eth0 (11.0.0.2) eth1 +----------------+ eth0 eth0 +----------------+ | M1 (Linux) |-------------------------------------| M2 (Linux) |-----------------------------------------------| M3 (Linux) | +--------------+ +----------------+ p0 (11.0.0.1) p0 (11.0.0.3) +----------------+ gre0 <============> gre0 I am running OVS (1.9.3) on Machines M2 & M3. For GRE tunnel between M2 & M3 – On pinging 11.0.0.3 from M1, the pkts coming out of M2.eth0 interface are GRE encapsulated. But on machine M3, I see that the single ping-request pkt is being looped multiple times. Can someone review the below cfg & help if I am missing something here? M1: ---------------- root@apteam-Lenovo-B490-2:/home/apteam/OVS# ifconfig eth0 Link encap:Ethernet HWaddr 3c:97:0e:a6:c5:89 inet addr:11.0.0.2 Bcast:11.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::3e97:eff:fea6:c589/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10771077 errors:0 dropped:0 overruns:0 frame:0 TX packets:7959 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2265409472 (2.2 GB) TX bytes:2061555 (2.0 MB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:20377 errors:0 dropped:0 overruns:0 frame:0 TX packets:20377 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1669344 (1.6 MB) TX bytes:1669344 (1.6 MB) root@apteam-Lenovo-B490-2:/home/apteam/OVS# M2: ---------------- [root@localhost openvswitch-1.9.3]# ifconfig br0 Link encap:Ethernet HWaddr 00:27:13:B6:B1:5F UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:550319815 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:3945022381 (3.6 GiB) TX bytes:0 (0.0 b) eth0 Link encap:Ethernet HWaddr 00:27:13:B6:B1:5F UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:619055026 errors:0 dropped:191 overruns:0 frame:0 TX packets:607143222 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1520490297 (1.4 GiB) TX bytes:4201294864 (3.9 GiB) Memory:fc200000-fc220000 eth1 Link encap:Ethernet HWaddr 00:60:6E:00:F1:7D UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7867 errors:0 dropped:0 overruns:0 frame:0 TX packets:11003243 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1941851 (1.8 MiB) TX bytes:2311928285 (2.1 GiB) 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:2959 errors:0 dropped:0 overruns:0 frame:0 TX packets:2959 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4473425 (4.2 MiB) TX bytes:4473425 (4.2 MiB) p0 Link encap:Ethernet HWaddr F2:3B:D3:66:BE:96 inet addr:11.0.0.1 Bcast:11.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:753817857 errors:0 dropped:0 overruns:0 frame:0 TX packets:415536907 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1576897758 (1.4 GiB) TX bytes:2398826800 (2.2 GiB) [root@localhost openvswitch-1.9.3]# ovs-vsctl show f28a3611-5ee2-4d30-8412-7c6eae7e9423 Bridge "br0" Port "eth1" Interface "eth1" Port "eth0" Interface "eth0" Port "gre0" Interface "gre0" type: gre options: {local_ip="11.0.0.1", remote_ip="11.0.0.3"} Port "br0" Interface "br0" type: internal Port "p0" Interface "p0" type: internal [root@localhost openvswitch-1.9.3]# [root@localhost openvswitch-1.9.3]# ovs-dpctl show br0 system@br0: lookups: hit:1236579158 missed:5278 lost:0 flows: 9 port 0: br0 (internal) port 1: eth0 port 2: p0 (internal) port 6: eth1 port 34: gre0 (gre: local_ip=11.0.0.1, remote_ip=11.0.0.3) [root@localhost openvswitch-1.9.3]# [root@localhost openvswitch-1.9.3]# ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=1868.212s, table=0, n_packets=333264817, n_bytes=116075574466, idle_age=0, priority=0 actions=NORMAL cookie=0x0, duration=1723.073s, table=0, n_packets=19, n_bytes=1634, idle_age=727, in_port=6,dl_src=3c:97:0e:a6:c5:89,dl_dst=c2:1f:f1:90:f0:56 actions=output:34 [root@localhost openvswitch-1.9.3]# M3: --------------- [root@localhost openvswitch-1.9.3]# ifconfig br0 Link encap:Ethernet HWaddr 00:27:13:B6:84:A7 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:550320100 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:3945091933 (3.6 GiB) TX bytes:0 (0.0 b) eth0 Link encap:Ethernet HWaddr 00:27:13:B6:84:A7 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:612920235 errors:0 dropped:797 overruns:0 frame:0 TX packets:625167972 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3162249238 (2.9 GiB) TX bytes:580379993 (553.4 MiB) Memory:fc200000-fc220000 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:2983 errors:0 dropped:0 overruns:0 frame:0 TX packets:2983 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4511260 (4.3 MiB) TX bytes:4511260 (4.3 MiB) p0 Link encap:Ethernet HWaddr C2:1F:F1:90:F0:56 inet addr:11.0.0.3 Bcast:11.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:946009628 errors:0 dropped:0 overruns:0 frame:0 TX packets:253304644 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4121585916 (3.8 GiB) TX bytes:82815363 (78.9 MiB) [root@localhost openvswitch-1.9.3]# [root@localhost openvswitch-1.9.3]# ovs-vsctl show ec84f0c5-92f4-4893-a098-fa6536d29ae5 Bridge "br0" Port "p0" Interface "p0" type: internal Port "eth0" Interface "eth0" Port "gre0" Interface "gre0" type: gre options: {local_ip="11.0.0.3", remote_ip="11.0.0.1"} Port "br0" Interface "br0" type: internal [root@localhost openvswitch-1.9.3]# [root@localhost openvswitch-1.9.3]# ovs-dpctl show br0 system@br0: lookups: hit:1264730402 missed:2380 lost:0 flows: 8 port 0: br0 (internal) port 1: eth0 port 2: p0 (internal) port 26: gre0 (gre: local_ip=11.0.0.3, remote_ip=11.0.0.1) [root@localhost openvswitch-1.9.3]# [root@localhost openvswitch-1.9.3]# ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=83381.812s, table=0, n_packets=1156214204, n_bytes=281331348896, idle_age=0, hard_age=65534, priority=0 actions=NORMAL [root@localhost openvswitch-1.9.3]# Thanks Rashmi
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss