Welcome Guest!
twitter facebook rss

,

How to setup a GRE tunnel on a Cisco Router ?

Problem:

How to setup a GRE tunnel on a Cisco Router ?



Solution:


So, let’s warm up the new year with an easy tutorial on how to setup a GRE tunnel on a Cisco router.

Consider this scenario:
Router1 = 172.16.1.1
Router2 = 192.168.0.1

The routing between these routers are fixed so that they can reach each other, like on the internet.
Router2 will have the network 10.0.10.0/24 routed to it via a GRE tunnel.
The address on the tunnel interfaces will be 10.0.0.1 and 10.0.0.2 for Router1 and Router2 respectively.

Router1 configuration:

Router1(config)#interface Tunnel 0
Router1(config-if)#tunnel source 172.16.1.1
Router1(config-if)#tunnel destination 192.168.0.1
Router1(config-if)#tunnel mode gre ip
Router1(config-if)#ip address 10.0.0.1 255.255.255.252
Router1(config-if)#no shutdown
Router1(config-if)#exit
Router1(config)#ip route 10.0.10.0 255.255.255.0 10.0.0.2

Router1(config)#interface Tunnel 0
Router1(config-if)#tunnel source 192.168.0.1
Router1(config-if)#tunnel destination 172.16.1.1
Router1(config-if)#tunnel mode gre ip
Router1(config-if)#ip address 10.0.0.2 255.255.255.252
Router1(config-if)#no shutdown
Router1(config-if)#exit
Router1(config)#ip route 10.0.10.0 255.255.255.0 Null 0

You can now setup addresses within 10.0.10.0/24 on any interface you want and use them like as they were routed to your router directly.
The traceroute from Router2 to Router1 should look something like this:

Router2#traceroute 10.0.0.1

Type escape sequence to abort.
Tracing the route to 10.0.0.1

1 10.0.0.1 8 msec 8 msec 8 msec

Voila, we got routing over GRE!

0 comments

Readers Comments

Latest Posts

How to shut down windows 8 ?

Problem:How to shut down windows 8 ?Solution:To shut Windows 8 down, just move the mouse cursor to the bottom right corner of the screen, c...

Read in full »
How to find your applications in windows 8 ?

Problem:How to find your applications in windows 8 ?Solution:The Win+X menu is ...

How to quickly access menu in windows 8 ?

Problem:How to quickly access menu in windows 8 ?Solution:Right-click in the bo...

How to group the Applications in windows 8 ?

Problem:How to group the Applications in windows 8 ?Solution:The Start screen a...

Sponsored By

Featured Video

Templates

Multimedia

How to Drive Twitter Traffic to Your Website

Problem:How to  Drive Twitter Traffic to Your WebsiteSolution:Twitter is the greatest source of traffic. The best thing about twitter ...

Read in full »
5 Types of Social Media Users to Interact Well

Problem:5 Types of Social Media Users to Interact WellSolution:There are a numb...

How to avoid mistakes when designing a website

Problem:How to avoid mistakes when designing a websiteSolution:Your business we...

Website Design Checklist to Create a Successful Website

Problem:Website Design Checklist to Create a Successful WebsiteSolution:Whether...

Top 10 Tips for Choosing a Web Designer for Your Business Web Site

Problem:Top 10 Tips for Choosing a Web Designer for Your Business Web SiteSolut...

Networking

How to analyze network traffic in Linux ?

Problem:How to analyze network traffic in Linux ?Solution:Have you ever needed to see traffic in front of your eyes? There exists a tool in...

Read in full »

Blogger

Our Sponsors

Windows

Templates

Networking

Internet

Mobiles

Mobiles

Our Sponsors

Visit Nepal Info and Guide