Академический Документы
Профессиональный Документы
Культура Документы
Policy Overview
Routing policy controls routing information transferred
Routing policy consist of match/action pairs Eliminates need for route maps, access lists, distribution lists, network commands etc. to accomplish a single goal
routing table
JUNOS applies import policy prior to route selection and inclusion into the routing table JUNOS applies export policy to active routes prior to being sent to neighbor
Neighbor
Import
Routing Table
Export
Neighbor
IS-IS and OSPF Import: IS-IS and OSPF do not allow import policies and therefore do not require a default import policy. Export: The primary purpose of IS-IS and OSPF export policies are to introduce routes from other protocol.
RIP Import: Accept all routes imported from RIP neighbors Export: Reject all routes advertised to RIP neighbors
BGP Import: Accept all routes imported from BGP neighbors Export: Accept all routes exported to BGP neighbors in accordance with the BGP protocol requirements
Match Conditions
Policies typically contain some form of match condition The absence of a match condition means that all possible routes match
Possible match conditions include: Neighbor address Protocol
The protocol which activated the route in the routing table
10.10.0.0/16 172.16.30.0/24 192.168.5.0/24 *[BGP/170] *[OSPF/10] *[Static/5]
Match Actions
The action performed in a term or policy for a given
match condition
Terminating actions
Accept route
Reject route
Route Filters
Route Filters are used to match individual routes or
groups of routes
General syntax in the form of:
route-filter prefix/prefix-length match-type action;
Route Filter evaluation depends on the match type Match types dictate the different route sets
exact orlonger longer upto prefix-length-range
Route Filters
192.168/16
192.168/16 192.168/16
exact
192.168/16
orlonger (down to /32)
192.168/16
longer (down to /32)
upto
/x
prefix-length-range /x-/y
/y
Policy Examples
Write a policy to redistribute RIP routes into OSPF
Route Filters
Import Policy
Export Policy
Routing Table
Display routing updates received before import and after export policy processing, respectively
Other tools
Questions