Multicast and Routing Guide K/KA/KB.15.15
to the OSPF domain, you could apply the metric with a set metric command in a route map
in the North router:
route-map "Metric25" permit seq 10
match source-protocol rip
set metric 25
exit
Then you could redistribute from the router ospf context:
router ospf
area backbone
redistribute connected
redistribute rip route-map "Metric25"
exit
The results are displayed in the Metric column of the East router's route map:
East(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
--------------- --------------- ---- --------- ---------- ---------- -----
10.1.11.0/24 10.3.32.1 32 ospf External2 25 110
10.1.12.0/24 10.3.32.1 32 ospf External2 25 110
10.1.13.0/24 10.3.32.1 32 ospf External2 25 110
10.1.14.0/24 10.3.32.1 32 ospf External2 25 110
10.1.15.0/24 10.3.32.1 32 ospf External2 10 110
10.1.16.0/24 10.3.32.1 32 ospf External2 10 110
10.2.21.0/24 10.3.33.2 33 ospf External2 10 110
10.2.22.0/24 10.3.33.2 33 ospf External2 10 110
10.2.23.0/24 10.3.33.2 33 ospf External2 10 110
10.2.29.0/24 10.3.33.2 33 ospf External2 10 110
10.3.31.0/24 10.3.32.1 32 ospf IntraArea 2 110
10.3.31.0/24 10.3.33.2 33 ospf IntraArea 2 110
10.3.32.0/24 VLAN32 32 connected 1 0
10.3.33.0/24 VLAN33 33 connected 1 0
10.3.34.0/24 VLAN34 34 connected 1 0
10.3.37.0/24 10.3.33.2 33 ospf IntraArea 2 110
127.0.0.0/8 reject static 0 0
127.0.0.1/32 lo0 connected 1 0
Redistribution using tags
Tags provide an alternative method for redistributing routes. For instance, you can set tags when
redistributing routes into a domain and then use those tags for matches when redistributing those
routes out of the domain. In the following example, tags are set as the routes pass through the
North router from the northern RIP domain to the OSPF domain, and those tags are used for
matching when the routes pass out of the OSPF domain through the South router to the southern
RIP domain.
Establish prefix lists on the North router to separate the "odd" and "even" routes:
ip prefix-list "Odds" seq 5 permit 10.1.11.1 255.255.255.0 ge 24 le 24
ip prefix-list "Odds" seq 10 permit 10.1.13.1 255.255.255.0 ge 24 le 24
ip prefix-list "Evens" seq 5 permit 10.1.12.1 255.255.255.0 ge 24 le 24
ip prefix-list "Evens" seq 10 permit 10.1.14.1 255.255.255.0 ge 24 le 24
Then set up a route map with separate sequences to tag the odd and even routes:
route-map "TagIn" permit seq 10
222 Route Policy










