{"id":334895,"date":"2010-02-18T10:06:23","date_gmt":"2010-02-18T15:06:23","guid":{"rendered":"http:\/\/www.linuxscrew.com\/?p=977"},"modified":"2010-02-18T10:06:23","modified_gmt":"2010-02-18T15:06:23","slug":"cisco-gre-example-setup","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/334895","title":{"rendered":"Cisco GRE example setup"},"content":{"rendered":"<p>Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn&#8217;t care what networks are behind R1 and R2 so the only way to establish connection between LAN1 and LAN2 is to use VPN, in this example we use GRE.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.linuxscrew.com\/wp-content\/uploads\/2010\/02\/GRE-lab.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-978 aligncenter\" title=\"GRE-lab\" src=\"http:\/\/www.linuxscrew.com\/wp-content\/uploads\/2010\/02\/GRE-lab.jpg\" alt=\"\" width=\"431\" height=\"148\" \/><\/a><br \/>\nGRE setup example topology<\/p>\n<p><span id=\"more-977\"><\/span><\/p>\n<p style=\"text-align: left;\"><strong>R1&#8217;s startup-config (part of it)<\/strong><\/p>\n<p style=\"text-align: left;\">!<\/p>\n<pre>hostname R1\n!\ninterface Tunnel0\ndescription GRE tunell to R2\nip address 192.168.200.1 255.255.255.0\ntunnel source 123.123.0.10\ntunnel destination 123.123.1.10\n!\ninterface FastEthernet 1\/0\nip address 10.0.0.1 255.255.255.0\n!\ninterface Serial1\/0\nip address 123.123.0.10 255.255.255.0\nserial restart-delay 0\n!\nip classless\nip route 0.0.0.0 0.0.0.0 123.123.0.1\nip route 10.1.1.0 255.255.255.0 192.168.200.2\n!<\/pre>\n<p><strong>R2&#8217;s startup-config (part of it)<\/strong><\/p>\n<p style=\"text-align: left;\">!<\/p>\n<pre>hostname R2\n!\ninterface Tunnel0\ndescription GRE tunnel to R2\nip address 192.168.200.2 255.255.255.0\ntunnel source 123.123.1.10\ntunnel destination 123.123.0.10\n!\ninterface FastEthernet 1\/0\nip address 10.1.1.1 255.255.255.0\n!\ninterface Serial1\/0\nip address 123.123.1.10 255.255.255.0\nno fair-queue\nserial restart-delay 0\n!\nip classless\nip route 0.0.0.0 0.0.0.0 123.123.1.1\nip route 10.0.0.0 255.255.255.0 192.168.200.1\n!<\/pre>\n<p><strong>Results<\/strong><\/p>\n<pre>R2#ping 10.1.1.1\nType escape sequence to abort.\nSending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:\n!!!!!\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 12\/17\/28 ms\n\nR3#ping 10.0.0.1\nType escape sequence to abort.\nSending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:\n!!!!!\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 12\/20\/44 ms<\/pre>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?a=iFQXUuEO4zY:FD3KsCBdQhM:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?a=iFQXUuEO4zY:FD3KsCBdQhM:7Q72WNTAKBA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?d=7Q72WNTAKBA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?a=iFQXUuEO4zY:FD3KsCBdQhM:V_sGLiPBpWU\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?i=iFQXUuEO4zY:FD3KsCBdQhM:V_sGLiPBpWU\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?a=iFQXUuEO4zY:FD3KsCBdQhM:gIN9vFwOqvQ\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?i=iFQXUuEO4zY:FD3KsCBdQhM:gIN9vFwOqvQ\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?a=iFQXUuEO4zY:FD3KsCBdQhM:dnMXMwOfBR0\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/linuxscrew?d=dnMXMwOfBR0\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/linuxscrew\/~4\/iFQXUuEO4zY\" height=\"1\" width=\"1\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn&#8217;t care what networks are behind R1 and R2 so the only way to establish connection between LAN1 and LAN2 is to use VPN, in this example we use GRE. GRE setup example topology [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-334895","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/334895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=334895"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/334895\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=334895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=334895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=334895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}