<div dir="ltr">That's the best way I found to see if GRE is up, just watching for two way "proto gre" traffic.<br><div><br>Here's how you can match the IP addresses *inside* the GRE packet, which you probably will want.  Note that 0x0a050505 is hexadecimal for my desired IP address of <a href="http://10.5.5.5">10.5.5.5</a>:<br>
<br>root@os-network:~# tcpdump -i eth1 'proto gre and ( ip[58:4] = 0x0a050505 or ip[62:4] = 0x0a050505 )'<br>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes<br>
16:18:17.434378
 IP os-network-d > os-compute-01-d: GREv0, key=0x0, length 110: IP 
<a href="http://opskzlp119.snops.net">opskzlp119.snops.net</a> > <a href="http://10.5.5.5">10.5.5.5</a>: ICMP echo request, id 21321, seq 
488, length 64<br>16:18:17.436190 IP os-compute-01-d > os-network-d: 
GREv0, key=0x0, length 110: IP 10.5.5.5 > <a href="http://opskzlp119.snops.net">opskzlp119.snops.net</a>: ICMP 
echo reply, id 21321, seq 488, length 64<br>16:18:18.435750 IP 
os-network-d > os-compute-01-d: GREv0, key=0x0, length 110: IP 
<a href="http://opskzlp119.snops.net">opskzlp119.snops.net</a> > <a href="http://10.5.5.5">10.5.5.5</a>: ICMP echo request, id 21321, seq 
489, length 64<br>16:18:18.437798 IP os-compute-01-d > os-network-d: 
GREv0, key=0x0, length 110: IP 10.5.5.5 > <a href="http://opskzlp119.snops.net">opskzlp119.snops.net</a>: ICMP 
echo reply, id 21321, seq 489, length 64<br>:<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 9:55 AM, Robert van Leeuwen <span dir="ltr"><<a href="mailto:Robert.vanLeeuwen@spilgames.com" target="_blank">Robert.vanLeeuwen@spilgames.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">> Thanks for the reply. I have one more question.<br>
> How we will check whether the tunneling is established or not?<br>
<br>
</div>tcpdump can show you the GRE traffic:<br>
tcpdump -i ethX proto gre<br>
<br>
Cheers,<br>
Robert<br>
<div class=""><div class="h5">_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br><br></div></div>