Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

DMVPN - Default Gateway - DHCP public address at remote

I installed a Cisco 831 router this afternoon and I had a lot of trouble getting the thing to work.

The remote location is served by a cable company ISP (ComCast) and they are delivering me a dynamic ?public? IP address.

As such, I will not know the IP address of the gateway router unless I determine the IP address and mask that they assign me and then calculate the ?gateway address?.

When I originally configured the 831 I used the following ?routing? statements, expecting the router to send all traffic out the public interface:

ip route Ethernet1

ip route *omitted my /21 public supernet* Ethernet1

That did not work.

In order to get the router to actually talk to the head end and negotiate IPSEC and create the tunnel, I had to change the routing statements to:

ip route

ip route *omitted my /21 public supernet*

I used the show interface Ethernet1 command to determine the DHCP address and subnet mask that had been assigned to me (in this case the default gateway turned out to be

As soon as I made the changes to the routing statements the tunnel came up, GRE traffic updated and everything works fine.

How can I get around this, since it makes no sense to use dynamic IP addresses if I have to manually configure the gateway?

Our ISP has assigned this remote location DHCP address from several different and very diversified address blocks over the last 3 months ( /20, /23 and now /23). Obviously the gateway address changes each time they assign me an address from a different block.

I have attached the entire remote site running config as it stands right now (it is up and working ? but if the dynamic address and the gateway changes, it will go down).

Any insight is appreciated ? Thanks.


New Member

Re: DMVPN - Default Gateway - DHCP public address at remote

You'll have to put the "dhcp" keyword after the interface

(ex.: ip route Ethernet1 DHCP)

I have to done this couple of times with DHCP provider.

The DHCP keyword is for : "Default Gateway obtained from DHCP".

Just let me know if it's solve your issue ?

CreatePlease to create content