DGS-6604
m
match ip address
CLI Reference Guide
425
match ip address
Use this command to define a clause to match the route based on IP standard
access list.
match ip address
ACCESS-LIST-NAME
no match ip address [
ACCESS-LIST-NAME
]
Default
Not configured
Command Mode
Route-map configuration
Usage Guideline
Use the
match ip address
command in route map configure mode to define rule
for matching routes against IP standard access list.
Example
The following example create an IP access list "myacl" first and create a route
map entry to match against the create IP access list.
You can verify your settings by entering the
show route map
command.
Syntax Description
ACCESS-LIST-NAME
Specify a standard or an extended IP access list name.
Switch(config)# ip access-list myacl
Switch(config-ip-acl) # permit 10.20.0.0 255.255.0.0 any
Switch(config-ip-acl)# exit
Switch(config)# route-map myPolicy permit 1
Switch(config-route-map)# match ip address myacl