PREV NEXT INDEX

Avici Systems Inc.


match metric


Adds a matching clause to the route map based on the route metric.

Syntax: match metric metric-value [metric-value...]

no match metric [metric-value...]

metric-value

Route metric. Valid values are integers from 0 to 4294967295.

Description: Use the match metric command to create an entry in a route map to test routes based on whether the route's metric matches the metric-value.

Use the no match metric command to delete an entry.

Use the route-map command to create a route map. Use the various match and set commands to define the conditions for redistributing routes between protocols

Route maps consist of sets of match and set commands. Match commands define the match criteria for route maps. Routes that match all defined match criteria are processed according to the actions defined by the set commands. Routes that do not match all of the defined match criteria in the route map are ignored.

Metric has different meaning depending on the protocol from which the distributed route is received: (i.e. Multi Exit Discriminator for BGP, route metric for OSPF/IS-IS)

Factory Default: No filtering based on metric value.

Command Mode: Route map configuration.

Example: In the following example:

router(config)#access-list 200 permit 10.5.1.121 0.0.0.255

router(config)#access-list 200 permit 128.20.0.0 0.0 255.255

router(config)#access-list 200 permit 120.0.0.0 0.255.255.255

router(config)#access-list 200 deny any

router(config)#route-map metricin permit 10

router(config-route-map)#match ip-address 200

router(config-route-map)#match metric 1

router(config-route-map)#end

router(config)#

Routes that pass access list 200 and have a metric of 1 are processed according to any set commands in the route map. Routes whose metric is not 1 are ignored.

Related Commands: route-map
match as-path
match community
match ip address
match ip next-hop
match ip route-source
match route-type
show ip access-lists
match tag
set as-path
set community
set community
set ip next-hop
set level
show route-map
set local-preference
set metric
set metric-type
set origin
set tag
set weight


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: Routing_Pol.fm
    HTML File Name: Routing_Pol24.html
    Last Updated: 05/10/04 at 16:38:37

Please email suggestions and comments to: doc@avici.com