The Route Map Command Syntax

The route-map command is shown here and is followed by the route map configuration commands match and set.

route-map map-tag [[permit | deny] | [sequence-number]]

Table 10-13 describes the syntax options available for the route-map command.

Table 10-13 The route-map Command Options

Command Description map-tag This is the name of the route map. This name is used to reference the route map when using the redistribute router configuration command.

permit I deny (Optional) If the match criteria are met for this route map and permit is specified, the route is redistributed as defined by the set actions.

If the match criteria are not met and permit is specified, the next route map with the same map tag is tested.

If a route passes none of the match criteria for the set of route maps sharing the same name, it is not redistributed by that set because it hits the implicit deny any at the end of the list.

(Optional) If the match criteria are met for the route map and deny is specified, the route is not redistributed, and no further route maps sharing the same map tag name will be examined.

sequence-number (Optional) The sequence number indicates the position that a new route map will have in the list of route map statements already configured with the same name.

Example 10-5 is very simple, but it clearly illustrates the functionality of the route map. Study the example in reference to Figure 10-15.

This route map examines all updates from RIP and redistributes those RIP routes with a hop count equal to 3 into OSPF. These routes will be redistributed into OSPF as external link-state advertisements with a metric cost of 6, a metric type of Type 1, and a tag equal to 1.

Figure 10-15 Route Map to Distribute RIP into OSPF

Routing table

Network

Metric (hops)

R 10.1.1.0

3

R 10.1.2.0

4

R 10.1.3.0

2

R 10.1.4.0

3

R 10.1.5.0

Routing table

Network

Type

Metric (cost)

10.1.1.0

E1

6

10.1.4.0

E1

6

10.1.5.0

E1

6

10.10.1.0

0

connected

10.10.3.0

0

connected

10.10.5.0

0

OSPF 300

Example 10-5 Route Map to Distribute RIP into OSPF router ospf 25

redistribute rip route-map rip-routes route-map rip-routes permit match metric 3 set metric 6 set metric-type typel set tag 1

Was this article helpful?

0 0

Post a comment