
Route Map Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
32.5
match ip address
Use this command to add an IP address prefix match clause to a route map entry. You can
specify the prefix or prefixes to match by either:
■
specifying the name of an access list. To create the access list, enter Global Configuration
mode and use the
access-list
command.
■
specifying the name of a prefix list. To create the prefix list, enter Global Configuration
mode and use the
ip prefix-list
command.
A route matches the route map if the route’s prefix matches the access list or prefix list.
Each entry of a route map can have at most one access list-based IP address match clause and
one prefix list-based IP address match clause. If the route map entry already has one of these
match clauses, entering this command replaces that match clause with the new clause.
Note that access lists, prefix lists and route map entries all specify an action of deny or permit.
The action in the access list or prefix list determines whether the route map checks update
messages and routes for a given prefix. The route map action and its
set
clauses determine
what the route map does with routes that contain that prefix.
Use the
no
parameter to remove the IP address match clause from a route map entry. To
remove a prefix list-based match clause you must also specify the
prefix-list
parameter.
Syntax
match ip address
{
<accesslistID>
|{
prefix-list
<prefix_listname>
}}
no match ip address
no match ip address prefix-list
Mode
Route-map mode
Usage
This command is valid for routes in BGP update messages, and for OSPF and RIP routes.
Examples
To add entry 3 to the route map called “myroute”, which will process routes that match the
ACL called “List1”, use the commands:
awplus(config)#route-map myroute permit 3
awplus(config-route-map)#match ip address List1
To add entry 3 to the route map called “rmap1”, which will process routes that match the
prefix list called “mylist”, use the commands:
awplus(config)#route-map rmap1 permit 3
awplus(config-route-map)#match ip address prefix-list mylist
Parameter
Description
<accesslistID>
[
<access_list_name>
|<1-199>|<1300-2699>]
The IP access list name or number
<access_list_name>
The IP access list name
<1-199>
The IP access list number
<1300-2699>
The IP access list number (expanded
range)
prefix-list
Use an IP prefix list to specify which
prefixes to match
<prefix_listname>
The prefix list name