Configuring IP Routing Protocol-Independent Features

IP Routing Protocol-Independent Configuration Examples

Default Metric Values Redistribution Example

The following example shows a router in autonomous system 1 using both RIP and IGRP. The example advertises IGRP-derived routes using RIP and assigns the IGRP-derived routes a RIP metric of 10.

router rip default-metric 10 redistribute igrp 1

Policy Routing (Route Map) Examples

The examples in this section illustrate the use of redistribution, with and without route maps. Examples from both the IP and Connectionless Network Service (CLNS) routing protocols are given.

The following example redistributes all OSPF routes into IGRP:

router igrp 1 redistribute ospf 110

The following example redistributes RIP routes with a hop count equal to 1 into OSPF. These routes will be redistributed into OSPF as external LSAs with a metric of 5, metric a type of type 1, and a tag equal to 1.

router ospf 1

redistribute rip route-map rip-to-ospf

!

route-map rip-to-ospf permit match metric 1

set metric 5

set metric-type type1 set tag 1

The following example redistributes OSPF learned routes with tag 7 as a RIP metric of 15:

router rip

redistribute ospf 1 route-map 5

!

route-map 5 permit match tag 7

set metric 15

The following example redistributes OSPF intra-area and interarea routes with next hop routers on serial interface 0 into BGP with an INTER_AS metric of 5:

router bgp 50000

redistribute ospf 1 route-map 10

!

route-map 10 permit match route-type internal match interface serial 0 set metric 5

The following example redistributes two types of routes into the integrated IS-IS routing table (supporting both IP and CLNS). The first type is OSPF external IP routes with tag 5; these routes are inserted into Level 2 IS-IS link-state packets (LSPs) with a metric of 5. The second type is ISO-IGRP derived CLNS prefix routes that match CLNS access list 2000; these routes will be redistributed into IS-IS as Level 2 LSPs with a metric of 30.

router isis

redistribute ospf 1 route-map 2

Cisco IOS IP Configuration Guide

IPC-390

Page 436
Image 436
Cisco Systems 78-11741-02 manual Default Metric Values Redistribution Example, Policy Routing Route Map Examples, IPC-390