# match ip next-hop

#### Syntax

match ip next-hop { accessListName [ accessListName ]* |
prefix-list prefixListName [ prefixListName ]* | prefix-tree treeName [ treeName ]* }

no match ip next-hop [ accessListNumber ]* | prefix-list [ listName ]* |
prefix-tree [ treeName ]*

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Matches any routes that have a next-hop router address passed by the specified access list, prefix list, or prefix tree. You cannot mix references in the same match command; you can only specify either access list(s), prefix list(s), or prefix tree(s). The no version removes the match clause from a route map unless you specify a value, in which case only that value is removed from the match clause.

#### Options

- accessListName—Name of a single standard access list; string of up to 32 characters
- prefixListName—Name of a single prefix list; string of up to 32 characters
- treeName—Name of a single prefix tree; string of up to 32 characters
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line

#### Mode

Policy List Configuration, Route Map Configuration