PREV NEXT INDEX

Avici Systems Inc.


match ip address


Adds a prefix list to the matching clauses of the route map.

Syntax: match ip address {list-name [list-name ...] | prefix-list list-name [list-name ...]}

no match ip address [list-name]

list-name

Name of one or more access-lists without a keyword; name of one or more prefix-lists if the prefix-list keyword is present.

Description: Use the access-list command to create an access list or the ip prefix-list command to create a prefix-list.

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.

Use the match ip-address command to create an entry in the route map to test routes based on IP address entries in the specified access-list(s) or prefix-list(s). Routes that have a destination network number address that is permitted by the specified list (list-name) are distributed.

Use the show ip access-lists or show ip prefix-list commands to display the names of all defined lists.

Use the no match ip address command to delete a list entry.

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.

Factory Default: No access list numbers are defined.

Command Mode: Route map configuration.

Example 1: In the following example:

router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

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

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

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

router(config)#access-list 5 deny any

router(config)#route-map boston permit 1

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

router(config-route-map)#set community 120

router(config-route-map)#set origin igp

router(config-route-map)#end

router(config)#

Example 2: In the following example:

router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

router(config)#ip prefix-list boston-ny permit 10.10.10.0/24

router(config)#ip prefix-list boston-ny description Boston-NY_Priority

router(config)#ip prefix-list boston-ny seq 6 permit 20.20.20.0/16

router(config)#ip prefix-list boston-ny permit 30.30.0.0/16 ge 25

router(config)#ip prefix-list boston-ny permit 40.40.40.0/24 ge 26 le 30

router(config)#route-map boston permit 1

router(config-route-map)#match ip address prefix-list boston-ny

router(config-route-map)#end

router#show route-map
route-map boston, permit, sequence 1
  Match clauses:
    ip address prefix-lists: boston-ny 
  Set clauses:
route#

Related Commands: route-map
match as-path
match community
match ip next-hop
match ip route-source
match metric
match route-type
show route-map
match tag
set as-path
set community
set ip next-hop
set level
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_Pol21.html
    Last Updated: 05/10/04 at 16:38:37

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