routing policies Flashcards

1
Q

what are the default import/export policies for BGP?

A

Accept all v4 in and import into inet.0

readvertise all active BGP routes to BGP speakers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the default import/export policies for OSPF?

A

accept all OSPf routes into inet.0

reject all exports (OSPF LSDB is fully synced)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the default import/export policies for ISIS?

A

accept all routes into inet.0

reject all exports (LSDB is fully synced…)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the default routing policies for RIP?

A

accept all in to inet.0

reject all exports, including RIP routes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you export RIP routes?

A

add a policy;

edit policy-options policy-statement <policy>
set term <term> from protocol <protocol>
set term <term> then accept</term></protocol></term></policy>

you then create a RIP group;

edit protocols rip
set group my-rip-group export <policy> neighbor <neighbor>
set group my-rip-group export <policy> neighbor <neighbor>
set group my-rip-group export <policy> neighbor <neighbor></neighbor></policy></neighbor></policy></neighbor></policy>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the building blocks of route policies?

A

terms.
You give each term a name.
They are if-then statements. If a term doesnt match it moves on to the next one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the route policy terminating actions?

A

accept
reject

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how can you add new terms in the middle of a policy?

A

via CLI using the Insert command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What can you match a route policy with using a from statement?

A

prefix - route-filter or prefix-list
protocol (ospf, bgp etc)
routing attributes - area ID, as path, community
next hop
Neighbour

If no from statement is used it matches everything

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Whats the difference between prefix lists in JUNOS?

A

Prefix lists only contain the prefix.

You can apply a “prefix-list-filter” to a prefix list and specific exact, longer, orlonger matching when you apply it to a route policy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Whats a route-filter in a route policy?

A

its just a prefix direct in the policy, and then the same exact longer orlonger matching types are possible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In a route policy, Whats the prefix-length match type?

A

Matches prefixes within a given prefix length range. match is INCLUSIVE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

whats the gotcha with maxing route-filters?

A

it evaluates most to least specific, and will ONLY lookup against the first one the prefix matches against. Longest match routing(!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Route policy actions. What are they?

A

Terminating:

Accept
Reject

Flow Control:

Next term
Next Policy

Modification attributes:
Community (add, delete, set)
preference
as-path prepend
next-hop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you implement route policy?

A
  1. Define the policy under edit policy-options
  2. Apply the policy within the protocol configuration;
    eg edit protocols ospf or edit protocols bgp

Some protocols like BGP you apply policy within an address family, or a neighbor, others its process level. ISIS is process level as LSDB is synced

import/export policies will use the one configured at the lowest hierarchy only. EG: if you have a permit at BGP group level and a deny at neighbor level, its getting denied.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you chain policies?

A

You can chain together multiple policies. It then goes left to right, top to bottom (ie, if policy 1 doesnt match the route it checks policy 2, etc)

17
Q

When is the default policy used?

A

When all policies are looked at and no matching criteria are found.

18
Q

When redistributing into a routing protocol, which way around is import vs export?

A

You Export FROM the RIB into the proccess.

So to redistribute INTO ospf you use an EXPORT process.