O'Reilly logo

Cisco IOS Cookbook, 2nd Edition by Ian Brown, Kevin Dooley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required