How to configure OSPF Default Route

Shawn,
Yes, you can do this, sort of :slight_smile:

Remember that a requirement for OSPF is that all members in the same area must have identical databases (and I presume that your DMVPN hub and spokes are in the same area). So the best you are going to be able to do is keep that default route from getting installed in the routing table, even though it will still be present in the OSPF database. I recommend using a prefix-list to do it. Here’s a sample:

(config)#ip prefix-list PL_NODEFAULT deny 0.0.0.0/0
(config)#ip prefix-list PL_NODEFAULT permit 0.0.0.0/0 le 32
(config)#router ospf 1
(config-router)#distribute-list prefix PL_NODEFAULT in
1 Like