match ip next-hop prefix-list

To redistribute any IPv4 routes that have a next-hop router address passed by one of the access lists specified, use the match ip next-hop prefix-list command. To remove the next hop entry, use the no form of this command.

match ip next-hop prefix-list prefix-list-name [ ...prefix-list-name ]

no match ip next-hop prefix-list prefix-list-name [ ...prefix-list-name ]

Syntax Description

prefix-list-name
Number or name of a prefix list. It can be any alphanumeric string up to 63 characters. The ellipsis indicates that multiple values can be entered, up to 32 prefix lists.

Command Default

Routes are distributed freely, without being required to match a next hop address.

Command Modes

Route-map configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Use the route-map global configuration command, and the match and set route-map configuration commands to define the conditions for redistributing routes from one routing protocol into another.

Examples

This example shows how to distributes routes that have a next-hop router address passed by the prefix list test:

switch(config)# route-map blue
switch(config-route-map)# match ip next-hop prefix-list test
switch(config-route-map)#
 

Related Commands

Command
Description
route-map
Defines the conditions for redistributing routes from one routing protocol into another.
set next-hop
Specifies the address of the next hop.