match ip next-hop
Use this command to specify a next-hop address to be matched in a route-map. 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 tables.
Use the no parameter with this command to disable this function.
Command Syntax
match ip next-hop (<1-199>|<1300-2699>|WORD)
no match ip next-hop (<1-199>|<1300-2699>|WORD|)
Parameters
WORD
Specify the IP access-list name.
<1-199>
Specify the IP access-list number (standard range).
<1300-2699>
Specify the IP access-list number (expanded range).
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#route-map rmap1 permit 3
(config-route-map)#match ip next-hop mylist
Last modified date: 08/28/2023