Matching Routes on the Basis of the Next-Hop Router IP or IPv6 Address Passed by the Prefix List

You can use the match ip next-hop and match ipv6 next-hop commands with the prefix-list keyword to match routes that have a next-hop router address passed by the specified prefix lists.

To match any routes that have a next-hop router address passed by the specified prefix list:

Related Documentation