# How to configure OSPF Default Route

**URL:** <https://forum.networklessons.com/t/how-to-configure-ospf-default-route/934>\
**Category:** Lessons Discussion\
**Created:** [December 24, 2016, 6:09pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-default-route/934 "2016-12-24T18:09:04Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 20, 2020, 2:25pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-default-route/934/23 "2020-04-20T14:25:14Z")

</div>

Hello Mohammed

Let’s say you have this topology:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/5/5fef0b01e0121af2570bb5118978fb33acea9310.png)  
Let’s assume that R1 has a default route in its routing table via the interface connected to the Internet.

Now if you have the `default information originate` command in R1, then:

- R2 will install in its routing table a default route via OSPF with a next hop of 192.168.12.1 when there is a default route in the routing table of R1.
- If the internet interface of R1 goes down, or if an administrator manually removes that default route from the routing table, R2 will be informed via OSPF, and will no longer have a default route via 192.168.12.1.

Now if you have the `default information originate always` command in R1, then:

- R2 will learn of a default route via 192.168.12.1 and will install this in R2’s routing table, **regardless of whether or not R1 has a default route installed in its routing table**.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/how-to-configure-ospf-default-route/934)._
