Professional Documents
Culture Documents
04 IP - FC3008 - E01 - 1-Route Policy and Policy Route's Principle-27p
04 IP - FC3008 - E01 - 1-Route Policy and Policy Route's Principle-27p
Principle
Objectives
2
Contents
3
Introduction of Route Policy
Problem One:
Router B needs to filter routes distributed
by Router A, only receiving routes from
Lo0:30.30.1.1/32 AS100
20.20.1.1/32 and shielding routes from
Lo1:20.20.1.1/32 30.30.1.1/32
A
10.1.1.1/30 20.1.1.1/30 Problem Two:
Router A only distributes AS100 routes to
router B and other routing entries will be
10.1.1.2/30 20.1.1.2/30
shielded for security reason.
B Problem Three:
Router B needs to firstly choose
AS200
10.1.1.0/30 link to AS100.
Route Policy
7
How to Define Route Policy
n Route-Map
It mainly consists of clauses Match and Set and conducts setting according to
matching conditions
n Access Control List
It is used to configure matching conditions
n Prefix-List
It functions like ACL, used to configure matching conditions. It can both be used
individually and used together with route map and Area Filter-List.
n As-Path Access-List
It is only used for BGP protocol to filter routes according to AS path information
and it is used together with route map.
n Community-List
It is only used for BGP protocol to filter routes according to Community List and it is
used together with route map.
n OSPF Route Filter
Not match
Route-map
l route metric
l route tag
l route type
Character Meaning
$ Ending of Input String
. Any Character
_ Beginning and Ending of A String
^ Beginning of Input String
Expression Meaning
^$ Route not passing through any AS-Path, i.e.
originate locally
^100$ Only indicate route that originates from
AS100 and not passes through any other AS
n Area filter-list:
l When configuring OSPF with multi-areas, area filter-list can be configured
to control the inter-area route (which is calculated by Type-3 LSA)
imported/exported to a certain area.
l When configuring area filter-list, prefix-list is usually configured together.
l Filter and area filter-list will not effect LSA learning in OSPF database.
18
Common Applications of Route Policy
20
Introduction of Policy route
n Ordinarily packets forwarding is done based on destination
IP address of route table.
1
/ 0/0/
i-0 B
ge
PC1
A D
ge
i-0
/0/
0/2
PC2 C
23
Working Process of Policy Route
n Network administrator configure route-map with match/set sub-clause and apply the
route-map to the packet-input interface and realize route selection based on policy.
Match next
Sequence condition
route-map
Router applied to the Yes Follow route-map
Receive sequence to Match Seq1
inbound Condition?
packet port? process the packet No
No Yes
permit
No Outbound
port/Next-hop
Valid?
n Route policy is policy but policy route is one special route. They are
different concepts and applied in different scenarios.