Matching on a Next-Hop Device

A route map that matches on a next-hop device can be configured.

A prefix list must be configured using the ip prefix-list command.

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the route-map command using the permit parameter and specifying a route map name to create a route map instance and allow a matching pattern.
    device(config)# route-map myhoproutemap1 permit 10
  3. Enter the match command, using the next-hop parameter and specify a prefix-list, to match IP next-hop match conditions for a specified prefix list in a route map instance.
    device(config-routemap myaclroutemap1)# match ip next-hop	prefix-list mylist

The following example configures a route map and specifies a prefix list to match on a next-hop device.

device# configure terminal
device(config)# route-map myhoproutemap1 permit 10
device(config-route-map-myhoproutemap1)# match ip next-hop	prefix-list mylist