DMVPN Phase 1 OSPF Routing

This topic is to discuss the following lesson:

Hi Rene,

If we configure the stub area and the spoke receive the default route, the default route will not take any effect as we still have a static default route at the SPOKE router which pointing to the internet gateway. We still not able to reach to the IA route from the spoke router in this case right?


Hi Davis,

Good question and yes, this is an issue. In my example I could use default routes since the routers are directly connected. In a real network however you are probably using a default route towards the ISP.

In that case you shouldn’t use a default route but a summary route instead.


In the “Non Broadcast” configuration section ; I’m a little bit confused about the neighbor command.

With my GNS3 IOS :

* The neighbor command expects that the interface be configured as point-to-multipoint. And, finally ; it does not turn the interface to NBMA.

* The command ip ospf network non-broadcast does perfectly the job.

What exactly is the difference between the two commands ?

Hello Maodo

In order to configure the network as an NBMA, it is necessary to enter the ip ospf network non-broadcast command. If that is done, then in order to get the OSPF functioning correctly, the neighbor command must be issued. This is because when you configure the interface as an NBMA, neighbor relationships will not form automatically.

Now in @ReneMolenaar’s lesson, the command ip ospf network non-broadcast was not actually included in the lesson. It was assumed. It might be worth clarifying that in the lesson. I will let @ReneMolenaar know…

I hope this has been helpful!


For last ospf example, it seems the configuration below is missing ?
network area 0

172.16.123.x/32 subnets are shown. It was not supposed, since Tunnel0 is configured as /24 ? is already connected to the router, it was not supposed to appear as O route prefix ? is variably subnetted, 4 subnets, 2 masks
O [110/1000] via, 00:10:32, Tunnel0
O [110/2000] via, 00:10:32, Tunnel0

Hello Maodo

In the final example where Rene shows a stub network, it is assumed that this has been configured from the previous sections. However, it may be clearer to include it here. I will let Rene know…


Hi Rene,
you configured totally stubby area by specifying the no-summary on the hub right?

Hello Onyi

Yes, the area 1 stub no-summary command specifies the area as a totally stub area. More info on this can be found at the following lesson:

I hope this has been helpful!


Hi there!
I couldn’t understand this part of the routing table: is variably subnetted, 4 subnets, 2 masks
O [110/1000] via, 00:00:57, Tunnel0
O [110/2000] via, 00:00:57, Tunnel0

I mean why it writes 4 subnets, 2 masks, while we have only one subnet there.

Hello Hassib

There are several things going on here. The first is that the output being shown is only for OSPF due to the ospf keyword used at the end. So you only see the OSPF routes, but the information in that particular line, refers also to routes that don’t appear. If you were to not use the ospf keyword, the output would look something like this: is variably subnetted, 4 subnets, 2 masks
C is directly connected, Tunnel0
L is directly connected, Tunnel0
O [110/1000] via, 00:01:23, Tunnel0
O [110/2000] via, 00:01:13, Tunnel0

Note, for reference, that the output is for Spoke1 of the lesson, same as your output too.

So here you see that there are indeed 4 subnets, because directly connected networks appear as two separate subnets, one for the whole subnet and one for the particular /32 address. Note also that there are two different sizes of masks. A /24 mask and three /32 masks.

I hope this has been helpful!


Thank you for your answer Laz, now it is clear to me.

Great lesson! Thank you Rene. Have a doubt. I was lost at the Stub area part of this exercise. I am not sure of how OSPF worked in the stub area part of this exercise without the backbone area of ospf (area 0)

Hello Ayong

Notice that when Rene creates the stub network, he is changing the area to which all networks belong in all routers except for the network. So the areas of the OSPF topology look something like this:

So area 0 still exists, so no rules about OSPF backbone area have been violated. And secondly, area 1 is made into a stub area, so you can reduce the number of routes that may exist behind the hub, that are advertised into the DMVPN network. Notice that the network no longer appears within the routing tables of the spokes, which is the purpose of the specific configuration.

I hope this has been helpful!


Thank you so much Laz. Well explained.

1 Like

Hi Rene/Laz,

Could you emphasize this statement “All spokes in the DMVPN network have to be in the same area and when something changes, all routers have to run SPF…also we can’t do any summarization within the area”.

Espicialy please elaborate “when something changes, all routers have to run SPF”, what impact it will do on DMVPN network

Hello Pradyumna

What Rene is saying here is that in order to get OSPF to function correctly in such a topology, you must have all spokes within the same OSPF area. You cannot place spokes in a different OSPF area each. You can however, create additional OSPF areas behind each spoke or hub router as was done in the lesson.

Rene is saying that this is a disadvantage of using OSPF for a DMVPN network. If you have a very large network with tens or over a hundred spokes, any change that occurs in the topology (say you add an additional spoke to the topology, or a spoke fails) then the SPF algorithm of OSPF must be run on all routers. This means that CPU and memory will be consumed on all devices as well as bandwidth over the DMVPN links for the exchange of OSPF messages. This can take time, and will impact the efficiency of the routers themselves as well as the usage of the often limited bandwidth on DMVPN links.

I hope this has been helpful!