Cisco GRE example setup

Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn’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

R1’s startup-config (part of it)

!

hostname R1
!
interface Tunnel0
description GRE tunell to R2
ip address 192.168.200.1 255.255.255.0
tunnel source 123.123.0.10
tunnel destination 123.123.1.10
!
interface FastEthernet 1/0
ip address 10.0.0.1 255.255.255.0
!
interface Serial1/0
ip address 123.123.0.10 255.255.255.0
serial restart-delay 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 123.123.0.1
ip route 10.1.1.0 255.255.255.0 192.168.200.2
!

R2’s startup-config (part of it)

!

hostname R2
!
interface Tunnel0
description GRE tunnel to R2
ip address 192.168.200.2 255.255.255.0
tunnel source 123.123.1.10
tunnel destination 123.123.0.10
!
interface FastEthernet 1/0
ip address 10.1.1.1 255.255.255.0
!
interface Serial1/0
ip address 123.123.1.10 255.255.255.0
no fair-queue
serial restart-delay 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 123.123.1.1
ip route 10.0.0.0 255.255.255.0 192.168.200.1
!

Results

R2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/17/28 ms

R3#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/20/44 ms

 
 
» You might also be interested in the following articles:
How to monitor traffic at Cisco router using Linux (Netflow)
Running Cisco Packet Tracer in Linux
Cisco Load Balancing with Failover setup example
Access to real Cisco routers and switches for free
15+ “must have” Cisco Cheat Sheets



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

17 Responses to “Cisco GRE example setup”


  1. 1 Rig

    GRE tunnels are awesome. :)

  2. 2 Chris

    Can someone explain how to set up a GRE tunnel to encapsulate Ethernet frames (i.e. send raw l2 traffic across a tunnel)? Thanks.

  3. 3 ??????????? ???????? cigatronik

    ??????? ?? ??????? ??? ????????, ????? ????? ?????? ?????????

  4. 4 ledlights nucash.nl fantastico

    Pretty nice post. I just stumbled upon your weblog and wished to say that I’ve really enjoyed surfing around your blog posts. In any case I will be subscribing to your feed and I hope you write again very soon!

  5. 5 ???????? ??????? ??????? ????? ??????

    ??????? :-) ??????? ??

  6. 6 cpanel

    Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is excellent, let alone the content!

  7. 7 soup recipes

    I like what you guys are doing. Such intelligent work and reporting! Keep up the superb works guys. I have incorporated you guys to my blogroll. I think it will improve the value of my web site. :)

  8. 8 Food Deal

    Simply want to say your article is as surprising. The clearness in your post is just cool and i could assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please keep up the gratifying work.

  9. 9 viagra

    It continually is amazing to me exactly how blog writers such as your self can find the time and the dedication to keep on creating superb blogposts. Your site isgood and one of my personal need to read weblogs. I just needed to thank you.

  10. 10 brazilian wax

    I’ve recently started a site, and the things you provide on this website has been tremendously useful to me. Thanxso much for all of your time & work.

  11. 11 info

    I happen to be commenting to let you know what a remarkable experience our daughter undergone viewing your blog. She came to find so many details, not to mention what it is like to have an excellent giving nature to get most people really easily know selected multifaceted issues. You really surpassed my expectations. I appreciate you for coming up with these productive, dependable, edifying and as well as fun guidance on this topic to Janet.

  12. 12 Lucas Abernathy

    My husband and i have been absolutely thrilled that Louis managed to do his survey by way of the precious recommendations he acquired out of the blog. It’s not at all simplistic to simply always be handing out key points that many many others may have been making money from. And we recognize we now have the blog owner to give thanks to for that. These explanations you’ve made, the simple web site menu, the friendships you can give support to engender – it’s most excellent, and it is helping our son in addition to the family understand the issue is exciting, which is certainly really serious. Thank you for all the pieces!

  13. 13 Gersham Sen

    This website online can be a stroll-through for all of the information you needed about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

  14. 14 mutuelle handicapé

    hello thanx for this information

  15. 15 soutien gorge

    thank you, it’s a nice topic

  16. 16 compact sleeping bag

    It’s perfect time to produce some plans for the future and it is time to be happy. I’ve read this blog post and if I could I desire to suggest you few interesting things or advice. Maybe you could write next posts referring to this article. I wish to read even more things about it!

  17. 17 ?????? ??? ????? ???????? ??????

    ?? ????? ?????? ?? ?? ?????. ???? ???????? ???? ???????. ?????? ??? ? PM.

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
TuxArena: The arena of Tux | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››