Configuring IP Routing Protocol-Independent Features

IP Routing Protocol-Independent Configuration Examples

redistribute iso-igrp nsfnet route-map 3

!

route-map 2 permit

match route-type external match tag 5

set metric 5

set level level-2

!

route-map 3 permit match address 2000 set metric 30

With the following configuration, OSPF external routes with tags 1, 2, 3, and 5 are redistributed into RIP with metrics of 1, 1, 5, and 5, respectively. The OSPF routes with a tag of 4 are not redistributed.

router rip

redistribute ospf 1 route-map 1

!

route-map 1 permit match tag 1 2 set metric 1

!

route-map 1 permit match tag 3

set metric 5

!

route-map 1 deny match tag 4

!

route map 1 permit match tag 5

set metric 5

Given the following configuration, a RIP learned route for network 172.18.0.0 and an ISO-IGRP learned route with prefix 49.0001.0002 will be redistributed into an IS-IS Level 2 LSP with a metric of 5:

router isis

redistribute rip route-map 1 redistribute iso-igrp remote route-map 1

!

route-map 1 permit match ip address 1 match clns address 2 set metric 5

set level level-2

!

access-list 1 permit 172.18.0.0 0.0.255.255 clns filter-set 2 permit 49.0001.0002...

The following configuration example illustrates how a route map is referenced by the default-informationrouter configuration command. This type of reference is called conditional default origination. OSPF will originate the default route (network 0.0.0.0) with a type 2 metric of 5 if 172.20.0.0 is in the routing table.

route-map ospf-default permit match ip address 1

set metric 5

set metric-type type-2

!

access-list 1 172.20.0.0 0.0.255.255

!

router ospf 1

default-information originate route-map ospf-default

Cisco IOS IP Configuration Guide

IPC-391

Page 437
Image 437
Cisco Systems 78-11741-02 manual IPC-391, Router isis