cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1031
Views
15
Helpful
7
Replies

GRE

Antonio_1_2
Level 1
Level 1

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

7 Replies 7

Richard Burts
Hall of Fame
Hall of Fame

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

HTH

Rick

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?

no.You need to use only the IP address for GRE source and destination,

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.

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)?

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.

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card