match ip next-hop
Adds a next-hop router address list to the match clauses of the route map.
Syntax: match ip next-hop list-name [list-name ...]
no match ip next-hop [list-name]
list-name
Name of an access list.
Description: Use the match ip next-hop command to create an entry in a route map to test routes based on a next-hop router address specified in one of the access lists list-name. Matching is applied in route-maps that affect outbound routes only.
Use the no match ip next-hop command to delete a next-hop entry.
Use the show ip access-lists command to display the names of all defined IP access lists.
Use the route-map command to create a route map.
Route maps consist of sets of match and set commands. Match commands define the match criteria for route maps. Routes that match all defined match criteria are processed according to the actions defined by the set commands. Routes that do not match all of the defined match criteria in the route map are ignored.
Factory Default: No matches for next-hop addresses defined.
Command Mode: Route map configuration.
Example: In the following example:
- The access-list command creates a prefix based access list named 11 to permit routes from three networks.
- The route-map command creates a route map named nexthop.
- The match ip next hop command adds a match clause to the route map to match routes that have a next-hop router address permitted by access list 11.
- The router bgp and neighbor remote-as commands enable BGP on the local router and identify a remote neighbor.
- The neighbor route-map command applies the route map nexthop to outbound route updates to the remote neighbor:
router(config)#access-list 11 permit 10.5.1.121 0.0.0.255
router(config)#access-list 11 permit 128.20.0.0 0.0.255.255
router(config)#access-list 11 permit 120.0.0.0 0.255.255.255
router(config)#access-list 11 deny any
router(config)#route-map nexthop permit 1
router(config-route-map)#match ip next-hop 11
router(config-route-map)#end
router(config)#router bgp 780
router(config)#neighbor 197.61.3.31 remote-as 2312
router(config)#neighbor 197.61.3.31 route-map nexthop out
Routes whose next-hop router address is permitted by access list 11 are redistributed.
Related Commands: access-list
ip access-list
match as-path
match community
match ip address
match ip route-source
match metric
match route-type
route-map
show ip access-lists
match tag
set as-path
set community
set community
set ip next-hop
set level
show route-mapset local-preference
set metric
set metric-type
set origin
set tag
set weight
neighbor route-map
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: Routing_Pol.fm
HTML File Name: Routing_Pol22.html
Last Updated: 05/10/04 at 16:38:37