7 match ip next-hop – CANOGA PERKINS 9175 Command Reference User Manual
Page 495
CanogaOS Command Reference
28-7
Note:
This command is valid for BGP, OSPF and RIP only.
Command Syntax
match ip address prefix-list LISTNAME
no match ip address prefix-list [ LISTNAME ]
Syntax Description
LISTNAME
Specifies the IP prefix list name.
Command Mode
Route-map mode
Defaults
No match ip address prefix-list is specified by default.
Examples
Switch# configure terminal
Switch(config)# route-map rmap1 permit 3
Switch(config-route-map)#match ip address prefix-list mylist
Related Commands
match community
match as-path
set as-path
set community
match metric
28.7 match ip next-hop
Use this command to specify a next-hop address to be matched in a route-map.
Use the no parameter with this command to disable this function.
The match ip next-hop command specifies the next-hop address to be matched. If there is a
match for the specified next-hop address, and permit is specified, the route is redistributed or
controlled as specified by the set action. If the match criteria are met, and deny is specified, the
route is not redistributed or controlled. If the match criteria are not met, the route is neither
accepted nor forwarded, irrespective of permit or deny specifications.
The route specified by the policies might not be the same as specified by the routing protocols.
Setting policies enable packets to take different routes depending on their length or content.
Packet forwarding based on configured policies overrides packet forwarding specified in routing