GRE

Unanswered Question
Aug 23rd, 2007

Hello,

How can I make a GRE tunnel betwen cisco router and ADSL. What is the configuration of GRE tunnel if other side of the tunnel has dynamic IP address.

Thanks in advance

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
Richard Burts Thu, 08/23/2007 - 07:50

antonio

The traditional implementation of GRE tunnels requires static IP addresses on both ends of the tunnel. Cisco has introduced a new feature of dynamic multipoint GRE which allows one end of the tunnel to have dynamic addressing. I believe that this is what you need. This link should give you information to get started:

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455c71.html

HTH

Rick

Antonio_1_2 Mon, 08/27/2007 - 00:03

Thanks a lot. Just one question. Is it possible to use dns name instead of IP address in IOS configuration. i.e. for destination address in GRE tunnel?

osiristrading123 Mon, 08/27/2007 - 13:40

There actually is a nifty way to make this work: set up a config script which contains this:

---

interface tunnel

tunnel destination remote.host.name

end

---

Copy this script to the router via TFTP or HTTP, and set up a kron job to copy the file to running-config every minute. IOS will resolve the hostname to the correct IP address. You will also need to issue a "file prompt quiet" command to the router in config mode, or this will not work.

Lastly, whenever the IP address changes, your GRE tunnel may be down for a few minutes.

Antonio_1_2 Wed, 08/29/2007 - 00:13

Great! Thanks a lot. Just to make clear for me: when I use coomand tunnel destination remote.host.name (DNS name instead IP addr.) IOS resolve remote.host.name once and cache IP address? It doesn't query DNS server anymore (i.e. when tunnel gets up)?

Pavel Bykov Wed, 08/29/2007 - 02:26

IOS resolves the DNS and applies the configuration with the resolved IP address. It's a command parsing feature - the actual configuration cannot be with DNS name. Therefor it resolves the name only once (during entering the command), and writes resolved IP address. If DNS server will not be available at the time when you issued the command, it will not resolve the IP address and configuration will be invalid.

Make sure DNS server is available whenever you are pasting/typing/issuing commands with DNS names.

osiristrading123 Wed, 08/29/2007 - 06:44

Antonio, yes, that is correct. By setting up the kron job, you are simulating typing in the correct ip address every minute. We have a few tunnels running like this, and it works very well.

Actions

This Discussion