host1(config-router)#
neighbor 10.12.12.2 advertise-map default exist-map test
host1(config-router)#
neighbor 10.12.12.2 default-originate
host1(config-router)#
neighbor 10.12.12.2 route-map outbound out
host1(config-router)#
exit
Configuring BGP Routing Policy
Routing policy determines how the router handles the routes it receives from and sends
to BGP peers or other routing protocols. In many cases, routing policy consists of filtering
routes, accepting certain routes, accepting and modifying other routes, and rejecting
some routes. You can think of routing policy as a way to control the flow of routes into
and out of the router.
You can use one or more of the following mechanisms to configure routing policy:
•
Access lists
•
Community lists
•
Prefix lists
•
Prefix trees
•
Route maps
The remainder of this section provides detailed information about using these features
with BGP. Before proceeding, please see
JunosE IP Services Configuration Guide
, for a
thorough background on how these features work in general.
Types of BGP Route Maps
A route map consists of
match
clauses and
set
clauses. Match clauses, which consist of
a
match
command, specify the attribute values that determine whether a route matches
the route map. Set clauses, which consist of a
set
command, modify the specified
attributes of routes that pass all match clauses in the route map.
BGP route maps can be applied to inbound routes, outbound routes, and redistributed
routes. BGP route maps are of two types, those that support both
match
and
set
clauses,
and those that support only
match
clauses.
The match-and-set route maps consist of the route maps configured with any of the
commands listed in Table 14 on page 70.
Table 14: Commands That Create Match-and-Set Route Maps
global import map
aggregate-address attribute-map
neighbor route-map in
bgp dampening route-map
neighbor route-map out
export map
redistribute route-map
import map
table-map
global export map
Copyright © 2010, Juniper Networks, Inc.
70
JunosE 11.2.x BGP and MPLS Configuration Guide
Summary of Contents for JUNOSE 11.2.X BGP AND MPLS
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Page 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...