Master CCNA

How to Master CCNA Ebook

 

 

My book will help you Master CCNA

Master CCNP SWITCH

How to master CCNP SWITCH ebook

 

 

My book will help you Master CCNP SWITCH

Master CCNP ROUTE

How to master CCNP ROUTE Ebook

 

 

My book will help you Master CCNP ROUTE

Print

GRE Tunnel Basic

Written by Rene Molenaar on . Posted in Tunneling & GRE

{difficulty}3{/difficulty}

Scenario:

You are working for Company "BigLabs" and you have heard some colleague network engineers talk about VPN tunnels and how they were unable to send routing protocols across the VPN tunnels. You also heard that a  GRE tunnel could possible solve this problem. Let's see what this is all about and lab it up!

Goal:

  • Configure all IP addresses as specified in the topology picture.
  • Configure a loopback interface on Router Godzilla and Nessie:
    Godzilla: Loopback0: 1.1.1.1 /24
    Nessie: Loopback0: 3.3.3.3 /24
  • Configure EIGRP AS1 on all 3 routers, only advertise the 192.168.12.0 and 192.168.23.0 network, do not advertise the loopbacks.
  • Ensure Router Godzilla and Nessie can ping each other.
  • Configure a GRE tunnel between Router Godzilla and Nessie.
  • Configure the 192.168.13.0 /24 network on the GRE tunnel:
    Godzilla: 192.168.13.1
    Nessie: 192.168.13.3
  • Ensure you can ping the IP addresses that you configured on the tunnel interface.
  • Configure another loopback interface on Router Godzilla and Nessie:
    Godzilla: Loopback1: 11.11.11.11 /24
    Nessie: Loopback1: 33.33.33.33 /24
  • Configure OSPF and use network commands to advertise the network on the GRE tunnel.
  • Advertise Loopback1 in OSPF on Router Godzilla and Nessie.
  • Ensure you establish a OSPF neighbor relationship and that you see the loopback1 interfaces in the routing table.

IOS:

c3640-jk9s-mz.124-16.bin

Topology:

You need to register to be able to download the GNS3 Topology File. (Registration is Free!)

Video Solution:

You need to a flashplayer enabled browser to view this YouTube video

Only registered users can write comments!

Comments (13)

  • avatar
    usrah

    Hi Rene:
    First of all, thanks for the lab. I'm trying to do it but I have some problemas with the tunneling. Could you put the routers configuration in order to check my solution?
    Thanks in advance,

  • avatar
    ReneMolenaar

    Hi Luis,

    Do you still have your configs? drop them here and i'll take a look.

  • avatar
    ebalmon

    Hi Rene, Thanks for the lab and congratulation for the page. Could you check it? If I can see the network 33.33.33.0/24 know by a OSPF update, I guess is work right? Thanks for your time

    Godzilla#sh ip route

    Gateway of last resort is not set

    C 192.168.12.0/24 is directly connected, FastEthernet0/0
    1.0.0.0/24 is subnetted, 1 subnets
    C 1.1.1.0 is directly connected, Loopback0
    C 192.168.13.0/24 is directly connected, Tunnel0
    33.0.0.0/32 is subnetted, 1 subnets
    O 33.33.33.33 [110/11112] via 192.168.13.3, 00:01:10, Tunnel0
    D 192.168.23.0/24 [90/30720] via 192.168.12.2, 00:44:47, FastEthernet0/0
    11.0.0.0/24 is subnetted, 1 subnets
    C 11.11.11.0 is directly connected, Loopback1

  • avatar
    ReneMolenaar

    If you see the OSPF update you can assume it's working correctly. A better idea is to use some show and debug commands to confirm that it's actually working.

  • avatar
    venomriser

    Rene,

    i can up the tunnel. My line protocol stays down. any reason?
    I used the fe interface as source.

  • avatar
    venomriser

    sorry, i can't bring up the tunnel.

  • avatar
    xtophe02

    ***********Godzilla************
    host Godzilla
    line con 0
    logg sy
    int f0/0
    ip add 192.168.12.1 255.255.255.0
    no sh
    !
    int l0
    ip add 1.1.1.1 255.255.255.0
    !

    router eigrp 1
    netw 192.168.12.0 0.0.0.255
    !
    int tun 0
    ip add 192.168.13.1 255.255.255.0
    tu so f0/0
    tu des 192.168.23.3
    !
    int l1
    ip add 11.11.11.11 255.255.255.0
    !
    router ospf 1
    !netw 192.168.12.0 0.0.0.255 are 0
    netw 1.1.1.1 0.0.0.255 are 0
    netw 11.11.11.11 0.0.0.255 are 0
    netw 192.168.13.0 0.0.0.255 are 0
    !


    ***********KingKong************

    host KingKong
    line con 0
    logg sy
    int f0/0
    ip add 192.168.12.2 255.255.255.0
    no sh
    int f1/0
    ip add 192.168.23.2 255.255.255.0
    no sh
    !
    router eigrp 1
    netw 192.168.12.0 0.0.0.255
    netw 192.168.23.0 0.0.0.255
    !

    ***********nessie********

    host Nessie
    line con 0
    logg sy
    int f0/0
    ip add 192.168.23.3 255.255.255.0
    no sh
    !
    int l0
    ip add 3.3.3.3 255.255.255.0
    !
    router eigrp 1
    netw 192.168.23.0 0.0.0.255
    !
    !
    int tun 0
    ip add 192.168.13.3 255.255.255.0
    tu so f0/0
    tu des 192.168.12.1
    !
    int l1
    ip add 33.33.33.33 255.255.255.0
    !
    router ospf 1
    !netw 192.168.23.0 0.0.0.255 are 0
    netw 192.168.13.0 0.0.0.255 are 0
    netw 3.3.3.3 0.0.0.255 are 0
    netw 33.33.33.33 0.0.0.255 are 0
    !

  • avatar
    Router Joe

    Great lab ..thanks and keep them coming!

  • avatar
    ersanka

    Thanks for this Lab. Useful abd clear one for solid understanding. :)

  • avatar
    BS

    Hi,
    1) We have configured loop back 0 (1.1.1.1 and 3.3.3.3)but never used it in GRE-config. Is this loop back not required for GRE?.
    2) On tunnel interfaces, we assigned IPs 192.168.13.1 and 192.168.13.3 but we never used that too so we can assign any random IPs on tunnel interface. Then why we have given that IP?

  • avatar
    ReneMolenaar

    On all the routers EIGRP is configured for basic connectivity. This way we can create a GRE tunnel between the two routers, otherwise they don't know how to reach each others IP address.

    We use the IP addresses on the GRE tunnel so we can establish an OSPF adjacency between the two routers, the loopbacks are advertised in OSPF and learned through the GRE tunnel.