Configuring Route-Map Manager

This section provides details for the configuration of route-map manager on the S- K- and 7100-Series products.

Default Route-Map Manager Parameters lists route-map manager parameters and their default values.

Click to expand in new window

Default Route-Map Manager Parameters

Parameter Description Default Value
entry A route-map‘s sequenced container for match and set clauses specifying a permit or deny behavior. permit
sequence number A numeric value specifying the ordering of route-map entries. 10
next hop priority Specifies whether the priority based lookup or the routing table lookup will be used to select the next hop.

On the 7100-Series, next hop priority is non-configurable.

priority based lookup, then route table lookup
next hop load-policy Specifies the algorithm that will be used to select the next hop.

On the 7100-Series, next hop load-policy is non-configurable.

first-available

Configuring a Policy Based Route-Map describes how to configure a policy based route-map.

Click to expand in new window

Configuring a Policy Based Route-Map

Step Task Command(s)
1 In configuration command mode, create a policy based route map, optionally specifying whether this entry is a permit or deny, and the sequence number for this entry.

This command provides access to policy based route-map configuration command mode. Use this command to create multiple entries if required.

route-map policy name [permit | deny] [sequence-number]
2 In policy based route-map configuration command mode, specify one or more match clauses for this route-map, specifying up to five ACLs that will be matched against the packet source IP address. Though not necessary, it is recommended that all ACLs be configured before assigning them to an IP address match clause. match ip address access-list
3 In policy based route-map configuration command mode, specify a set clause containing up to five next hop IP addresses for this route-map. One or more of these commands can be specified. set next-hop {next-hop1} [next-hop2 .... next-hop5]
4 In policy based route-map configuration command mode, specify a set clause containing up to five default next hop IP addresses for this route-map to be used when next hops are not specifically configured or available using the set next-hop command. One or more of these commands can be specified (S-, K-Series). set default-next-hop {next-hop1} [next-hop2....next-hop5]
5 In policy based route-map configuration command mode, specify the VRF that will perform the next hop lookup, when the next hop of a policy IP address match belongs to a different VRF (S-, K-Series). set vrf vrf-name
6 Optionally, in configuration command mode, configure the route-map probe feature to monitor the configured next hops. route-map probe ip-address probe-name {name | default}
7 In interface configuration command mode, prioritize the priority based lookup to route table lookup behavior for this interface (S-, K-Series). ip policy priority {[only] [first] [last]}
8 In interface configuration command mode, configure the load policy for this route-map‘s next hop selection method (S-, K-Series). ip policy load-policy {first-available | round-robin | ip-hash {source | destination | both}}
9 In interface configuration command mode, assign the configured route-map to the interface. ip policy route-map name

Configuring a Redistribution Route-Map describes how to configure a redistribution route-map.

Click to expand in new window

Configuring a Redistribution Route-Map

Step Task Command(s)
1 In configuration command mode, create a redistribution route map, optionally specifying whether this entry is a permit or deny, and the sequence number for this entry.

This command provides access to redistribution route-map configuration command mode. Use this command to create multiple entries if required.

route-map redistribution name [permit | deny] [sequence-number]
2 In redistribution route-map configuration command mode, specify one or more match clauses for this route-map, specifying up to five ACLs that will be matched against the packet source IP address. match ip address access-list
3 In redistribution route-map configuration command mode, specify a VLAN interface to match a packet source IP address against. match interface {vlan vlan | string}
4 In redistribution route-map configuration command mode, specify one or a range of metric costs that will be matched against the packet metric cost. match metric {cost | range min-cost max-cost}
5 In redistribution route-map configuration command mode, specify an OSPF tag ID or range of IDs that will be matched against the packet OSPF tag ID. match tag {tag-id | range min-tag-id max-tag-id}
6 In redistribution route-map configuration command mode, specify a set clause containing an OSPF route tag for this route-map. set tag tag
7 In redistribution route-map configuration command mode, specify a set clause containing a metric cost for this route-map. A single metric cost can be configured per sequence. set metric cost
8 In redistribution route-map configuration command mode, specify a set clause containing the amount to decrement the current metric cost for this route-map. A single metric decrement can be configured per sequence. set metric decrement cost
9 In redistribution route-map configuration command mode, specify a set clause containing the amount to increment the current metric cost for this route-map. A single metric increment can be configured per sequence. set metric increment cost
10 In redistribution route-map configuration command mode, specify a set clause containing the OSPF metric type to be used when redistributing a source packet matched by this route-map. A single metric type can be configured per sequence. set metric-type {type-1 | type-2}
11 In OSPF router configuration mode, assign this route-map to the redistribute command. redistribute {rip | static | connected} [route-map name] [metric metric value] [metric-type type-value] [tag tag]

Configuring a Filter Route-Map describes how to configure an OSPF filter route-map.

Click to expand in new window

Configuring a Filter Route-Map

Step Task Command(s)
1 In configuration command mode, create an OSPF filter route map, optionally specifying whether this entry is a permit or deny, and the sequence number for this entry.

This command provides access to filter route-map configuration command mode. Use this command to create multiple entries if required.

route-map filter name [permit | deny] [sequence-number]
2 In filter route-map configuration command mode, specify one or more IP network address, next hop, or source router ID match clauses for this route-map, specifying up to five ACLs that will be matched against specified IP type.
  • address - network address
  • next-hop - next hop
  • route-source - source router ID
match ip {address | next-hop | route-source} access-list
3 In filter route-map configuration command mode, specify one or more outbound interface match clauses that will be matched against the route outbound interface. match interface {interface-name | alias}
4 In filter route-map configuration command mode, specify one or more OSPF tag match clauses that will be matched against the route OSPF tag or a range of OSPF tags. match tag {tag | range min-tag max-tag}
5 In filter route-map configuration command mode, specify one or more OSPF cost metric match clauses that will be matched against the route metric cost or a range of metric cost values. match metric {cost | range min-cost max-cost}
6 In filter route-map configuration command mode, specify one or more OSPF route type match clauses that will be matched against the route‘s route type.
  • internal - Internal route type
  • external-t1 - External route type 1
  • external-t2 - External route type 2
  • nssa-external - External NSSA route type
match route-type {internal | external-t1 | external-t2 | nssa-external}
7 In OSPF router configuration command mode, apply the filter route-map to the OSPF distribution-list. distribute-list route-map name in

Configuring a BGP Route-Map (S-, 7100-Series) describes how to configure a BGP route-map (S-, 7100-Series).

Click to expand in new window

Configuring a BGP Route-Map (S-, 7100-Series)

Step Task Command(s)
1 In configuration command mode, create a BGP route map, optionally specifying whether this entry is a permit or deny, and the sequence number for this entry.

This command provides access to BGP route-map configuration command mode. Use this command to create multiple entries if required.

route-map bgp name [permit | deny] [sequence-number]
2 In BGP route-map configuration command mode, configure a match clause to match a packet against its IPv4 or IPv6 Address Family Indicator (AFI) attribute. match afi {ipv4 | ipv6}
3 In BGP route-map configuration command mode, configure a match clause to match a packet against its Subsequent Address Family Indicator (SAFI) attribute, specifying whether the attribute is unicast or multicast. match safi {unicast | multicast}
4 In BGP route-map configuration command mode, configure a match clause to match a packet against its AS path attribute. match as-path as-path-string
5 In BGP route-map configuration command mode, configure a match clause to match a packet against the specified community name. match community name
6 In BGP route-map configuration command mode, configure a match clause to match a packet against the specified extended community. match extended-community name
7 In BGP route-map configuration command mode, configure a match clause to match a packet against the specified prefix list. Multiple prefix-list match entries are allowed. match prefix-list prefix-list
8 In BGP route-map configuration command mode, configure a match clause to match a packet against the specified MED value. match med value
9 In BGP route-map configuration command mode, configure a match clause to specify the number of times to prepend the AS number of this router to the AS path for this route map context. set as num
10 In BGP route-map configuration command mode, configure a match clause to set a maximum length of the AS path attribute allowed when all match clauses match for this route map. set as-path-limit limit
11 In BGP route-map configuration command mode, configure a match clause to set the community when all match clauses match for this route map. set community {as:community | defined-community}
12 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community IP route target when all match clauses match for this route map. set extended-community ip-route-target set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
13 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community AS route target when all match clauses match for this route map. set extended-community as-route-target set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
14 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community IP site of origin when all match clauses match for this route map. set extended-community ip-site-of-origin set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
15 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community AS site of origin when all match clauses match for this route map. set extended-community as-site-of-origin set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
16 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community AS4 route target when all match clauses match for this route map. set extended-community as4-route-target set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
17 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community AS4 site of origin when all match clauses match for this route map. set extended-community as4-site-of-origin set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
18 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community OSPF domain ID when all match clauses match for this route map. set extended-community ospf-domain-id set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
19 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community OSPF domain ID when all match clauses match for this route map. set extended-community ospf-router-id set-value {remove-all | remove-specific | set-specific | remove-all-and-set}
20 In BGP route-map configuration command mode, configure a match clause to specify an action for an extended community OSPF route type when all match clauses match for this route map. set extended-community ospf-route-type area route-type type [type2-metric] {remove-all | remove-specific | set-specific | remove-all-and-set}
21 In BGP route-map configuration command mode, configure a match clause to specify the local preference to be set when all match clauses in the route map match. set local-preference value
22 In BGP route-map configuration command mode, configure a match clause to specify the MED to be set when all match clauses in the route map match. set med value
23 In BGP route-map configuration command mode, configure a match clause to specify the next hop IP address to be set when all match clauses in the route map match. set ip next-hop ip-address
24 In BGP route-map configuration command mode, configure a match clause to specify the origin code to be set when all match clauses in the route map match. set origin code
25 In BGP route-map configuration command mode, configure a match clause to set local ORF association when all match clauses in the route map match. set orf-association local
26 In BGP route-map configuration command mode, configure a match clause to specify the weight to be set when all match clauses in the route map match. set weight value
27 In BGP route-map configuration command mode, configure a match clause to specify the flap table to be set when all match clauses in the inbound route map match. set flap-table name

Displaying Route-Map Manager Information and Statistics describes how to display route-map manager information. Display commands can be entered in any command mode.

Click to expand in new window

Displaying Route-Map Manager Information and Statistics

Task Command
To display configured route-maps: show route-map [name] [brief] [probe]
To display the policy applied to a routing interface: show ip policy