# How to configure GRE Tunnel on Cisco IOS Router

**URL:** https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 5:51pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997 "2016-12-26T17:51:22Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 9, 2014, 11:09am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/21 "2014-11-09T11:09:17Z")

</div>

Thanks Alfredo! That means a lot to me, glad to hear you like it!

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 15, 2015, 8:47pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/22 "2015-05-15T20:47:27Z")

</div>

Hi Rene,

Could you please answer this would be appreciated…

When configuring eigrp or ospf process under the configuration do you advertise your own address to?  
how comes you did not configure a router protocol i.e. eirgrp or ospf with isp router?  
could you have used a routing protocol instead of static routes when reaching other areas?  
when i do configure eigrp network with 0.0.0.0 statement my tunnel do not come up?

thank you

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 16, 2015, 9:23am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/23 "2015-05-16T09:23:41Z")

</div>

Hi Adil,

In this example I used a static route on the HQ and Branch router so HQ knows how to reach 192.168.23.3 and Branch knows how to reach 192.168.12.1. These two addresses are required since we use them to establish the Tunnel.

Instead of the static routes you could use a routing protocol but then you also need to enable routing on the ISP router.

Once the tunnel is up and running, I run EIGRP on the tunnel interface so that HQ and Branch can learn about each others loopback interfaces.

Rene

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 16, 2015, 9:31am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/24 "2015-05-16T09:31:41Z")

</div>

Thank You much appreciated, however under the router eigrp command for example how comes you do not advertise the other Lo0 address of Branch router for example:

Example:

```
HQ(config)#router eigrp 13    
HQ(config-router)#no auto-summary 
HQ(config-router)#network 192.168.13.0
HQ(config-router)#network 172.16.1.0
HQ(config-router)#network 172.16.3.0 (Add command?)

```

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 16, 2015, 9:35am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/25 "2015-05-16T09:35:18Z")

</div>

And likewise for The branch router? (Sorry basic’s just want to get an understanding how we only advertise it’s own network interfaces and why not the destination networks under routing protocols i.e. eigrp or ospf?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 16, 2015, 9:39am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/26 "2015-05-16T09:39:33Z")

</div>

Hi Adil,

The network command doesn’t work like that. Here’s how it works:

- Any network on an active interface of your router will be advertised if it falls within the range of your network command.
- Besides being advertised, routing updates will be sent out of this interface.

So for example:

```
HQ(config)#router eigrp 13    
HQ(config-router)#no auto-summary 
HQ(config-router)#network 192.168.13.0
HQ(config-router)#network 172.16.1.0

```

On our HQ router, any interface that falls within 192.168.13.0 will have its network advertised and we send EIGRP hello packets on this interface (to form neighbor adjacency), that’s the Tunnel interface.

The same thing applies to 172.16.1.0, the loopback falls within this range.

You can’t use “network 192.168.3.0” on the HQ router, it doesn’t have any interfaces that have a network in this range.

Here’s an in depth explanation of the network command btw:

> **[How to configure RIP on a Cisco router](https://networklessons.com/rip/how-to-configure-rip-on-a-cisco-router)**
>
> In this lesson, I'll explain to you how to configure and verify the Rip Information Protocol (RIP) on Cisco IOS routers.

Rene

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 16, 2015, 9:42am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/27 "2015-05-16T09:42:01Z")

</div>

Thanks Again, really appreciate this for clarifying. Keep up the good work 🙂

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 16, 2015, 9:44am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/28 "2015-05-16T09:44:34Z")

</div>

You are welcome!

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 30, 2015, 1:30pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/29 "2015-05-30T13:30:32Z")

</div>

Hi Rene,

I tried using ospf instead of eigrp for this however it didn’t seem to like this and did not come up?

Regards

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 30, 2015, 1:50pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/30 "2015-05-30T13:50:26Z")

</div>

Hi Adil,

You can use any routing protocol on the tunnel interfaces, it doesn’t matter. Did the tunnel not come up? I used two static routes for reachability for the tunnel source IP addresses.

Rene

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [May 30, 2015, 3:12pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/31 "2015-05-30T15:12:24Z")

</div>

Hi yes, i configured this however the tunnel did not come up. Will re-test this again but it did work for eigrp.

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [June 2, 2015, 12:45am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/32 "2015-06-02T00:45:54Z")

</div>

Hi Rene,

We have a gre set up in our network however, we are seeing one side only drop intermitterly stated line protocol down…also at the same time the router it’s self is hanging really badly…what troublshooting step could i possibly do to find out if the gre it’s self is at fault or the router but i cannot do a debug on it? thank you

Adil

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [June 3, 2015, 8:32pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/33 "2015-06-03T20:32:20Z")

</div>

Hi Adil,

Hmm when the router is hanging, is it not responding for a few seconds and then fast again? Or is it really slow all the time?

There are two possible scenarios that I can think of:

1. Recursive routing issues:  
[https://networklessons.com/ciscogre-tunnel-recursive-routing-error/](https://networklessons.com/ciscogre-tunnel-recursive-routing-error/)

2. Maybe your router is handling some packets in software, this could cause the CPU to spike to 100% which makes the router (very) slow…

You could check the CPU load of your router with “show processes”. It should be pretty low, if it’s above 50% or so then there’s something to troubleshoot 🙂

Rene

---

<div class="post-metadata">

### Author: ![adilkhan](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@adilkhan](https://forum.networklessons.com/u/adilkhan)
#### Post date: [June 4, 2015, 10:18am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/34 "2015-06-04T10:18:11Z")

</div>

thanks will look into this.

---

<div class="post-metadata">

### Author: ![adamevo5](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/779978/32.png) [@adamevo5](https://forum.networklessons.com/u/adamevo5)
#### Post date: [August 20, 2015, 10:49am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/35 "2015-08-20T10:49:45Z")

</div>

Hi Rene,

Is the reason that you are not seeing recursive routing issues in this case because you have used static routes which have a lower cost than an eigrp route? It appears that you are advertising the tunnel network in this case. Which I thought you said not to do. I’m just a little confused.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 20, 2015, 8:01pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/36 "2015-08-20T20:01:48Z")

</div>

Hi Adam,

Did you see this tutorial?

[https://networklessons.com/ciscogre-tunnel-recursive-routing-error/](https://networklessons.com/ciscogre-tunnel-recursive-routing-error/)

This explains exactly how the recursive routing occurs.

Rene

---

<div class="post-metadata">

### Author: ![manu2005py](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/manu2005py/32/203_2.png) [@manu2005py](https://forum.networklessons.com/u/manu2005py)
#### Post date: [October 16, 2015, 12:32am UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/37 "2015-10-16T00:32:39Z")

</div>

How i can do the same thing but with real LAN with 2 PC connected to a switch in each Router (HQ - BRANCH)?.

Thanks

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [October 16, 2015, 2:46pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/38 "2015-10-16T14:46:58Z")

</div>

Hi Victor,

The configuration of the routers would be the exact same thing. If you have real routers, just connect the computers directly to your routers (or put a switch in between). If you want to try this in GNS3 then you can use the “cloud” icon to connect your virtual routers to physical NICs.

Rene

---

<div class="post-metadata">

### Author: ![shantel](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shantel/32/360_2.png) [@shantel](https://forum.networklessons.com/u/shantel)
#### Post date: [December 26, 2016, 5:51pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/39 "2016-12-26T17:51:35Z")

</div>

19 posts were merged into an existing topic: [How to configure GRE Tunnel on Cisco IOS Router](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997)

---

<div class="post-metadata">

### Author: ![adriantaranu11](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@adriantaranu11](https://forum.networklessons.com/u/adriantaranu11)
#### Post date: [January 16, 2016, 5:41pm UTC](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997/40 "2016-01-16T17:41:22Z")

</div>

Dear Rene,

1. Can you please tell why did you used:

`tunnel source fastEthernet 0/0`

and not:

`tunnel source 192.168.12.1`

instead? What would be the difference ?

1. Now, this might sound silly but anyway … Given the below config:

```auto
HQ(config)#interface tunnel 1
HQ(config-if)#tunnel source fastEthernet 0/0
HQ(config-if)#tunnel destination 192.168.23.3
HQ(config-if)#ip address 192.168.13.1 255.255.255.0

```

what I still cannot understand (I have read a couple of articles on GRE) and seems very strange to me is how the ip address of the tunnel is 192.168.13.1 and the source is the ip of another (??) interface (which is fa 0/0 - 192.168.12.1).  
To my common sense the source should be 192.168.13.1.

1. Why do some tunnels are mentioning loopback interfaces as source interfaces, instead of serial0 or its ip?

I know I am wrong but I still cannot understand it … :((

Thank you!

[Previous page](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997.md?page=1)

[Next page](https://forum.networklessons.com/t/how-to-configure-gre-tunnel-on-cisco-ios-router/997.md?page=3)
