router ospf
area backbone
redistribute connected route-map "TagConn"
redistribute rip route-map "TagIn"
exit
On the South router set up a route map with three sequences:
• One to permit routes with tag values of 1
• One to deny routes with tag values of 2
• One to permit OSPF routes (this propagates all the routes from the OSPF domain
The route map looks like this:
route-map "TagOut" permit seq 10
match tag 1
exit
route-map "TagOut" deny seq 20
match tag 2
exit
route-map "TagOut" permit seq 30
match source-protocol ospf
This arrangement permits the odd routes from the northern RIP domain and the RIP routes that were connected
to the North router. It denies the even routes from the northern RIP domain, and it permits the OSPF routes. The
route table from the Southeast router shows the results:
Southeast(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
--------------- --------------- ---- --------- ---------- ---------- -----
10.1.11.0/24 10.2.21.1 21 rip 2 120
10.1.13.0/24 10.2.21.1 21 rip 2 120
10.1.15.0/24 10.2.21.1 21 rip 2 120
10.1.16.0/24 10.2.21.1 21 rip 2 120
10.2.21.0/24 VLAN21 21 connected 1 0
10.2.22.0/24 VLAN22 22 connected 1 0
10.2.23.0/24 VLAN23 23 connected 1 0
10.2.29.0/24 10.2.21.1 21 rip 2 120
10.3.31.0/24 10.2.21.1 21 rip 2 120
10.3.32.0/24 10.2.21.1 21 rip 2 120
10.3.33.0/24 10.2.21.1 21 rip 2 120
10.3.34.0/24 10.2.21.1 21 rip 2 120
10.3.37.0/24 10.2.21.1 21 rip 2 120
127.0.0.0/8 reject static 0 0
127.0.0.1/32 lo0 connected 1 0
Chapter 12 Route Policy
287