Download Chapter Review Questions
Transcript
prefix-length-range type of match; this rule of thumb is intended to warn users
that in most cases, through is not what they really want, and that the decision to
use it should be carefully thought through (pardon the pun).
A through match type matches the initial prefix and mask length exactly, as well
as the ending prefix and mask length, and matches on the contiguous set of nodes
between the two points. The through match type was originally offered to meet a
corner case, in which a customer was found to be using 32 exact matches, all based
on some form of a default route. Although a true default is 0/0, the customer wanted to ensure that they did not install any 0.0.0.0 prefixes, regardless of mask
length. So, rather than a 0/0 exact, 0/1 exact, 0/2 exact ... 0/32 exact, the
through match type was created to allow the same effect with a single 0/0 through
0/32 statement. This matches the top of the tree, all the way down the left side to
the very bottom, and all contiguous points in between.
In Figure 8-3, the through match type is specified as 192.168.0.0/16 through
192.168.32.0/19. The line shows the sequence of contiguous matches between the
two points, which in this case includes 192.168.0.0/16, 192.168.0.0/17,
192.168.0.0/18, and 192.168.32.0/19. Now ask yourself, and be honest: is this
what you expected a 192.168/16 through 192.168.32/19 to match?
Longest match wins, but may not…
As with routing in general, route filter processing is based on finding a longest match,
and then performing the action associated with that match. There are cases where this
behavior may lead to unexpected behavior because users do not always take into account the consequences of different match types. Recall that the longest match function
is based on the high-order prefix bits, whereas the match type focuses more on mask
length. Consider this route-filter example, and what will happen when route
200.0.67.0/24 is evaluated against it:
[edit policy-options policy-statement test_me]
user@host# show
from {
route-filter 200.0.0.0/16 longer reject;
route-filter 200.0.67.0/24 longer;
route-filter 200.0.0.0/8 orlonger accept;
}
then {
metric 10;
accept;
}
The question is, will route 200.0.67.0/24 match this term, and if so, is it accepted, is it
rejected, or does it have its metric set to 10 before being accepted? Think carefully, and
consider how longest matching is performed, along with how the match type comes
into play.
464 | Chapter 8: Routing Policy and Firewall Filters
Related documents
Juniper EX4500
Scarica il catalogo ICT
strumenti analogici - Catalogo Samar Online
Bedienungsanleitung
EX3200 および EX4200 イーサネット スイッチ
Configuration File Management on EX Series
Juniper Networks EX3200 User's Manual
Juniper Networks EX2200 User's Manual
- FEDERICA
Juniper EX 3200
Juniper EX3300
Juniper EX4500-PWR1-AC-FB