Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

GRE

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
Hall of Fame Super Silver

Re: GRE

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

New Member

Re: GRE

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?

New Member

Re: GRE

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

New Member

Re: GRE

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.

New Member

Re: GRE

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

Silver

Re: GRE

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.

New Member

Re: GRE

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.

255
Views
15
Helpful
7
Replies