08-23-2007 07:21 AM - edited 03-03-2019 06:26 PM
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
08-23-2007 07:50 AM
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
08-27-2007 12:03 AM
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?
08-27-2007 01:26 AM
no.You need to use only the IP address for GRE source and destination,
08-27-2007 01:40 PM
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.
08-29-2007 12:13 AM
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)?
08-29-2007 02:26 AM
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.
08-29-2007 06:44 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide