match ip (filter)

Use this command to match a route network address, next hop, or source router ID.

Syntax

match ip {address | next-hop | route-source} access-list
no match ip {address | next-hop | route-source} access-list

Parameters

address Specifies that network addresses should be matched against the contents of the specified ACL(s).
next-hop Specifies that next-hop addresses should be matched against the contents of the specified ACL(s).
route-source Specifies that source route IDs should be matched against the contents of the specified ACL(s).
access-list Specifies the ACL for which the specified command option will be matched against.

Defaults

None.

Mode

Route-map filter configuration.

Usage

Allows for up to 5 access lists in a single command line to be associated with each address, next-hop, or route-source entry. Multiple access list entries are delineated by a space.

Apply the filter route-map using the distribute-list route-map in command in OSPF router configuration command mode to prevent route matches from entering the OSPF routing table.

The “no” form of this command removes the IP match for this route-map.

Example

This example shows how to match a packets next hop IP address to the contents of the acl1 and acl2 access lists:

System(rw-config)->route-map filter ospf1
System(rw--config-fltr)->match ip next-hop acl1 acl2