To apply the new policy to routes that are already present in the BGP routing table,
you must use the clear ip bgp command to perform a soft clear or hard clear of the
current BGP session.
Behavior is different for outbound policies configured for peer groups for which you
have enabled Adj-RIBs-Out. If you change the outbound policy for such a peer group
and want to fill the Adj-RIBs-Out table for that peer group with the results of the new
policy, you must use the clear ip bgp peer-group command to perform a hard clear or
outbound soft clear of the peer group. You cannot merely perform a hard clear or
outbound soft clear for individual peer group members because that causes BGP to
resend only the contents of the Adj-RIBs-Out table.
• Example
host1(config)#rneighbor 192.168.5.34 route-map nyc1 in
• Use the no version to remove the route map.
• See neighbor route-map.
route-map
• Use to define the conditions for redistributing routes from one routing protocol into
another, and for filtering or modifying updates sent to or received from peers.
• Each route-map command has a list of match and set commands associated with it.
• The match commands specify the match criteria—the conditions under which
redistribution is allowed for the current route map.
• The set commands specify the set actions—the redistribution actions to perform if the
criteria enforced by the match commands are set.
• Use route maps when you wish to have detailed control over how routes are
redistributed between routing processes.
• The destination routing protocol is the one you specify with the router command.
• The source routing protocol is the one you specify with the redistribute command.
• A clause with multiple values matches a route having any of the values; that is, the
multiple values are logical ORed.
• If you specify a BGP peer group by using the peerGroupName argument, all the members
of the peer group inherit the characteristic configured with this command unless it is
overridden for a specific peer.
• Example
host1(config)#route-map nyc1 permit 10
• Use the no version to delete the route map.
• See route-map.
set as-path prepend
75Copyright © 2010, Juniper Networks, Inc.
Chapter 1: Configuring BGP Routing