match ip next-hop
Syntax
match {ip | ipv6} next-hop {<ADDRESS> | prefix-list <PREFIX-LIST-NAME>}
no match {ip | ipv6} next-hop [<ADDRESS> | prefix-list <PREFIX-LIST-NAME>]
Description
Matches the next-hop address of the route with the configured address in the match clause.
The
no
form of this command restores the default behavior of not matching the next-hop address of the route.
Command context
config-route-map
Parameters
<ADDRESS>
Specifies the IPv4 address to match with the next-hop address of the route.
prefix-list <PREFIX-LIST-NAME>
Specifies the name of the IP prefix list to be matched with the next-hop address of the route.
Authority
Administrators
Example
Configuring a match clause in the route map to match the next-hop address of the route:
switch(config)# route-map GlobalMap permit seq 11 switch(config-route-map-GlobalMap-11)# match ip next-hop 1.1.1.2