EasyManuals Logo

Cisco NCS 5500 Series Configuration Guides

Cisco NCS 5500 Series
268 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 #166 background imageLoading...
Page #166 background image
route-policy TWO
if destination in (10.0.0.0/16 le 32) then
drop
endif
end-policy
route-policy ONE-PRIME
if destination in (10.0.0.0/16 le 32) then
drop
endif
if as-path neighbor-is '123' then
pass
endif
end-policy
Because the effect of an explicit drop statement is immediate, routes in 10.0.0.0/16 le 32 are dropped without
any further policy processing. Other routes are then considered to see if they were advertised by autonomous
system 123. If they were advertised, they are passed; otherwise, they are implicitly dropped at the end of all
policy processing.
The done statement indicates that the action to take is to stop executing the policy and accept the route. When
encountering a done statement, the route is passed and no further policy statements are executed. All
modifications made to the route prior to the done statement are still valid.
Action
An action is a sequence of primitive operations that modify a route. Most actions, but not all, are distinguished
by the set keyword. In a route policy, actions can be grouped together. For example, the following is a route
policy comprising three actions:
route-policy actions
set med 217
set community (12:34) additive
delete community in (12:56)
end-policy
If
In its simplest form, an if statement uses a conditional expression to decide which actions or dispositions
should be taken for the given route. For example:
if as-path in as-path-set-1 then
drop
endif
The example indicates that any routes whose AS path is in the set as-path-set-1 are dropped. The contents of
the then clause may be an arbitrary sequence of policy statements.
The following example contains two action statements:
if origin is igp then
set med 42
prepend as-path 73.5 5
endif
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
154
Implementing Routing Policy
Action

Table of Contents

Other manuals for Cisco NCS 5500 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco NCS 5500 Series and is the answer not in the manual?

Cisco NCS 5500 Series Specifications

General IconGeneral
SeriesNCS 5500
CategoryNetwork Router
Operating SystemCisco IOS XR
Product TypeModular Router
Form FactorRack-mountable
PurposeHigh-performance routing for service providers and large enterprises
Interface TypesEthernet
RedundancyRedundant power supplies and fan trays
Port DensityVaries by model; high-density configurations available
Routing ProtocolsBGP, OSPF, IS-IS, MPLS
Power Supply OptionsAC and DC power supplies available
ManagementCLI, SNMP, NETCONF

Related product manuals