Creating a Default Route in RIP
Problem
You want RIP to propagate a default route.
Solution
There are two ways to get RIP to propagate a default route. The preferred method is using the default-information originate command as follows:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip route 0.0.0.0 0.0.0.0Router1(config)#172.25.1.1router ripRouter1(config-router)#default-information originateRouter1(config-router)#endRouter1#
In simple situations, you can accomplish the same thing by just redistributing a static route:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip route 0.0.0.0 0.0.0.0Router1(config)#172.25.1.1access-list7permitRouter1(config)#0.0.0.0router ripRouter1(config-router)#redistribute staticRouter1(config-router)#distribute-list7out staticRouter1(config-router)#endRouter1#
Discussion
There are two main advantages to using default originate instead of simply redistributing static routes. The first is that you may have other static routes on your router that you do not want to distribute, or that you want to distribute with a different default metric. In this case, if you just use redistribute static, you will need to filter out the unwanted routes using route maps, as shown in Recipe 6.4, or a distribute-list, as we use in this recipe.
The other important advantage is that the default-information originate option lets you create a conditional ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access