cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3422
Views
0
Helpful
5
Replies

VPN with Dynamic IPs. How to use DNS ?

ioanniatr
Level 1
Level 1

hi,

I have setup a site-to-site IPSec VPN between two cisco routers with Static public IPs. I notice that i can use hostnames instead IPs for cases with point-to-multipoint or Dynamic IPs. In that cases i can use this commands to setup VPN:

(config)#crypto isakmp identity hostname

(config)#crypto isakmp key XXXXX hostname "Remote_name"

(config-crypto-map)# set peer "Remote_name"

I also notice that i can use a cisco router as a DNS, and i can add host records with:

ip host "Remote_Name" "IP address"

Actually I want one router to work with Static Public IP ( Router_A ) and one with Dynamic Public IP (Router_B) from ISP. So maybe i can set Router with Static IP to work as DNS server. I know how DynDNS works with an account and software update client on a PC/server, but I've never used DNS hardware update clients and i don't know what steps i must follow to implement this.

1 Accepted Solution

Accepted Solutions

Hi John,

The section in the link below should help you configure DDNS on your router:

(Refer to Http Update example)

http://www.cisco.com/en/US/docs/ios/12_3/12_3y/12_3ya8/gt_ddns.html#wp1203580

This link shows an abstract conifg:

http://www.no-ip.com/support/guides/routers/using_cisco_routers_with_no-ip.html

For Dynamic to Static VPN refer to this link (this does not require DDNS):

http://www.cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a0080093f86.shtml

HTH

Regards,

Praveen

View solution in original post

5 Replies 5

Hi,

You're correct.

Another option will be to configure a Static-to-dynamic IPsec L2L tunnel between both sites.

This will be a regular Site-to-Site configuration on the dynamic side and a client configuration on the static site.

Also using EzVPN will work as well.

Federico.

hi,

Can you give me more details about this ?

I known that i can set DNS IP with:

  (Router_A)# ip name-server "DNS IP"

How do i set a (Static) Router to act as DNS Server ? How can i set a (Dynamic) Router to send hostname/IP updates to DNS server/Router ?

hi,

I found out how to set a router act as DNS server:

ip dns server

ip domain name "myDomain"

ip dns primary "myDomain" soa "Server IP or hostname" "postmaster e-mail"

ip host "hostname" "IP"

Now i'm missing only the part of DDNS updates from clients

Hi John,

The section in the link below should help you configure DDNS on your router:

(Refer to Http Update example)

http://www.cisco.com/en/US/docs/ios/12_3/12_3y/12_3ya8/gt_ddns.html#wp1203580

This link shows an abstract conifg:

http://www.no-ip.com/support/guides/routers/using_cisco_routers_with_no-ip.html

For Dynamic to Static VPN refer to this link (this does not require DDNS):

http://www.cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a0080093f86.shtml

HTH

Regards,

Praveen

hi Praveen,

Great !! This was more than complete answer. I was looking to the internet, anything that has to do with DNS it's completely chaos. Especially the 3rd link was exactly all that i needed. Thanks to you now i have complete image of what is going on.

Thanks,

John

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: