EasyManuals Logo
Home>Cisco>Network Router>A9K-SIP-700

Cisco A9K-SIP-700 Configuration Guide

Cisco A9K-SIP-700
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #521 background imageLoading...
Page #521 background image
endif
end-policy
router bgp 2
neighbor 10.0.0.1
remote-as 3
address-family ipv4 unicast
default-originate route-policy sample-originate
.
.
.
Neighbor Export
The neighbor export attach point selects the BGP routes to send to a given peer or group of peers. The routes
are selected by running the set of possible BGP routes through the associated policy. Any routes that pass the
policy are then sent as updates to the peer or group of peers. The routes that are sent may have had their BGP
attributes altered by the policy that has been applied.
The following policy sends all BGP routes to neighbor 10.0.0.5. Routes that are tagged with any community
in the range 2:100 to 2:200 are sent with a MED of 100 and a community of 2:666. The rest of the routes are
sent with a MED of 200 and a community of 2:200.
route-policy sample-export
if community matches-any (2:[100-200]) then
set med 100
set community (2:666)
else
set med 200
set community (2:200)
endif
end-policy
router bgp 2
neighbor 10.0.0.5
remote-as 3
address-family ipv4 unicast
route-policy sample-export out
.
.
.
Neighbor Import
The neighbor import attach point controls the reception of routes from a specific peer. All routes that are
received by a peer are run through the attached policy. Any routes that pass the attached policy are passed to
the BGP Routing Information Base (BRIB) as possible candidates for selection as best path routes.
When a BGP import policy is modified, it is necessary to rerun all the routes that have been received from
that peer against the new policy. The modified policy may now discard routes that were previously allowed
through, allow through previously discarded routes, or change the way the routes are modified. A new
configuration option in BGP (bgp auto-policy-soft-reset) that allows this modification to happen automatically
in cases for which either soft reconfiguration is configured or the BGP route-refresh capability has been
negotiated.
The following example shows how to receive routes from neighbor 10.0.0.1. Any routes received with the
community 3:100 have their local preference set to 100 and their community tag set to 2:666. All other routes
received from this peer have their local preference set to 200 and their community tag set to 2:200.
route-policy sample_import
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
OL-30423-03 493
Implementing Routing Policy
Attach Points

Table of Contents

Other manuals for Cisco A9K-SIP-700

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco A9K-SIP-700 and is the answer not in the manual?

Cisco A9K-SIP-700 Specifications

General IconGeneral
BrandCisco
ModelA9K-SIP-700
CategoryNetwork Router
LanguageEnglish

Related product manuals