Route Redistribution

Problem

You want to redistribute IPv6 routes between routing protocols.

Solution

First, we will show an example of redistributing from OSPF into RIPv6:

Router1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#ipv6 router rip RIP_PROC
Router1(config-rtr)#redistribute ospf 1 metric 5
Router1(config-rtr)#exit
Router1(config)#end
Router1#

And here is an example showing redistribution of RIPv6 into OSPF:

Router1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#ipv6 router ospf 1
Router1(config-rtr)#redistribute rip RIP_PROC 
Router1(config-rtr)#exit
Router1(config)#end
Router1#

You can advertise a default route with OSPF by using the default-information originate command:

Router1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#ipv6 router ospf 1
Router1(config-rtr)#default-information originate always 
Router1(config-rtr)#exit
Router1(config)#end
Router1#

Discussion

Both of these examples show a minimal configuration for redistributing from one routing protocol into another. In a moment we will show some more sophisticated examples, but these examples show the basic requirements. In the first example, we redistribute OSPF routes into RIP:

Router1(config)#ipv6 router rip RIP_PROC
Router1(config-rtr)#redistribute ospf 1metric 5

Note that, in this example, we have somewhat arbitrarily set a default metric for RIP to use for all of these redistributed ...

Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.